Manifest of check-in
[e39d1f0e98]
- Fix [5974ff814c]: on Unix, Tcl_JoinThread() called pthread_join() for detached threads, which is undefined behavior (hangs on musl, "succeeds" on glibc for an exited thread). Keep the list of joinable threads, and join only those, only once. Tests thread-5.3 to thread-5.5.
by
serhiy.storchaka on
2026-10-14 19:45:27.
B 57f802259663da4d2bdb9339b9261cd0ca14705f37b187456fdac58579e2fd7c
C Fix\s[5974ff814c]:\son\sUnix,\sTcl_JoinThread()\scalled\spthread_join()\sfor\sdetached\sthreads,\swhich\sis\sundefined\sbehavior\s(hangs\son\smusl,\s"succeeds"\son\sglibc\sfor\san\sexited\sthread).\sKeep\sthe\slist\sof\sjoinable\sthreads,\sand\sjoin\sonly\sthose,\sonly\sonce.\sTests\sthread-5.3\sto\sthread-5.5.
D 2026-10-14T19:45:27.932
F tests/thread.test 1a5220863c940a309ac65ae25ab32e8d939c8b57de52221a8ec0c3d99568b44d
F unix/tclSelectNotfy.c 373263553c1a65e31cc1e3ccc8c26a113d884db9e3fd38026d19fffaa12c6ecc
F unix/tclUnixThrd.c 4946ccc0a0e7e6bb08a64f01f3476d20d05ecbb755ae49485d4476beef679895
P 57f802259663da4d2bdb9339b9261cd0ca14705f37b187456fdac58579e2fd7c
R aeb6992991462b783ee071ff049d853a
T *branch * unix-join-detached-thread
T *sym-unix-join-detached-thread *
T -sym-main *
T -sym-trunk *
U serhiy.storchaka
Z 115c769421bdd944d07b4312167097c2