Child thread may finish before pthread_setname_np() and/or
pthread_getname_np() had a chance to run, which causes these functions
to fail with ENOENT (meaning /proc/self/task/[tid]/comm doesn't exist).
Fix by stalling child thread on a mutex.
Differential D43548
Fix racy msan test maxim-kuvyrkov on Feb 21 2018, 1:54 AM. Authored by
Details Child thread may finish before pthread_setname_np() and/or Fix by stalling child thread on a mutex.
Diff Detail
|