Tk Source Code

View Ticket
Login
Ticket UUID: 1567681
Title: Trying to post a CLONE menu makes wish crash
Type: Bug Version: obsolete: 8.4.13
Submitter: nobody Created on: 2006-09-29 12:42:29
Subsystem: 12. Unix Menus Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2015-10-13 20:11:07
Resolution: Duplicate Closed By: fvogel
    Closed on: 2015-10-13 20:11:07
Description:
~$ wish
% menu .m
% . configure -menu .m
% bind . <3> {tk_popup .#m %X %Y}

press button 3 on the . toplevel result in

% Tk_MoveToplevelWindow called with non-toplevel window
Abort trap (core dumped)
~$

Same behaviour on 8.4.13 and 8.5a4.
Tested on NetBSD and OpenBSD
Can't reproduce in win, tested on latest
tclkit-win32.exe (8.5a4)
User Comments: fvogel added on 2015-10-13 20:11:07:

Duplicate of [2160206].

(I keep [2160206] rather than the present ticket, even if the latter is older, because the former has more info/comments in it).


fvogel added on 2015-10-12 20:07:08:
Reproduced (both cases) with Debian 6.0 running almost up-to-date Tcl/Tk.

eserte added on 2007-11-16 04:15:27:
Logged In: YES 
user_id=54935
Originator: NO

A similar or the same problem (FreeBSD 6.2, wish8.4 from the ports):

% menu .popupmenu -type menubar
% .popupmenu post 1 1
Tk_MoveToplevelWindow called with non-toplevel window
Abbruch(core dumped)

I don't have access to a Windows system, but a user with a similar Perl/Tk script had no crash.