Overview
| Artifact ID: | 44e1341c2367d1da221d4516cc174b7935aaa6e4 |
|---|---|
| Ticket: | 533364ffffffffffffffffffffffffffffffffff
Tcl_Obj refcounts in TclGetIntForIndex |
| User & Date: | dgp on 2002-03-21 23:28:31 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
% lindex [info patchlevel] 0] Tcl_AppendStringsToObj called with shared object Program received signal SIGABRT, Aborted. 0x200003976e8 in __kill () at __kill:2 2 __kill: No such file or directory. (gdb) bt #0 0x200003976e8 in __kill () at __kill:2 #1 0x200003973b8 in raise (sig=6) at ../sysdeps/posix/raise.c:27 #2 0x200003992d8 in abort () at ../sysdeps/generic/abort.c:88 #3 0x120013d8c in Tcl_PanicVA ( format=0x1200f5bae "Tcl_AppendStringsToObj called with shared object", argList={__base = 0x11fffed00 "®[\017 \001", __offset = 72}) at ./../generic/tclPanic.c:106 #4 0x120013e4c in Tcl_Panic ( arg1=0x1200f5bae "Tcl_AppendStringsToObj called with shared object") at ./../generic/tclPanic.c:134 #5 0x12001ccbc in Tcl_AppendStringsToObjVA (objPtr=0x120226ed0, argList={ __base = 0x11fffeeb0 "Ðn\" \001", __offset = 8}) at ./../generic/tclStringObj.c:1389 #6 0x12001d0ec in Tcl_AppendStringsToObj (arg1=0x120226ed0) at ./../generic/tclStringObj.c:1525 #7 0x120024e00 in TclGetIntForIndex (interp=0x120215e90, objPtr=0x120226150, endValue=0, indexPtr=0x11fffef54) at ./../generic/tclUtil.c:2234 #8 0x120046b9c in TclLindexList (interp=0x120215e90, listPtr=0x120226ed0, argPtr=0x1202261b0) at ./../generic/tclCmdIL.c:2170 #9 0x1200859e4 in TclExecuteByteCode (interp=0x120215e90, codePtr=0x120225c20) at ./../generic/tclExecute.c:2562 #10 0x12007c7c8 in TclCompEvalObj (interp=0x120215e90, objPtr=0x120226b70, engineCall=0) at ./../generic/tclExecute.c:941 #11 0x1200362dc in Tcl_EvalObjEx (interp=0x120215e90, objPtr=0x120226b70, flags=131072) at ./../generic/tclBasic.c:3866 #12 0x120099344 in Tcl_RecordAndEvalObj (interp=0x120215e90, cmdPtr=0x120226b70, flags=131072) at ./../generic/tclHistory.c:142 #13 0x12000fe68 in Tcl_Main (argc=1, argv=0x11ffff588, appInitProc=0x12000f440 <Tcl_AppInit>) at ./../generic/tclMain.c:400 #14 0x12000f41c in main (argc=1, argv=0x11ffff588) at ./../unix/tclAppInit.c:99 Problem appears to be appending to the interpreter's object result, when that Tcl_Obj is shared. Tcl_AppendStringsToObj(Tcl_GetObjResult(interp)... is a *very* common idiom throughout the Tcl source code, and checks for Tcl_IsShared() are very rare. Are these all bugs waiting to be exercised, or is there some convention we follow to avoid trouble? - foundin changed to: "obsolete: 8.4a5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "10. Objects"
- title changed to: "Tcl_Obj refcounts in TclGetIntForIndex"
- type changed to: "Bug"