Overview
| Artifact ID: | ffe1a2fb2e5de7568ae0f928289de58f8b21fff7d3b1ecdd1bbb446ae515c57e |
|---|---|
| Ticket: | 21ba1dc8a33d9de280b7f375bbe22e886d1c13f9
-singleproc 1 testing conflict trace-34.7 while-old-4.6 |
| User & Date: | dgp on 2026-11-25 17:04:33 |
Changes
- 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. - login: "dgp"
- mimetype: "text/plain"