https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65485
--- Comment #2 from thomas.izard at silkan dot com --- (In reply to Jakub Jelinek from comment #1) > Can't reproduce, works just fine here (Fedora 21, x86_64). Do you launch the program several times ? Some executions are correct (program does not segfault everytime). I think it depends on the order the threads are killed.