Ramki-Ravindran / thread-sanitizer

Automatically exported from code.google.com/p/thread-sanitizer
0 stars 0 forks source link

forked child can hang #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A program under tsan does much more than a normal one, even memory accesses are 
not fully async-signal-safe. So a correct program that uses fork can hang under 
tsan.
This needs to be fixed one way or another.
There are 2 competing proposals.
One is to lock all internal mutexes before fork:
http://llvm-reviews.chandlerc.com/D2470
Another is to disable memory access and sync action processing after fork in 
multithreaded program (expecting it to exec soon). For single-threaded programs 
we can continue to work as usual.

Original issue reported on code.google.com by dvyu...@google.com on 9 Jan 2014 at 5:05

GoogleCodeExporter commented 9 years ago
Fixed by r199993.

Original comment by dvyu...@google.com on 24 Jan 2014 at 12:44