Overview
| Artifact ID: | b7deee9f7b862f38dac8b4382560acc40c7e37b6 |
|---|---|
| Ticket: | 593baa032c3b03473e21c828e215e4b9a67b6df6
superclass refcount error? |
| User & Date: | dgp on 2015-12-18 14:41:30 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Using the trunk of Tcl and the trunk of Itcl, this script segfaults: package require Itcl ::itcl::class C {method m {} {::oo::class destroy}} [C c] m This might be Itcl's fault, but the backtrace suggests TclOO is not getting its refcounting right in its superclass list: Program received signal SIGSEGV, Segmentation fault. 0x000000000059b0f9 in ObjectNamespaceDeleted (clientData=0x97f298) at /home/dgp/fossil/tcl/generic/tclOO.c:1228 1228 if (!Deleted(superPtr->thisPtr)) { Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.1.x86_64 zlib-1.2.7-15.el7.x86_64 (gdb) bt #0 0x000000000059b0f9 in ObjectNamespaceDeleted (clientData=0x97f298) at /home/dgp/fossil/tcl/generic/tclOO.c:1228 #1 0x0000000000542eba in TclTeardownNamespace (nsPtr=0x9282b8) at /home/dgp/fossil/tcl/generic/tclNamesp.c:1220 #2 0x0000000000542b90 in Tcl_DeleteNamespace (namespacePtr=0x9282b8) at /home/dgp/fossil/tcl/generic/tclNamesp.c:1028 #3 0x0000000000541f3e in Tcl_PopCallFrame (interp=0x822378) at /home/dgp/fossil/tcl/generic/tclNamesp.c:421 #4 0x000000000055e277 in InterpProcNR2 (data=0x9aed80, interp=0x822378, result=0) at /home/dgp/fossil/tcl/generic/tclProc.c:1869 #5 0x0000000000414cf8 in TclNRRunCallbacks (interp=0x822378, result=0, rootPtr=0x0) at /home/dgp/fossil/tcl/generic/tclBasic.c:4386 #6 0x000000000041454c in Tcl_EvalObjv (interp=0x822378, objc=2, objv=0x8259f0, flags=2097168) at /home/dgp/fossil/tcl/generic/tclBasic.c:4116 #7 0x00000000004169e6 in TclEvalEx (interp=0x822378, script=0x8ecba8 "load ./libitcl4.0.3.so\npackage require Itcl\n::itcl::class C {method m {} {::oo::class destroy}}\n[C c] m\n", numBytes=104, flags=0, line=4, clNextOuter=0x0, outerScript=0x8ecba8 "load ./libitcl4.0.3.so\npackage require Itcl\n::itcl::class C {method m {} {::oo::class destroy}}\n[C c] m\n") at /home/dgp/fossil/tcl/generic/tclBasic.c:5255 #8 0x000000000053687b in Tcl_FSEvalFileEx (interp=0x822378, pathPtr=0x8d9468, encodingName=0x0) at /home/dgp/fossil/tcl/generic/tclIOUtil.c:1827 #9 0x0000000000540f2a in Tcl_MainEx (argc=-1, argv=0x7fffffffd668, appInitProc=0x40f456 <Tcl_AppInit>, interp=0x822378) at /home/dgp/fossil/tcl/generic/tclMain.c:420 #10 0x000000000040f44f in main (argc=2, argv=0x7fffffffd658) at /home/dgp/fossil/tcl/unix/tclAppInit.c:84 - foundin changed to: "trunk"
- is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "35. TclOO Package"
- title changed to: "superclass refcount error?"
- type changed to: "Bug"