[tkined] BUG coredump scotty

petrus vloet (petrus.vloet@siemens.at)
Wed, 16 Dec 1998 16:03:55 +0100

Tried to set up a SNMP listener, but this caused a core dump.

Following trace gave the debugger:

[1] Tcl_UnregisterChannel(0x0, 0x0, 0x17bf00, 0x17bef8, 0x3, 0x3), at 0xef786cac
=>[2] TnmSnmpTrapClose(), line 170 in "/home/sxcsw/tcltk/scotty3.0a/unix/../unix/tnmUnixSnmp.c"
[3] SessionDestroyProc(memPtr = 0x1902a8 ""), line 233 in "/home/sxcsw/tcltk/scotty3.0a/unix/../tnm/snmp/tnmSnmpUtil.c"
[4] TnmSnmpDeleteSession(session = 0x1902a8), line 1004 in "/home/sxcsw/tcltk/scotty3.0a/unix/../tnm/snmp/tnmSnmpUtil.c"
[5] Tnm_SnmpObjCmd(clientData = (nil), interp = 0x24460, objc = 6, objv = 0x250c0), line 1396 in "/home/sxcsw/tcltk/scotty3.0a/unix/../tnm/snmp/tnmSnmpTcl.c"
[6] TclExecuteByteCode(0x23268, 0x6, 0x5af50, 0x24460, 0x1, 0xefffe2c4), at 0xef774f50
[7] Tcl_EvalObj(0x24460, 0x5af40, 0xef5f42f8, 0x1, 0xef7b0b84, 0x8b468), at 0xef752c98
[8] TclObjInterpProc(0xef7b0bac, 0x18df48, 0x3, 0xefffdf14, 0x3, 0xc), at 0xef79e794
[9] TclExecuteByteCode(0x23268, 0x3, 0x2d070, 0x24460, 0x3, 0xef5f8594), at 0xef774f50
[10] Tcl_EvalObj(0x24460, 0x2d060, 0x24060, 0x24460, 0x2, 0xef5f8594), at 0xef752c98
[11] Tcl_CatchObjCmd(0x0, 0x24460, 0x3, 0x250a8, 0x200, 0x7631005f), at 0xef757330
[12] TclExecuteByteCode(0x23268, 0x3, 0x24810, 0x24460, 0x41078, 0x45f38), at 0xef774f50
[13] Tcl_EvalObj(0x24460, 0x24800, 0xd23, 0x1a4, 0x401, 0x0), at 0xef752c98
[14] Tcl_EvalFile(0x24460, 0xeffff424, 0x0, 0x225c4, 0x401, 0x2), at 0xef78f3b4
[15] main(argc = 1, argv = 0xeffff2b8), line 197 in "/home/sxcsw/tcltk/scotty3.0a/unix/../unix/scotty.c"
(debugger) up
Current function is SessionDestroyProc

The variable trap_channel is (nil). This causes Tcl_UnregisterChannel to dump the application.

Refer to my attachment for the test programm.

Info:

OS: Solaris2.3

Scotty: 3.0.0 /November 1998

Tcltk: 8.0.4

First workaround is to check if trap_channel != nil.

--
#-------With best regards,    Mit freundlichen Gruessen,    Met vriendelijke groet,  --------------
#Piet Vloet
#Siemens AG Austria
#Boschstrasse 10       Phone : +43-1-1707-42906
#A-1190 Vienna         Fax   : +43-1-1707-52605
#mailto:petrus.vloet@siemens.at         WWW:http://www.siemens.at

--
!! 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.