Skip to content
Tcl Source Code History Of Ticket 1743941
Login

History Of Ticket 1743941

Artifacts Associated With Ticket 1743941

  1. Ticket change [09b2295d37] (rid 113705) by eugene_cdn on 2007-06-27 01:21:51:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "eugene_cdn"
    10. subsystem initialized to: "46. Traces"
    11. title initialized to: "TclCheckInterpTraces cycles"
    12. type initialized to: "Bug"
  2. Ticket change [c1b5969137] (rid 111367) by eugene_cdn on 2007-06-27 08:21:51:

    1. icomment:
      
      
      File Added - 234686: trace.c
      
      
      
    2. login: "eugene_cdn"
    3. mimetype: "text/plain"
    4. username: "eugene_cdn"
  3. Add attachment "trace.c" [5962139628] (rid 117973) by eugene_cdn on 2007-06-27 08:21:51.

  4. Ticket change [35f4e698fc] (rid 107036) by dgp on 2007-06-27 10:57:48:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Reproduced.  Won't have time to really
      dig in and fix this for at least a few days.
      
      Meanwhile is might be interesting to see
      how far back this problem goes.  Did Tcl 7
      suffer the same issue, or is this a regression
      sometime since then?
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [51cb440662] (rid 126189) by dgp on 2007-06-27 23:40:40:

    1. icomment:
      
      
      File Added - 234785: 1743941.patch
      
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      found some unexpected time...
      
      Problem is in the code that
      implements reversing the order
      of traces for the "enterstep" call.
      
      When the level is too low for the
      trace to fire, a "continue" restarts
      the loop before "lastTracePtr" gets set
      to the right value for proceeding.
      
      So, an effective fix is pretty simple.
      Less clear and more troubling is why a
      lot of this code is there in the first
      place.  Still looking into that.
      
      Attached is a patch against Tcl 8.4.15.
      
      
      File Added: 1743941.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [fcb1bfbcec] (rid 108285) by dgp on 2007-06-27 23:51:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      ok, I think I recall now.
      
      This is a symptom of some
      really bad implementation choices
      made in the creation of the *step
      execution traces.  Rather than
      an orthogonal implementation, those
      got done through some ugly surgery
      grafting them into the Tcl_CreateTrace
      traces, and apparently damaging those
      at the same time.
      
      I guess it's an indicator how infrequently
      used the Tcl_CreateTrace call is that we
      only get a report on this now.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [80ea11f7d0] (rid 116952) by dgp on 2007-06-28 00:25:40:

    1. icomment:
      
      
      File Deleted - 234785: 
      
      
      
      File Added - 234794: 1743941.patch
      
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      New patch includes test suite addition.
      File Added: 1743941.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Add attachment "1743941.patch" [21e6ebe468] (rid 130660) by dgp on 2007-06-28 00:25:40.

  9. Ticket change [60ff649987] (rid 92165) by dgp on 2007-06-28 00:37:22:

    1. closedate changed to: "2007-06-27T17:37:22"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      fixes committed on both active branches.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"