Artifacts Associated With Ticket 3072640
Ticket change [dec39fbea5] (rid 114906) by twylite on 2010-09-21 13:08:03:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "twylite"
- subsystem initialized to: "60. NRE and coroutines"
- title initialized to: "trace execution + yield fails ASSERT"
- type initialized to: "Bug"
Ticket change [ab4cd03888] (rid 101081) by twylite on 2010-09-21 20:08:41:
- priority changed to: "7 High"
Ticket change [759e3f549b] (rid 105421) by msofer on 2010-09-22 18:17:30:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [1a00122a1b] (rid 122898) by msofer on 2010-09-23 00:35:49:
- 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)
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "msofer"
- icomment:
Ticket change [0ca9aab9e1] (rid 114219) by msofer on 2010-09-23 01:38:07:
- icomment:
Fixed in HEAD.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [fbf98ec4ff] (rid 108153) by msofer on 2010-09-23 01:38:08:
- closedate changed to: "2010-09-22T18:38:08"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [d416b03159] (rid 123389) by twylite on 2010-09-28 21:23:30:
- 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?
- login: "twylite"
- mimetype: "text/plain"
- username: "twylite"
- icomment:
Ticket change [0dd0447d36] (rid 114430) by twylite on 2010-09-28 21:23:31:
- status changed to: "Open"
Ticket change [c9276a5fff] (rid 122234) by msofer on 2010-09-28 21:35:58:
- closedate changed to: "2010-09-28T14:35:58"
- closer changed to: "msofer"
- 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.
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "msofer"
Ticket change [0c09041e6d] (rid 114106) by dkf on 2010-09-28 21:45:08:
- 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. :-)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: