Overview
| Artifact ID: | f82b6e9cbb502d688cbe18192f95613a9f6ea65addc2778b8ff9b72b8589421f |
|---|---|
| Ticket: | 20ca033deef14a85ee420ecb1c4111e25c88114b
Tcl 9.0.5 failing tests in valgrind |
| User & Date: | serhiy.storchaka on 2026-11-02 22:29:04 |
Changes
- icomment:
Most of these are one cause. <b>io-78.1</b> (from [7aa8fd34c4]) starts a child that exits at once; under valgrind it has already exited when the parent writes, so <tt>puts</tt> itself fails with EPIPE. The cleanup did not close the channel, and with <tt>-singleproc 1</tt> the leaked pipe and its unreaped child break <b>iortrans-3.1</b> (stray <tt>file10</tt>) and <b>process-3.x..5.x</b> (an extra entry in <tt>tcl::process list</tt>). Forcing the early exit reproduces the same 10 failures without valgrind. Proposed fix in branch [/timeline?r=io-test-pipe-reader-alive|io-test-pipe-reader-alive]: the child waits for a signal file, and the cleanup closes the channel. <b>thread-9.1</b> is a race in the Thread package, not in Tcl: <tt>ThreadExitProc</tt> overwrites a transfer result that already succeeded with "target thread died", so the worker splices the channel back while the exiting main thread already owns it ("SpliceChannel: trying to add channel used in different list"). About 1 in 150 runs under load. Skipping completed results in <tt>ThreadExitProc</tt> fixes it; the same applies to <tt>thread::send</tt> results. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"