Tk Source Code

View Ticket
Login
Ticket UUID: 2820784
Title: wm managed listbox core with string inserts
Type: Bug Version: obsolete: 8.5b3
Submitter: silpheed Created on: 2009-07-13 14:03:00
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-09-08 04:43:03
Resolution: Invalid Closed By: jenglish
    Closed on: 2009-09-07 21:43:03
Description:
in wish8.5 shell
% wm manage [listbox .test]
% .test insert end "test"
Segmentation fault (core dumped)

(gdb) where
#0  0x007bd79c in Tcl_NewStringObj () from /usr/local/lib/libtcl8.5.so
#1  0x007cfa57 in Tcl_SetVar2Ex () from /usr/local/lib/libtcl8.5.so
#2  0x0034b50b in ListboxWidgetObjCmd () from /usr/local/lib/libtk8.5.so
#3  0x007373bb in TclEvalObjvInternal () from /usr/local/lib/libtcl8.5.so
#4  0x0077a7df in TclExecuteByteCode () from /usr/local/lib/libtcl8.5.so
#5  0x00782584 in TclCompEvalObj () from /usr/local/lib/libtcl8.5.so
#6  0x00738c7c in TclEvalObjEx () from /usr/local/lib/libtcl8.5.so
#7  0x00738f0d in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.5.so
#8  0x0078858e in Tcl_RecordAndEvalObj () from /usr/local/lib/libtcl8.5.so
#9  0x00788606 in Tcl_RecordAndEval () from /usr/local/lib/libtcl8.5.so
#10 0x003306aa in StdinProc () from /usr/local/lib/libtk8.5.so
#11 0x00794e74 in Tcl_NotifyChannel () from /usr/local/lib/libtcl8.5.so
#12 0x007d959b in FileHandlerEventProc () from /usr/local/lib/libtcl8.5.so
#13 0x007a9d19 in Tcl_ServiceEvent () from /usr/local/lib/libtcl8.5.so
#14 0x007aa00f in Tcl_DoOneEvent () from /usr/local/lib/libtcl8.5.so
#15 0x00323d39 in Tk_MainLoop () from /usr/local/lib/libtk8.5.so
#16 0x0033028c in Tk_MainEx () from /usr/local/lib/libtk8.5.so
#17 0x080487b6 in main ()


RedHat 4.3 Enterprise Edition
User Comments: jenglish added on 2009-09-08 04:43:01:
Cause of problem: [wm manage] is only legal for frame widgets (as documented).

Current CVS HEAD yields:

% wm manage [listbox .test]
window ".test" is not manageable: must be a frame, labelframe or toplevel

(See also bug 2239034)