http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
gustavo changed:
What|Removed |Added
Status|RESOLVED|NEW
Resolution|INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
--- Comment #5 from Jonathan Wakely 2012-11-26
19:24:38 UTC ---
Almost certainly what happens is that the mutex m gets destroyed when returning
from main, but there are threads still using it and so they can no longer lock
it.
It's unde
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
--- Comment #4 from Jonathan Wakely 2012-11-26
19:23:22 UTC ---
If you change the code to join the threads instead of leaving them running when
the program exits then the output is correct.
#include
#include
#include
#include
s
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |NEW
Host|fedora
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55471
gustavo changed:
What|Removed |Added
Host||fedora 17
--- Comment #2 from gustavo