Artifact
9a03f2d282055a90210edf278c5fdd6be3be48d32f9b7e9fbc70f4f5a37ca0f2:
Ticket change
[9a03f2d282]
- New ticket
[31fd84270644f67d|31fd842706] <i>Interim increment of iPtr->compileEpoch causes reset of line-number</i>.
by
sebres on
2024-05-13 13:09:34.
D 2024-05-13T13:09:34.489
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Continuation\sof\s[9889f96f4da77e3b].\r\n\r\nAn\sincrement\sof\scompile-epoch\sand\sfollowing\s[./file?ci=core-8-branch&name=generic/tclExecute.c&ln=8043-8069|switch\sto\sdirect\seval]\scauses\sthat\stcl\sstarts\sto\sevaluate\srest\sof\sthe\sscript\sfrom\sscratch\swithout\sto\sconsider\sthat\sthis\sis\sa\scontinuation\sof\sscript\s(line\s3\sin\sfollowed\sexample)\sfor\swhatever\sreason...\r\n\r\nHere\sis\sa\stest\scase\sillustrating\sthe\sbehaviour:\r\n<pre><code>set\sc\s{\r\n\s\sputs\s===[incr\s::cntr]===;\sif\s{$::cntr\s==\s1}\s{puts\s**BUMP**;\stestbumpinterpepoch};\r\n\s\sif\s1\s{\r\n\s\s\s\sputs\s[info\sframe\s0]\r\n\s\s}\r\n}\r\ntime\s$c\s2\r\n</code></pre>\r\n\r\nThe\sresult:\r\n<pre><code>===1===\r\n**BUMP**\r\ntype\seval\sline\s2\scmd\s{info\sframe\s0}\slevel\s0\r\n===2===\r\ntype\seval\sline\s4\scmd\s{info\sframe\s0}\slevel\s0\r\n</code></pre>\r\n\r\nHow\sone\scan\ssee\sepoch\sbump\scauses\sa\sreset\sof\sthe\sline-number.\r\n\r\nHow\sto\sreproduce\sit\ssimply:\r\n<pre><code>./tcltest\s<<<\s'set\sc\s[subst\s-nocommands\s-novariables\s{puts\s===[incr\s::cntr]===;\sif\s{$::cntr\s==\s1}\s{puts\s**BUMP**;\stestbumpinterpepoch};\\n\\nif\s1\s{\\nputs\s[info\sframe\s0]\\n}}];\sputs\s$c;\stime\s$c\s2'\r\n</code></pre>
J foundin 8.6+
J is_private 0
J login sebres
J priority 5\sMedium
J private_contact 50e9528765c18296566374b3fde2df942c394efd
J resolution None
J severity Severe
J status Open
J submitter sebres
J subsystem 47.\sBytecode\sCompiler
J title Interim\sincrement\sof\siPtr->compileEpoch\scauses\sreset\sof\sline-number
J type Bug
K 31fd84270644f67d4ad8d762293be12439ba237c
U sebres
Z 4efb98609ae1fddfbf6b9086fd4a0926