Artifacts Associated With Ticket 93081e9a8404270e
Ticket change [6c65d7a039] (rid 143160) by anonymous on 2015-09-23 10:59:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Windows 7, Tcl 8.5.18 My app runs for some length of time and then crashes in tclProc.c #1583 in PushProcCallFrame() codePtr = procPtr->bodyPtr->internalRep.twoPtrValue.ptr1; => if (((Interp *) *codePtr->interpHandle != iPtr) || (codePtr->compileEpoch != iPtr->compileEpoch) || (codePtr->nsPtr != nsPtr) || (codePtr->nsEpoch != nsPtr->resolverEpoch)) { goto doCompilation; } where codePtr->interpHandle == 0. The call stack is short enough: Tcl_EvalObjv() TclEvalObjvInternal() TclObjInterpProc() PushProcCallFrame() *crash* with 2 objects passed to Tcl_EvalObjv: - one Tcl_NewStringObj which denotes a routine to call and is reused (I've checked that the refCount == 1 before reusing it) - one Tcl_NewIntObj() the argument for the routine, fresh on each call The code in question is repeatedly called many times, so I'm wondering whether I'm looking at memory corruption of some sort or some hideous bug. I would be glad if someone could point me at a place where the object in question is changed, especially where the interphandle is possibly intentionally reset to 0. TNX R' - foundin initialized to: "8.5.18"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to:
crash in PushProcCallFrame due to nullpointer derefence
- type initialized to: "Bug"
Ticket change [b9a490dc35] (rid 143268) by anonymous on 2015-09-28 10:57:02:
- closedate changed to: "2457293.95628082"
- closer changed to: "anonymous"
- icomment:
Ok, found the problem in my code unrelated to TCL: classical buffer overrun thrashing the codePtr memory. Case closed. TNX R'
- login: "anonymous"
- mimetype: "text/plain"
- status changed to: "Closed"