Skip to content
Tcl Source Code History Of Ticket 3072640
Login

History Of Ticket 3072640

Artifacts Associated With Ticket 3072640

  1. Ticket change [dec39fbea5] (rid 114906) by twylite on 2010-09-21 13:08:03:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Adding an execution (enterstep) trace to a proc that yields causes an ASSERT to fail, crashing the interp.
      
      Environment: 
      - x86 32 bit
      - Windows XP SP3 with latest patches
      - Tcl 8.6b1.2 (from CVS 2010/08/30), also appears in Tcl 8.6b1.1)
      
      Symptom:
      - Assertion failed (MS Visual C++ Runtime Library error popup)
      - Source of failure: tclExecute.c:2882 NRE_ASSERT(BP == corPtr->eePtr->bottomPtr);
      
      Code to reproduce:
      --
        proc generate {n} {
          for {set i 0} {$i < $n} {incr i} {
            yield $i
          }
        }
        proc t {args} { puts "Trace: $args" }
        trace add execution ::generate enterstep ::t
        coroutine coro generate 5
      --
      
      Further information:
      - Putting the [yield] into the trace handler ::t rather than the proc being traced results in the error "cannot yield: C stack busy", but doesn't lead to a crash.
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    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: "twylite"
    10. subsystem initialized to: "60. NRE and coroutines"
    11. title initialized to: "trace execution + yield fails ASSERT"
    12. type initialized to: "Bug"
  2. Ticket change [ab4cd03888] (rid 101081) by twylite on 2010-09-21 20:08:41:

    1. priority changed to: "7 High"
  3. Ticket change [759e3f549b] (rid 105421) by msofer on 2010-09-22 18:17:30:

    1. icomment:
      Patch #3072080 fixes this issue (which seems hard to hunt down in the current NRE implementation); resolution pending the decision on adopting that patch.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [1a00122a1b] (rid 122898) by msofer on 2010-09-23 00:35:49:

    1. icomment:
      Issue seemed fixed by today's commit, which fixed a different bug discovered by Patch #3072080. BUT: new test execute-10.3 still bombs (it doesn't with the patch)
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "msofer"
  5. Ticket change [0ca9aab9e1] (rid 114219) by msofer on 2010-09-23 01:38:07:

    1. icomment:
      Fixed in HEAD.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [fbf98ec4ff] (rid 108153) by msofer on 2010-09-23 01:38:08:

    1. closedate changed to: "2010-09-22T18:38:08"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Pending"
  7. Ticket change [d416b03159] (rid 123389) by twylite on 2010-09-28 21:23:30:

    1. icomment:
      Confirmed that the code sample I submitted no longer crashes following the NRE commit on 2010-09-26.  I think this issue can be closed.
      
      Regarding the "C stack busy" attempting to [yield] from a trace event - is that its own problem, is it something that can/should be fixed?
      
      
      
      
    2. login: "twylite"
    3. mimetype: "text/plain"
    4. username: "twylite"
  8. Ticket change [0dd0447d36] (rid 114430) by twylite on 2010-09-28 21:23:31:

    1. status changed to: "Open"
  9. Ticket change [c9276a5fff] (rid 122234) by msofer on 2010-09-28 21:35:58:

    1. closedate changed to: "2010-09-28T14:35:58"
    2. closer changed to: "msofer"
    3. icomment:
      
      
      allow_comments - 1
      
      Traces are not nre-enabled, and are unlikely to be in the near future: it is extremely tough to get that right.
      
      This means that you will not be able to yield from a within a trace in 8.6.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "msofer"
  10. Ticket change [0c09041e6d] (rid 114106) by dkf on 2010-09-28 21:45:08:

    1. icomment:
      s/extremely tough/really scary hard/
      
      Fair chance that we'll never take that task on. It'd be cool, but likely to cause nervous breakdowns. :-)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"