[Bug gcov-profile/49484] gcov crash if two(or more) forks happen at the same time
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 18 17:14:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49484
--- Comment #13 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-18 15:41:02 UTC ---
Hmm, and as libgcov is static we can end up with multiple copies in shared
libraries which means multiple mutexes and thus exposal to the fcntl
file-locking ineffectiveness (in this case the library must fork, of course).
At least we should not see crashes even in this case because we properly
protect the non-shared __gcov_var.
More information about the Gcc-bugs
mailing list