Overview
| Artifact ID: | b0c58215e5dae8b2bc58278e5b3f45a254b9f80b |
|---|---|
| Ticket: | 218317ffffffffffffffffffffffffffffffffff
Crash on SUN 64 bit platform (Sun5.7 Compiler- 5.0c++) |
| User & Date: | nobody on 2000-12-14 04:25:58 |
Changes
- icomment:
I am receiving the same crash on Windows NT 4.0, using Tcl/Tk 8.3.1 and Tktable 2.5. The objPtr passed into FreeCmdNameInternalRep contains a cmdPtr that is null (0). The objPtr is the resultObj of the current interp, as picked up by the Table_GetCmd routine in Tktable (TktableCmds.c). This routine uses what appears to me to be a dangerous practice: it picks up the resultObj from the interp, then calls a routine (TableGetCellValue) that conceivably executes more Tcl code (and therefore, presumably, affects the tcl result), and THEN attempts to use the result object (set its value). I have coded around the problem by having Table_GetCmd use Tcl_SetResult instead, and the problem disappears. As an added note, if I recompile Tcl with DEBUGDEFINES = -DTCL_MEM_DEBUG a trap occurs in Tcl_IsShared when called from Tcl_SetStringObj. Apparently the object's ref count is set to the magic 0x61616161. I will certainly attempt at some future point to come up with a simple script to produce the problem, but don't have time right now. I hope that this additional information is useful. Jon Hilbert
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"