Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 09b2295d379cba105f1dab4365d9d15f5d59c0da
Ticket: 1743941fffffffffffffffffffffffffffffffff
TclCheckInterpTraces cycles
User & Date: eugene_cdn on 2007-06-27 01:21:51
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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!
    
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "eugene_cdn"
  10. subsystem changed to: "46. Traces"
  11. title changed to: "TclCheckInterpTraces cycles"
  12. type changed to: "Bug"