Overview
| Artifact ID: | 55a637a037a1d4b41dd367f1bd8e5eff0a78054e |
|---|---|
| Ticket: | a0ece9d6d449ed4aab0262891caf457087e50709
execution trace on source command crashes when executing clock scan |
| User & Date: | anonymous on 2015-07-01 14:07:44 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
On Windows 7, I'm trying to debug scripts using execution traces on the source command. This works well to a great extent, but when the script executes the 'clock scan' command Tcl crashes. Here's the minimalistic code that shows it: clockscan.tcl: clock scan 1980-01-01 In tclsh: % proc enterStep args { puts "enter" } % proc leaveStep args { puts "leave" } % trace add execution source enterstep enterStep % trace add execution source leavestep leaveStep % source clockscan.tcl <many enter/leave msgs> Crash! This happens in all of the following: - tclsh and wish of ActiveState Tcl 8.6.1.0 installation (threaded) - tclsh and wish built from Tcl 8.6.4 sources, both debug and release (threaded) Stacktrace from my own debug build: msvcr120d.dll!0f5731ca() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for msvcr120d.dll] > tcl86tg.dll!TclNRRunCallbacks(Tcl_Interp * interp, int result, NRE_callback * rootPtr) Line 4392 C tcl86tg.dll!Tcl_EvalObjv(Tcl_Interp * interp, int objc, Tcl_Obj * const * objv, int flags) Line 4123 C tcl86tg.dll!TclEvalEx(Tcl_Interp * interp, const char * script, int numBytes, int flags, int line, int * clNextOuter, const char * outerScript) Line 5262 C tcl86tg.dll!TclSubstTokens(Tcl_Interp * interp, Tcl_Token * tokenPtr, int count, int * tokensLeftPtr, int line, int * clNextOuter, const char * outerScript) Line 2277 C tcl86tg.dll!TclEvalEx(Tcl_Interp * interp, const char * script, int numBytes, int flags, int line, int * clNextOuter, const char * outerScript) Line 5150 C tcl86tg.dll!Tcl_FSEvalFileEx(Tcl_Interp * interp, Tcl_Obj * pathPtr, const char * encodingName) Line 1815 C tcl86tg.dll!Tcl_FSEvalFile(Tcl_Interp * interp, Tcl_Obj * pathPtr) Line 1711 C tcl86tg.dll!Tcl_EvalFile(Tcl_Interp * interp, const char * fileName) Line 427 C If I record the frame info in the enterStep then I see that it stops in clock.tcl at line 1391 (in tcl::clock::FreeScan). Note that for now I have a workaround that renames clock and executes it in a slave interpreter. - foundin changed to: "8.6.x"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "8e6ce392c4d8186f2a85d6745cb17142d2c7e7f0"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "46. Traces"
- title changed to:
execution trace on source command crashes when executing clock scan
- type changed to: "Bug"