Skip to content
Tcl Source Code Artifact [6da6e09273]
Login

Artifact [6da6e09273]

Artifact 6da6e09273d6aacdcc54fce80ca56da9190a34b27369ccbc29843c6035be8bb2:

Ticket change [6da6e09273] - New ticket [9889f96f4da77e3b|9889f96f4d] <i>Regression when mixing eval + clock + error within condition block</i>. by xdelaruelle on 2024-05-13 06:47:10.
D 2024-05-13T06:47:10.744
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment Hello,\r\n\r\nI\shave\stested\s9.0b2rc2\sagainst\sthe\stestsuite\sof\smy\sproject\s[1]\sand\sfound\s1\sregression\swhen\smixing\scode\sevaluation\s+\sclock\s+\serror\soccurring\swithin\scondition\sblock\s[2].\r\n\r\nError\sstack\strace\sdoes\snot\sreport\sthe\sissue\sat\sthe\saccurate\sline\sin\sthe\sevaluated\scode.\r\n\r\nI\shave\scrafted\ssmall\sscripts\sthat\sreproduce\sthe\sissue:\r\n\r\n$\scat\stest.tcl\r\nset\sfid\s[open\sevaled_script]\r\nset\sfdata\s[read\s$fid]\r\nclose\s$fid\r\n\r\neval\s$fdata\r\n\r\n$\scat\sevaled_script\r\nset\stomorrow\s[clock\sformat\s[expr\s{[clock\sseconds]+86400}]\s-format\s%Y-%m-%d]\r\n\r\nif\s{1}\s{\r\n\s\s\s\sputs\r\n}\r\n\r\n$\s/usr/local/tcl9.0b2/bin/tclsh9.0\stest.tcl\r\nwrong\s#\sargs:\sshould\sbe\s"puts\s?-nonewline?\s?channelId?\sstring"\r\n\s\s\s\swhile\sexecuting\r\n"puts"\r\n\s\s\s\s("eval"\sbody\sline\s2)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"eval\s$fdata"\r\n\s\s\s\s(file\s"test.tcl"\sline\s6)\r\n\r\nThe\sstack\strace\sreport\san\sissue\son\sline\s2\swhereas\sprevious\sversions\saccurately\sreport\sit\son\sline\s4:\r\n\r\n$\stclsh\stest.tcl\r\nwrong\s#\sargs:\sshould\sbe\s"puts\s?-nonewline?\s?channelId?\sstring"\r\n\s\s\s\swhile\sexecuting\r\n"puts"\r\n\s\s\s\s("eval"\sbody\sline\s4)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"eval\s$fdata"\r\n\s\s\s\s(file\s"test.tcl"\sline\s6)\r\n\r\nI\sonly\ssee\sthis\sissue\swith\snew\sversion\s9.0b2rc2.\sI\shave\stested\sagainst\slatest\sversions\sof\s8.6,\s8.7\sand\salso\s9.0b1:\sall\sof\sthese\sversions\sproduce\san\saccurate\sstack\strace.\r\n\r\nNote\sthat\sif\sin\sthe\sreproducer\sexample\syou\seither\scomment\sthe\s"clock"\sline\sor\sif\sthe\serroneous\s"puts"\scommand\sis\scalled\soutside\sof\san\sif\scondition\sblock,\sthe\sproduced\sstack\strace\sis\saccurate.\r\n\r\nI\shave\stried\sto\sbisect\sgit\srepository\sto\sfind\sthe\scommit\sthat\sintroduces\sthis\sregression,\sbut\sI\sam\snot\sused\sto\sbisect\srepository\swith\snumerous\smerges.\sWhat\sI\sfound\sis\sthat\severything\sis\sgood\sup\sto\s"a66e28b11e118b2da333da9e5544a300cba41502".\sThe\sregression\sseems\sto\sbe\sintroduced\swithin\sthe\s"clock"\scommits\sthat\sare\safter.\r\n\r\nRegards,\r\nXavier\r\n\r\n[1]\shttps://github.com/cea-hpc/modules\r\n[2]\shttps://github.com/xdelaruelle/modules/actions/runs/9052527677/job/24870294288
J foundin 9.0b2rc2
J is_private 0
J login xdelaruelle
J priority 5\sMedium
J private_contact 231d7ecff918d0384f1ee469cf171339e824104a
J resolution None
J severity Minor
J status Open
J submitter xdelaruelle
J subsystem 06.\sTime\sMeasurement
J title Regression\swhen\smixing\seval\s+\sclock\s+\serror\swithin\scondition\sblock
J type Bug
K 9889f96f4da77e3b80dfa7ec6aa99b65c17974d1
U xdelaruelle
Z db0938aa12d99a488106e98eca13fbf5