Skip to content
Tcl Source Code History Of Ticket 21ba1dc8a3
Login

History Of Ticket 21ba1dc8a3

Artifacts Associated With Ticket 21ba1dc8a3

  1. Ticket change [ae9768aeea] (rid 261766) by dgp on 2026-11-16 14:36:46:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      $ make test-tcl TESTFLAGS='-singleproc 1 -file "trace.test while-old.test" -match "trace-34.7 while-old-4.6"'
      ...
      Tests began at 2026-11-16 09:35:52 EST
      trace.test
      while-old.test
      
      
      ==== while-old-4.6 errors in while loops FAILED
      ==== Contents of test case:
      
          set err [catch {while {1} {error "loop aborted"}} msg]
          list $err $msg $::errorInfo
      
      ---- Result was:
      1 {loop aborted} {loop aborted
          while executing
      "error "loop aborted""
          ("while" body line 1)
          invoked from within
      "while {1} {error "loop aborted"}"}
      ---- Result should have been (exact matching):
      1 {loop aborted} {loop aborted
          while executing
      "error "loop aborted""}
      ==== while-old-4.6 FAILED
      
      
      Tests ended at 2026-11-16 09:35:52 EST
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "dgp"
    14. subsystem initialized to: "46. Traces"
    15. title initialized to:
      -singleproc 1 testing conflict trace-34.7 while-old-4.6
      
    16. type initialized to: "Bug"
  2. Ticket change [ffe1a2fb2e] (rid 262120) by dgp on 2026-11-25 17:04:33:

    1. icomment:
      
      The symptoms here are due to an exposure of another bug.
      The stack trace generated by an error in a [while] body
      is different whether or not [while] was executed as
      bytecode or whether it was directly evaluated.  See 
      this demonstration:
      
      % catch {while 1 {error boom}} m o; dict get $o -errorinfo
      boom
          while executing
      "error boom"
      % set while while
      while
      % catch {$while 1 {error boom}} m o; dict get $o -errorinfo
      boom
          while executing
      "error boom"
          ("while" body line 1)
          invoked from within
      "$while 1 {error boom}"
      
      This alone is a bug.  Everything Is A String rules should
      compel the two scripts, which are string equal after substitution,
      to produce identical results.  Said another way, bytecode
      execution is not supposed to produce variant outcomes.
      
      The test while-old-4.6 is explicitly demanding the behavior
      that bytecode execution follows.
      
      Something about the new test trace-34.7 is lingering in the
      interp a long time over the course of many intervening tests
      and causing the [while] command to follow the direct eval path,
      which fails the test.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [1b9660246f] (rid 262121) by dgp on 2026-11-25 17:12:48:

    1. icomment:
      
      For now, I will be satisfied if we determine what residue
      the test trace-34.7 is leaving behind in the interp, and
      make it clean up after itself, so we restore the -singleproc 1
      testing mode to a failure-free `make test`.  If it helps, it
      appears the interp changes state and exhibits the failing
      behavior after the second [foo] command in the test body of trace-34.7.
      
      We can then address the longstanding mismatch between error
      stack generation by bytecoded [while] and direct evaluation
      of [while] as a separate bug.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [9498c3463a] (rid 263166) by serhiy.storchaka on 2026-11-26 16:20:19:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.1"
    2. icomment:
      The trace leaves the interp unable to compile commands inline: TraceExecutionProc() restores the whole iPtr->flags after the callback, so when the callback deletes the last step trace, the DONT_COMPILE_CMDS_INLINE flag cleared by Tcl_DeleteTrace() is set again. Since at least 8.5. Proposed fix in branch [/timeline?r=step-trace-inline-flag|step-trace-inline-flag]: restore only INTERP_TRACE_IN_PROGRESS. Test trace-34.8.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"