[tkined] tkined with tcl/tk-8.3.2 (on netbsd from pkgsrc) behaves badly

From: Greg A. Woods (woods-tkined-l@weird.com)
Date: Mon Aug 27 2001 - 20:42:56 MET DST


I get a number of bad things happening when I run tkined-1.5.0 (updated
from anoncvs just today) with tcl/tk 8.3.2 on NetBSD/i386 (tk-8.3.2nb1).

If I open an SNMP MIB browser window and then try to close it (<alt-W>
or "File->Close View") I get an "Error: invalid command name log 0", and
if I push stack_trace I get another and a stack trace window that says:

        invalid command name "log0"
            while executing
        "log1 delete"
            (command bound to event)

The OK button does not work in the stack-trace window.

If I just push "OK" in the error notifier I get several more (4?) before
it finally stops complaining.

If I open a report view (eg. SNMP-Trouble->system-information for a
node; or Tools->show_clipboard; or anything where you can close the view
without confirmation it seems) and then close that view I get the
following crash from wish. This is undoubtably a bug in tcl, but I'd
like some confirmation before I report it.

#0 TclGetNamespaceForQualName (interp=0x804e000, qualName=0x8 "",
    cxtNsPtr=0x0, flags=0, nsPtrPtr=0xbfbfc41c, altNsPtrPtr=0xbfbfc420,
    actualCxtPtrPtr=0xbfbfc424, simpleNamePtr=0xbfbfc428)
    at ./../generic/tclNamesp.c:1678
1678 if ((*qualName == ':') && (*(qualName+1) == ':')) {

(gdb) where
#0 TclGetNamespaceForQualName (interp=0x804e000, qualName=0x8 "",
    cxtNsPtr=0x0, flags=0, nsPtrPtr=0xbfbfc41c, altNsPtrPtr=0xbfbfc420,
    actualCxtPtrPtr=0xbfbfc424, simpleNamePtr=0xbfbfc428)
    at ./../generic/tclNamesp.c:1678
#1 0x48152853 in Tcl_FindCommand (interp=0x804e000, name=0x8 "",
    contextNsPtr=0x0, flags=0) at ./../generic/tclNamesp.c:2009
#2 0x48121f35 in Tcl_DeleteCommand (interp=0x804e000, cmdName=0x8 "")
    at ./../generic/tclBasic.c:2236

[[ there's something broken here in the stack frame I think, but I don't
know what -- the correct stuff seems to be picked up below! ]]

#3 0x482d8824 in m_delete ()
#4 0x482d21b9 in receive ()
#5 0x481219c9 in TclInvokeStringCommand (clientData=0x81a5580,
    interp=0x804e000, objc=2, objv=0x8050000) at ./../generic/tclBasic.c:1752
#6 0x4813b188 in TclExecuteByteCode (interp=0x804e000, codePtr=0x81cde80)
    at ./../generic/tclExecute.c:845
#7 0x481223a0 in Tcl_EvalObjEx (interp=0x804e000, objPtr=0x81e1600,
    flags=131072) at ./../generic/tclBasic.c:2733
#8 0x480ad2db in TkInvokeMenu (interp=0x804e000, menuPtr=0x81d0c00, index=8)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkMenu.c:1113
#9 0x480acf86 in MenuWidgetObjCmd (clientData=0x81d0c00, interp=0x804e000,
    objc=3, objv=0xbfbfc844)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkMenu.c:936
#10 0x4815621c in EvalObjv (interp=0x804e000, objc=3, objv=0xbfbfc844,
    command=0xbfbfcbcc ".tkined0.log0.menu.file.m invoke {Close View}",
    length=45, flags=0) at ./../generic/tclParse.c:932
#11 0x481568a8 in Tcl_EvalEx (interp=0x804e000,
    script=0xbfbfcbcc ".tkined0.log0.menu.file.m invoke {Close View}",
    numBytes=45, flags=0) at ./../generic/tclParse.c:1393
#12 0x48156aee in Tcl_Eval (interp=0x804e000,
    string=0xbfbfcbcc ".tkined0.log0.menu.file.m invoke {Close View}")
    at ./../generic/tclParse.c:1512
#13 0x48123900 in Tcl_GlobalEval (interp=0x804e000,
    command=0xbfbfcbcc ".tkined0.log0.menu.file.m invoke {Close View}")
    at ./../generic/tclBasic.c:4149
#14 0x48073e33 in Tk_BindEvent (bindingTable=0x8065000, eventPtr=0x81cdd88,
    tkwin=0x81d5600, numObjects=0, objectPtr=0xbfbfcccc)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkBind.c:1775
#15 0x48078387 in TkBindEventProc (winPtr=0x81d5600, eventPtr=0x81cdd88)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkCmds.c:244
#16 0x4807d86b in Tk_HandleEvent (eventPtr=0x81cdd88)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkEvent.c:737
#17 0x4807dbc5 in WindowEventProc (evPtr=0x81cdd80, flags=-3)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkEvent.c:1072
#18 0x4815422f in Tcl_ServiceEvent (flags=-3) at ./../generic/tclNotify.c:607
#19 0x48154446 in Tcl_DoOneEvent (flags=0) at ./../generic/tclNotify.c:846
#20 0x4807dc3b in Tk_MainLoop ()
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkEvent.c:1130
#21 0x48087481 in Tk_MainEx (argc=2, argv=0xbfbfcf44,
    appInitProc=0x8048a0c <Tcl_AppInit>, interp=0x804e000)
    at /var/obj/package/x11/tk/work/tk8.3.2/unix/../generic/tkMain.c:281
#22 0x80489ff in dladdr ()
#23 0x8048819 in exit ()

-- 
							Greg A. Woods

+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca> Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com> -- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET