Overview
| Artifact ID: | f32644fc026193432c1c308beb41bbaf5c537d0e175892820a28b4c19e2da923 |
|---|---|
| Ticket: | 5974ff814c697f0118bc739d35c88205b06f5e92
Error in "test thread-5.2": joined detached thread does not always return error |
| User & Date: | serhiy.storchaka on 2026-10-14 19:49:47 |
Changes
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
This is a bug in Tcl, not only in the test: on Unix Tcl_JoinThread() calls pthread_join() for any thread, also a detached one. With glibc, joining a detached thread that has already exited even "succeeds" (reproduced with 8.6.18, 9.0.5 and 9.1 using <nowiki>[testthread]</nowiki>). Proposed fix in branch [/timeline?r=unix-join-detached-thread|unix-join-detached-thread]: Tcl_JoinThread() only joins threads created joinable, and only once, as on Windows. Tests thread-5.3 to thread-5.5.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"