Artifacts Associated With Ticket 010f4162e
Ticket change [96fe0fe695] (rid 133592) by ferrieux on 2013-09-01 00:56:32:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Commit [30b7b8d858] "Fix bug #2438181: Incorrect error reporting in traces" leads to the following "stammering errorstack", where an Enter-traced proc fails to appear as a CALL level; instead, its caller's level is repeated: proc foo args {} proc goo {} foo trace add execution foo enter {error bar;#} catch goo m d puts [dict get $d -errorstack] => INNER {error bar} CALL goo CALL goo Prior to this commit one would get INNER {invokeStk1 foo} CALL goo which avoided the problem by completely hiding the trace's error. The problem here is that TclLogCommandInfo (which powers the construction of the error stack), called in TEBC after each error, is now also called for the trace's error, thus adding a level; but since we are in an Enter trace, we have not yet updated the interp, which is still essentially in "goo". Note that the command string passed to TclLogCommandInfo does contain "foo", hence ::errorInfo in this case is (accidentally) more accurate: bar while executing "error bar" invoked from within "foo" (procedure "goo" line 1) invoked from within "goo" Bottom line: we'd need to - either give a better sync of command string and interp state - or provide TclLogCommandInfo with a way of detecting this situation to skip the extra level - foundin initialized to: "30b7b8d858"
- is_private initialized to: "0"
- login: "ferrieux"
- priority initialized to: "5 Medium"
- private_contact initialized to: "052878a4be90f52d390c8022e271c0c1885d5c80"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "ferrieux"
- subsystem initialized to: "46. Traces"
- title initialized to: "Restored trace errors => stammering errorstacks"
- type initialized to: "Bug"
Ticket change [4c16ebab78] (rid 133593) by ferrieux on 2013-09-01 00:59:52:
- assignee changed to: "miguel"
- login: "ferrieux"
- mimetype: "text/plain"
- priority changed to: "8"
Ticket change [2a83db9414] (rid 133618) by dgp on 2013-09-02 18:00:47:
- assignee changed to: "dgp"
- icomment: "branch bug-010f4162ef opened to perfect the fix."
- login: "dgp"
- mimetype: "text/plain"
Ticket change [8ac6a89f8e] (rid 133620) by dgp on 2013-09-02 18:48:22:
- icomment:
Review the fix on the branch. If acceptable merge to trunk.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- icomment:
Ticket change [fee8883af0] (rid 133673) by ferrieux on 2013-09-04 15:08:51:
- icomment: "It (1) works and (2) is (embarrassingly) elegant."
- login: "ferrieux"
- mimetype: "text/plain"
Ticket change [23cfae5e9a] (rid 133674) by dgp on 2013-09-04 15:41:04:
- icomment:
I don't agree that it is elegant, but it has the virtue of re-using an existing inelegance (ERR_ALREADY_LOGGED) rather than inventing a new one.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [e946bbd1bf] (rid 133681) by dgp on 2013-09-05 12:31:06:
- closedate changed to: "2456541.02160788"
- closer changed to: "dgp"
- icomment: "fix merged to trunk for 8.6.1"
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"