http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49484
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-18 13:35:28 UTC --- Well, pthread_once can't be called in fork child if fork has been done from multi-threaded process (similarly to most other calls).