Artifact
f191efa6dc818a9015481ab84472b0831a382082233e719c9761181ed25f1e84:
Ticket change
[f191efa6dc]
- New ticket
[20ca033deef14a85|20ca033dee] <i>Tcl 9.0.5 failing tests in valgrind</i>.
by
dgp on
2026-11-02 18:52:48.
D 2026-11-02T18:52:48.170
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Several\stest\sfailures\sappear\sin\s`make\svalgrind`\son\sthe\ssources\r\nbeing\sprepped\sfor\sa\srelease\sof\sTcl\s9.0.5.\s\sThe\ssame\stests\sdo\r\nnot\sfail\sin\sregular\s`make\stest`\sruns,\sso\sthese\sare\slikely\smatters\r\nof\stiming\sor\srace\sconditions.\s\sI\swill\snot\sblock\sthe\srelease\sover\r\nthese,\sbut\srecording\sthem\sas\splaces\sto\sfurther\simprove\sthe\stest\r\nsuite.\s\sWe\shave\snot\shad\sthis\snumber\sof\ssuch\svalgrind-only\r\nfailures\sbefore\snow.\r\n\r\n====\sio-78.1\swritable\sevent\son\spipe\swhose\sreader\shas\sexited\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sfconfigure\s$f\s-blocking\s0\s-buffering\sfull\r\n\s\s\s\sputs\s-nonewline\s$f\s[string\srepeat\sx\s300000]\r\n\s\s\s\scatch\s{flush\s$f}\r\n\s\s\s\safter\s100\r\n\s\s\s\schan\sevent\s$f\swritable\s[list\sset\s[namespace\swhich\s-variable\sw]\swritable]\r\n\s\s\s\sset\stimer\s[after\s5000\s[list\sset\s[namespace\swhich\s-variable\sw]\stimeout]]\r\n\s\s\s\svwait\s[namespace\swhich\s-variable\sw]\r\n\s\s\s\safter\scancel\s$timer\r\n\s\s\s\slist\s$w\s[catch\s{close\s$f}\smsg]\s$msg\r\n\r\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\r\n----\serrorInfo:\serror\swriting\s"file10":\sbroken\spipe\r\n\s\s\s\swhile\sexecuting\r\n"puts\s-nonewline\s$f\s[string\srepeat\sx\s300000]"\r\n\s\s\s\s("uplevel"\sbody\sline\s3)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"uplevel\s1\s$script"\r\n----\serrorCode:\sPOSIX\sEPIPE\s{broken\spipe}\r\n====\sio-78.1\sFAILED\r\n\r\n\r\n====\siortrans-3.1\schan\sfinalize,\shandler\sdestruction\shas\sno\seffect\son\schannel\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sproc\sfoo\s{args}\s{\r\n\s\s\s\s\s\s\s\slappend\s::res\s$args\r\n\s\s\s\s\s\s\s\shandle.initialize\r\n\s\s\s\s\s\s\s\sreturn\r\n\s\s\s\s}\r\n\s\s\s\slappend\sres\s[set\sc\s[chan\spush\s[tempchan]\sfoo]]\r\n\s\s\s\srename\sfoo\s{}\r\n\s\s\s\slappend\sres\s[file\schannels\sfile*]\r\n\s\s\s\slappend\sres\s[file\schannels\srt*]\r\n\s\s\s\slappend\sres\s[catch\s{close\s$c}\smsg]\s$msg\r\n\s\s\s\slappend\sres\s[file\schannels\sfile*]\r\n\s\s\s\slappend\sres\s[file\schannels\srt*]\r\n\r\n----\sResult\swas:\r\n{initialize\srt15\s{read\swrite}}\sfile9\s{file9\sfile10}\s{}\s1\s{invalid\scommand\sname\s"foo"}\sfile10\s{}\r\n----\sResult\sshould\shave\sbeen\s(glob\smatching):\r\n{initialize\srt*\s{read\swrite}}\sfile*\sfile*\s{}\s1\s{invalid\scommand\sname\s"foo"}\s{}\s{}\r\n====\siortrans-3.1\sFAILED\r\n\r\n\r\n====\sprocess-3.1\sempty\ssubprocess\slist\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sllength\s[tcl::process\slist]\r\n\r\n----\sResult\swas:\r\n1\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n0\r\n====\sprocess-3.1\sFAILED\r\n\r\n\r\n\r\n====\sprocess-3.2\sempty\ssubprocess\sstatus\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sdict\ssize\s[tcl::process\sstatus]\r\n\r\n----\sResult\swas:\r\n1\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n0\r\n====\sprocess-3.2\sFAILED\r\n\r\n====\sprocess-4.1\sexec\sone\schild\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\spid\s[exec\s[interpreter]\s$path(exit)\s0\s&]\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus\s[lindex\s[tcl::process\sstatus\s$pid]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$list]\seq\s1\r\n\s\s\s\s\s\s\s\s&&\s[lindex\s$list\s0]\seq\s$pid\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid]\seq\s$status\r\n\s\s\s\s\s\s\s\s&&\s$status\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-4.1\sFAILED\r\n\r\n\r\n\r\n====\sprocess-4.2\sexec\stwo\schildren\sin\sparallel\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\spid1\s[exec\s[interpreter]\s$path(exit)\s0\s&]\r\n\s\s\s\sset\spid2\s[exec\s[interpreter]\s$path(exit)\s0\s&]\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus1\s[lindex\s[tcl::process\sstatus\s$pid1]\s1]\r\n\s\s\s\sset\sstatus2\s[lindex\s[tcl::process\sstatus\s$pid2]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$list]\seq\s2\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid1]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid2]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s2\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid1]\seq\s$status1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid2]\seq\s$status2\r\n\s\s\s\s\s\s\s\s&&\s$status1\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status2\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-4.2\sFAILED\r\n\r\n\r\n====\sprocess-4.3\sexec\s3-stage\spipe\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\spids\s[exec\s\s[interpreter]\s$path(exit)\s0\s\s|\s[interpreter]\s$path(exit)\s0\s\s|\s[interpreter]\s$path(exit)\s0\s\s&]\r\n\s\s\s\slassign\s$pids\spid1\spid2\spid3\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus1\s[lindex\s[tcl::process\sstatus\s$pid1]\s1]\r\n\s\s\s\sset\sstatus2\s[lindex\s[tcl::process\sstatus\s$pid2]\s1]\r\n\s\s\s\sset\sstatus3\s[lindex\s[tcl::process\sstatus\s$pid3]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$pids]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[llength\s$list]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid1]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid2]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid3]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid1]\seq\s$status1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid2]\seq\s$status2\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid3]\seq\s$status3\r\n\s\s\s\s\s\s\s\s&&\s$status1\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status2\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status3\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-4.3\sFAILED\r\n\r\n\r\n====\sprocess-5.1\sexec\sone\schild\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\sf\s[open\s"|\\"[interpreter]\\"\s\\"$path(exit)\\"\s0"]\r\n\s\s\s\sset\spid\s[pid\s$f]\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus\s[lindex\s[tcl::process\sstatus\s$pid]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$list]\seq\s1\r\n\s\s\s\s\s\s\s\s&&\s[lindex\s$list\s0]\seq\s$pid\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid]\seq\s$status\r\n\s\s\s\s\s\s\s\s&&\s$status\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-5.1\sFAILED\r\n\r\n\r\n\r\n====\sprocess-5.2\sexec\stwo\schildren\sin\sparallel\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\sf1\s[open\s"|\\"[interpreter]\\"\s\\"$path(exit)\\"\s0"]\r\n\s\s\s\sset\sf2\s[open\s"|\\"[interpreter]\\"\s\\"$path(exit)\\"\s0"]\r\n\s\s\s\sset\spid1\s[pid\s$f1]\r\n\s\s\s\sset\spid2\s[pid\s$f2]\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus1\s[lindex\s[tcl::process\sstatus\s$pid1]\s1]\r\n\s\s\s\sset\sstatus2\s[lindex\s[tcl::process\sstatus\s$pid2]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$list]\seq\s2\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid1]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid2]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s2\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid1]\seq\s$status1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid2]\seq\s$status2\r\n\s\s\s\s\s\s\s\s&&\s$status1\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status2\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-5.2\sFAILED\r\n\r\n====\sprocess-5.3\sexec\s3-stage\spipe\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\stcl::process\sautopurge\s0\r\n\s\s\s\sset\sf\s[open\s"|\r\n\s\s\s\s\s\s\s\s\s\s\\"[interpreter]\\"\s\\"$path(exit)\\"\s0\r\n\s\s\s\s\s\s\s\s|\s\\"[interpreter]\\"\s\\"$path(exit)\\"\s0\r\n\s\s\s\s\s\s\s\s|\s\\"[interpreter]\\"\s\\"$path(exit)\\"\s0\r\n\s\s\s\s"]\r\n\s\s\s\sset\spids\s[pid\s$f]\r\n\s\s\s\slassign\s$pids\spid1\spid2\spid3\r\n\s\s\s\sset\slist\s[tcl::process\slist]\r\n\s\s\s\sset\sstatuses\s[tcl::process\sstatus\s-wait]\r\n\s\s\s\sset\sstatus1\s[lindex\s[tcl::process\sstatus\s$pid1]\s1]\r\n\s\s\s\sset\sstatus2\s[lindex\s[tcl::process\sstatus\s$pid2]\s1]\r\n\s\s\s\sset\sstatus3\s[lindex\s[tcl::process\sstatus\s$pid3]\s1]\r\n\s\s\s\sexpr\s{\r\n\s\s\s\s\s\s\s\s\s\s\s[llength\s$pids]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[llength\s$list]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid1]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid2]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[lsearch\s$list\s$pid3]\s>=\s0\r\n\s\s\s\s\s\s\s\s&&\s[dict\ssize\s$statuses]\seq\s3\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid1]\seq\s$status1\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid2]\seq\s$status2\r\n\s\s\s\s\s\s\s\s&&\s[dict\sget\s$statuses\s$pid3]\seq\s$status3\r\n\s\s\s\s\s\s\s\s&&\s$status1\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status2\seq\s0\r\n\s\s\s\s\s\s\s\s&&\s$status3\seq\s0\r\n\s\s\s\s}\r\n\r\n----\sResult\swas:\r\n0\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n1\r\n====\sprocess-5.3\sFAILED\r\n\r\n====\sthread-9.1\stransfer\sof\sa\schannel\sfrom\sits\sown\sfile\sevent\shandler\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sexec\s[interpreter]\s<<\s{\r\n\s\s\s\s\s\s\s\spackage\srequire\sThread\r\n\s\s\s\s\s\s\s\sset\shandler\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\sproc\shandle\s{chan}\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sthread::transfer\s$::other\s$chan\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sthread::send\s$::other\s[list\sfileevent\s$chan\swritable\s[list\shandle\s$chan]]\r\n\s\s\s\s\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\seval\s$handler\r\n\s\s\s\s\s\s\s\sset\sother\s[thread::create]\r\n\s\s\s\s\s\s\s\sthread::send\s$other\s[list\sset\sother\s[thread::id]]\r\n\s\s\s\s\s\s\s\sthread::send\s$other\s$handler\r\n\s\s\s\s\s\s\s\shandle\s[open\s[expr\s{$tcl_platform(platform)\seq\s"windows"\s?\s"NUL"\s:\s"/dev/null"}]\sw]\r\n\s\s\s\s\s\s\s\safter\s3000\s{puts\sok;\sexit}\r\n\s\s\s\s\s\s\s\svwait\sforever\r\n\s\s\s\s}\r\n\r\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\r\n----\serrorInfo:\sok\r\nchild\skilled:\ssegmentation\sviolation\r\n\s\s\s\swhile\sexecuting\r\n"exec\s[interpreter]\s<<\s{\r\n\s\s\s\s\s\s\s\spackage\srequire\sThread\r\n\s\s\s\s\s\s\s\sset\shandler\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\sproc\shandle\s{chan}\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sthread::transfer\s$::other\s$chan\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sthread::send\s$::other\s[li..."\r\n\s\s\s\s("uplevel"\sbody\sline\s2)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"uplevel\s1\s$script"\r\n----\serrorCode:\sCHILDKILLED\s480903\sSIGSEGV\s{segmentation\sviolation}\r\n====\sthread-9.1\sFAILED
J foundin 9.0.5
J is_private 0
J login dgp
J priority 5\sMedium
J private_contact 8e2300e85be5dd1445b9666eb9429055951e33be
J resolution None
J severity Minor
J status Open
J submitter dgp
J subsystem None
J title Tcl\s9.0.5\sfailing\stests\sin\svalgrind
J type Bug
K 20ca033deef14a85ee420ecb1c4111e25c88114b
U dgp
Z 73ae2285727c448c7309b3b976870295