TclCheckInterpTraces cycles
Deleted1743948fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-06-27 02:04:22
OS: Solaris 9, Linux RH 4U3
On certain order of two Tcl_CreateTrace calls, TclCheckInterpTraces never returns on evaluation of a non-trivial commands. Certain order is first trace is of depth "1", and second one is of depth "5" or more on Solaris and "1" on Linux. It cycles in this loop
for ( tracePtr = iPtr->tracePtr;
(traceCode == TCL_OK) && (tracePtr != NULL);
tracePtr = active.nextTracePtr) {
with the same value of tracePtr.
Expected behavior: should not cycles.
See attached testcase. Need to build it
gcc -o libtrace.so -g -shared -fPIC trace.c -I...
and then
> tclsh
tclsh> load libtrace.so
After a while it hangs. If you switch the order (depth) of traces, it works on Solaris.
It does not matter which file to evaluate. It must be non-trivial.
Good luck!
eugene_cdnplain2007-06-27 09:04:25
File Added - 234689: trace.c
eugene_cdn Deleted ticket [1743948fff].
[History diff]2007-06-27 09:06:07
eugene_cdnplain2007-06-27 09:09:38
Logged In: YES user_id=518794 Originator: YES For sure, I did not create this copy of the bug. I clicked refresh on bug list page. See #1743941.
dgp Ticket [1743948fff]: 1 change
[History diff]2007-06-27 09:42:46
Log in (anonymous is fine) to add a comment.
Attachments:
- trace.c [download] added by eugene_cdn on 2007-06-27 09:04:22. [details]