Skip to content
Tcl Source Code History Of Ticket 05489ce335
Login

History Of Ticket 05489ce335

Artifacts Associated With Ticket 05489ce335

  1. Ticket change [452eff87f4] (rid 143164) by dgp on 2015-09-23 11:42:17:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      With a --enable-symbols=all build:
      
      $ make test TESTFLAGS="-file for.test -match for-8.1"
      ...
      for.test
      Test file error: 
      Bad stack top 5 at pc 92 in TclExecuteByteCode (min 0, max 4)
       executing eval break
      TclExecuteByteCode execution failure: bad stack top
      
    5. foundin initialized to: "core-8-5-branch"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "47. Bytecode Compiler"
    14. title initialized to: "for-8.1 stack management panic"
    15. type initialized to: "Bug"
  2. Ticket change [ffa46bfd05] (rid 143165) by dgp on 2015-09-23 11:48:57:

    1. assignee changed to: "dkf"
    2. icomment:
      
      Bisect blames:
      
      checkout:     0710a46828a997a963466ea7e51fb51f88c2521d 2015-08-03 07:17:27 UTC
      comment:      Backport the fixes to handling of continue in for-step clauses.
                    (user: dkf)
      
      http://core.tcl.tk/tcl/info/0710a46828a997a9
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
  3. Ticket change [80421ddbc7] (rid 143214) by dgp on 2015-09-24 12:20:05:

    1. icomment: "Similar trouble with multiple tests."
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "for-8.[124568] stack management panic"
  4. Ticket change [adde5417b1] (rid 143234) by dgp on 2015-09-24 14:18:24:

    1. icomment:
      
      This is more than just stack management issues.
      The bytecode produces the wrong result.
      
      Here's a more direct demo:
      
      % info patch
      8.6.4
      % apply {{} {list GOOD [for {} {1} {list BAD [break]} {}]}}
      GOOD {}
      
      % info patch
      8.5.18
      % apply {{} {list GOOD [for {} {1} {list BAD [break]} {}]}}
      BAD {}
      
      Trunk Tcl gets it right. core-8-5-branch is broken.
      
      When working properly, the [break] exception should clear the BAD
      off the execution stack and then the list {GOOD {}} gets formed
      from GOOD lower on the stack and the {} that is the result of [for].
      
      In 8.5, the BAD is not taken off the stack, and the list is formed
      out of the wrong values.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [eeb0037b25] (rid 143237) by dgp on 2015-09-24 19:02:35:

    1. icomment:
      
      Tcl 8.6 used to get this wrong too 
      
      http://core.tcl.tk/tcl/tktview?name=2835313
      
      It got fixed, but the ticket declares backport
      to be impossible.
      
      Two options it seems to me:
      
      1) Determine how to make a backport of the fix
      not impossible and do it.
      
      2) Resolve that this will stay broken, accept
      that and then backout the checkin
      
      http://core.tcl.tk/tcl/info/0710a46828a997a9
      
      that started up the visible failure mode noted here.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  6. Ticket change [5819b69d45] (rid 143239) by dgp on 2015-09-24 19:08:22:

    1. icomment:
      
      Created a branch that takes door number 2.
      
      This is really a phony solution in that it
      doesn't make anything any better; it just
      removes the tests that expose the brokenness.
      A better answer in this direction might be
      some test constraint to avoid panics when
      all debugging is on.
      
      Real answer is either backport of the fix, which
      I'm willing to accept really is impossible, or
      the shoving of Tcl 8.5.* off the stage.
      
      At this point, I'll leave things to dkf.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  7. Ticket change [3eb3c4db74] (rid 143339) by dkf on 2015-09-30 21:17:44:

    1. icomment:
      The backport of the 8.6 solution would require the exact stack depth calculation fixes (which were a massive PITA in the 8.6 development, but necessary) and backporting a single bytecode so that expansion stack entries could be dropped. Which should act as a massive hint as to the sorts of tests that you should be thinking about! The stack depth fixes are particularly important to the example described in this bug report; popping the BAD is exactly what is necessary, but that requires knowing that that's the stack entry that's surplus...
      <p>With those two preparatory changes in place, the fix is just to rewrite break/continue (when in a looping context) to a sequence of expansion-pops, ordinary-pops and a jump, which should be pretty simple actually. But you <i>need</i> the exact stack depth fixes to safely know how much to pop at compile time, and the extra bytecode in order to clean up the expansion stack.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. username: "dkf"
  8. Ticket change [9e011a0190] (rid 143392) by dkf on 2015-10-04 11:00:14:

    1. icomment:
      I've constrained the tests that cause trouble with <code>bug-05489ce335</code> so that the test suite should not crash.
      
    2. login: "dkf"
    3. mimetype: "text/html"
    4. priority changed to: "7 High"
    5. username: "dkf"
  9. Ticket change [5e5e1d8298] (rid 226673) by dkf on 2024-05-25 13:00:13:

    1. closedate changed to: "2460456.04181882"
    2. closer changed to: "dkf"
    3. icomment:
      It's not going boom in anything from 8.6 on, which is the oldest supported version, and would have been onerous to fix before that (given the complexity of the changes to the code issuing to support this).
      
      Closing...
      
    4. login: "dkf"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"