Overview
| Artifact ID: | 97123d7d0d09edfab130e750e5b3e3a9821092cf |
|---|---|
| Ticket: | 2903188fffffffffffffffffffffffffffffffff
Tcl crashes when debugging with Komodo |
| User & Date: | evilmike on 2009-11-24 15:55:54 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When debugging a simple script with Komodo the tclsh crashes in tclVar.c DeleteSearches It crashes when stepping over a proc statement in Komodo, example script: puts "" ;# allows to attach the VisualStudio debugger to tclsh.exe before crashing proc test {} { puts "Hello World" } test The crash happens with any Komodo version, Komodo launches this script via command: C:\Temp\tcl\bin\tclsh85g.exe "C:/Program Files/ActiveState Komodo IDE 5/lib/support/tcl/appLaunch.tcl" 127.0.0.1 17000 C:/Temp/tcl/hello.tcl tcldbgp5548 I compiled tcl with Visual Studio 2005 Professional, shared with and without thread support: nmake -nologo -f makefile.vcOPTS=symbols nmake -nologo -f makefile.vc installOPTS=symbols nmake -nologo -f makefile.vc nmake -nologo -f makefile.vc install nmake -nologo -f makefile.vcOPTS=threads,symbols nmake -nologo -f makefile.vc installOPTS=threads,symbols nmake -nologo -f makefile.vcOPTS=threads nmake -nologo -f makefile.vc install OPTS=threads The crash appears in all tclsh variations. I am using tcl 8.5.8 here, but the crash appeared in 8.5.3 too: Unhandled exception at 0x100f5c93 (tcl85g.dll) in tclsh85g.exe: 0xC0000005: Access violation reading location 0x0000000c. In tclVar.c function DeleteSearches() at line 4345, just after Tcl_FindHashEntry returned NULL. The crashdump is attached (if it helps). The stack looks like this, but it does not tell me much: >tcl85g.dll!DeleteSearches(Interp * iPtr=0x00a0ab40, Var * arrayVarPtr=0x00a8f238) Line 4345 + 0x3 bytesC tcl85g.dll!UnsetVarStruct(Var * varPtr=0x00a8f238, Var * arrayPtr=0x00000000, Interp * iPtr=0x00a0ab40, Tcl_Obj * part1Ptr=0xdddddddd, Tcl_Obj * part2Ptr=0x00000000, int flags=64) Line 2309 + 0xd bytesC tcl85g.dll!TclDeleteVars(Interp * iPtr=0x00a0ab40, TclVarHashTable * tablePtr=0x00a9bfa0) Line 4489 + 0x1c bytesC tcl85g.dll!Tcl_PopCallFrame(Tcl_Interp * interp=0x00a0ab40) Line 469 + 0x10 bytesC tcl85g.dll!TclObjInterpProcCore(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * procNameObj=0x00a7b258, int skip=1, void (Tcl_Interp *, Tcl_Obj *)* errorProc=0x100d44f0) Line 1846 + 0x9 bytesC tcl85g.dll!TclObjInterpProc(void * clientData=0x00a61e38, Tcl_Interp * interp=0x00a0ab40, int objc=5, Tcl_Obj * const * objv=0x00a8b7e8) Line 1652 + 0x16 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=5, Tcl_Obj * const * objv=0x00a8b7e8, const char * command=0x00000000, int length=0, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!Tcl_EvalObjv(Tcl_Interp * interp=0x00a0ab40, int objc=5, Tcl_Obj * const * objv=0x00a8b7e8, int flags=0) Line 3885 + 0x19 bytesC tcl85g.dll!TclEvalObjEx(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00a7af88, int flags=0, const CmdFrame * invoker=0x00000000, int word=0) Line 5116 + 0x15 bytesC tcl85g.dll!Tcl_UplevelObjCmd(void * dummy=0x00000000, Tcl_Interp * interp=0x00a0ab40, int objc=1, Tcl_Obj * const * objv=0x00a0b73c) Line 948 + 0x19 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=3, Tcl_Obj * const * objv=0x00a0b734, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a8d828) Line 2328 + 0x1d bytesC tcl85g.dll!TclObjInterpProcCore(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * procNameObj=0x00a7b378, int skip=1, void (Tcl_Interp *, Tcl_Obj *)* errorProc=0x100d44f0) Line 1758 + 0xd bytesC tcl85g.dll!TclObjInterpProc(void * clientData=0x00a6bac8, Tcl_Interp * interp=0x00a0ab40, int objc=4, Tcl_Obj * const * objv=0x00a0b620) Line 1652 + 0x16 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=4, Tcl_Obj * const * objv=0x00a0b620, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a80390) Line 2328 + 0x1d bytesC tcl85g.dll!TclCompEvalObj(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00a530e0, const CmdFrame * invoker=0x00a0b420, int word=3) Line 1450 + 0xd bytesC tcl85g.dll!TclEvalObjEx(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00a530e0, int flags=0, const CmdFrame * invoker=0x00a0b420, int word=3) Line 5264 + 0x15 bytesC tcl85g.dll!Tcl_UplevelObjCmd(void * dummy=0x00000000, Tcl_Interp * interp=0x00a0ab40, int objc=1, Tcl_Obj * const * objv=0x00a0b5f0) Line 948 + 0x19 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=3, Tcl_Obj * const * objv=0x00a0b5e8, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a7d938) Line 2328 + 0x1d bytesC tcl85g.dll!TclCompEvalObj(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00a52f30, const CmdFrame * invoker=0x00a0b584, int word=1) Line 1450 + 0xd bytesC tcl85g.dll!TclEvalObjEx(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00a52f30, int flags=0, const CmdFrame * invoker=0x00a0b584, int word=1) Line 5264 + 0x15 bytesC tcl85g.dll!Tcl_CatchObjCmd(void * dummy=0x00000000, Tcl_Interp * interp=0x00a0ab40, int objc=3, Tcl_Obj * const * objv=0x00a0b5b0) Line 253 + 0x1e bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=3, Tcl_Obj * const * objv=0x00a0b5b0, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a79010) Line 2328 + 0x1d bytesC tcl85g.dll!TclObjInterpProcCore(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * procNameObj=0x00aefbd8, int skip=1, void (Tcl_Interp *, Tcl_Obj *)* errorProc=0x100d44f0) Line 1758 + 0xd bytesC tcl85g.dll!TclObjInterpProc(void * clientData=0x00a39b48, Tcl_Interp * interp=0x00a0ab40, int objc=4, Tcl_Obj * const * objv=0x00a0b448) Line 1652 + 0x16 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=4, Tcl_Obj * const * objv=0x00a0b448, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a57ac8) Line 2328 + 0x1d bytesC tcl85g.dll!TclCompEvalObj(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00aefe18, const CmdFrame * invoker=0x00000000, int word=0) Line 1450 + 0xd bytesC tcl85g.dll!TclEvalObjEx(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * objPtr=0x00aefe18, int flags=0, const CmdFrame * invoker=0x00000000, int word=0) Line 5264 + 0x15 bytesC tcl85g.dll!Tcl_UplevelObjCmd(void * dummy=0x00000000, Tcl_Interp * interp=0x00a0ab40, int objc=1, Tcl_Obj * const * objv=0x00a0b418) Line 948 + 0x19 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=3, Tcl_Obj * const * objv=0x00a0b410, const char * command=0xffffffff, int length=-1, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclExecuteByteCode(Tcl_Interp * interp=0x00a0ab40, ByteCode * codePtr=0x00a4c858) Line 2328 + 0x1d bytesC tcl85g.dll!TclObjInterpProcCore(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * procNameObj=0x00a25708, int skip=1, void (Tcl_Interp *, Tcl_Obj *)* errorProc=0x100d44f0) Line 1758 + 0xd bytesC tcl85g.dll!TclObjInterpProc(void * clientData=0x00a70bb8, Tcl_Interp * interp=0x00a0ab40, int objc=2, Tcl_Obj * const * objv=0x00a0b1d0) Line 1652 + 0x16 bytesC tcl85g.dll!TclEvalObjvInternal(Tcl_Interp * interp=0x00a0ab40, int objc=2, Tcl_Obj * const * objv=0x00a0b1d0, const char * command=0x00a2abd6, int length=14, int flags=0) Line 3689 + 0x1d bytesC tcl85g.dll!TclEvalEx(Tcl_Interp * interp=0x00a0ab40, const char * script=0x00a2a038, int numBytes=2988, int flags=0, int line=107, int * clNextOuter=0x00000000, const char * outerScript=0x00a2a038) Line 4387 + 0x21 bytesC tcl85g.dll!Tcl_EvalEx(Tcl_Interp * interp=0x00a0ab40, const char * script=0x00a2a038, int numBytes=2988, int flags=0) Line 4043 + 0x1d bytesC tcl85g.dll!Tcl_FSEvalFileEx(Tcl_Interp * interp=0x00a0ab40, Tcl_Obj * pathPtr=0x00a256a8, const char * encodingName=0x00000000) Line 1814 + 0x13 bytesC tcl85g.dll!Tcl_Main(int argc=-1, char * * argv=0x00a05ea8, int (Tcl_Interp *)* appInitProc=0x00401090) Line 441 + 0x11 bytesC tclsh85g.exe!main(int argc=6, char * * argv=0x00a05e90) Line 102 + 0x15 bytesC tclsh85g.exe!__tmainCRTStartup() Line 597 + 0x19 bytesC tclsh85g.exe!mainCRTStartup() Line 414C kernel32.dll!_BaseProcessStart@4() + 0x23 bytes - foundin changed to: "obsolete: 8.5.8"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "evilmike"
- subsystem changed to: "None"
- title changed to: "Tcl crashes when debugging with Komodo"
- type changed to: "Bug"