http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54407
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-30 10:42:07 UTC --- (In reply to comment #0) > On powerpc-apple-darwin9 and x86_64-apple-darwin10, the test > 30_threads/condition_variable/54185.cc is timed out (from > http://gcc.gnu.org/ml/gcc-testresults/2012-08/msg02572.html this does seem to > occur on x86_64-apple-darwin12.2.0). Do you mean does *not* happen on darwin12? > Sampling the run after ~40 minutes gives: There's no need to wait 40 mins, the process will be deadlocked after a few milliseconds. I can't look into this for a week, but it looks like notify_all only woke one of the nine threads waiting on the condition variable, which would be a darwin bug. That looks more likely if it doesn't happen on later versions.