Artifacts Associated With Ticket 5974ff
Ticket change [52ed726de5] (rid 143072) by anonymous on 2015-09-21 09:12:58:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The test 5.2 in thread.test makes the assumption that joining a detached thread will return an error. As per the POSIX spec, calling pthread_join on a detached thread is undefined behavior. Currently, this test never finishes on musl libc.
- foundin initialized to: "8.6.4"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "49. Threading"
- type initialized to: "Bug"
Ticket change [37416b13fa] (rid 143176) by oehhar on 2015-09-23 13:42:08:
- login: "oehhar"
- mimetype: "text/plain"
- title changed to:
Error in "test thread-5.2": joined detached thread does not always return error
Ticket change [913a6f738f] (rid 167556) by anonymous on 2018-11-18 18:15:08:
- foundin changed to: "8.6.9"
- icomment: "Still the case in version 8.6.9"
- login: "anonymous"
- mimetype: "text/plain"
- severity changed to: "Important"
Ticket change [f32644fc02] (rid 258081) by serhiy.storchaka on 2026-10-14 19:49:47:
- 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"
Ticket change [4f1b6898bd] (rid 259107) by jan.nijtmans on 2026-10-18 21:50:45:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461332.4102523495"
- closer changed to: "jan.nijtmans"
- icomment:
Fixed in [30d8ccce48|trunk], core-9-0-branch and core-8-6-branch Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"