http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51906
--- Comment #7 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-01-21 22:11:12 UTC --- This issue is starting to look like a darwin11-specific linker bug. If I build the 30_threads/recursive_mutex/try_lock/1.cc test case under Xcode 4.2 on darwin10 and then run it under darwin11 using... setenv DYLD_LIBRARY_PATH . setenv LD_LIBRARY_PATH . to allow the same libgcc_s.1.dylib and libstdc++.6.dylib built on darwin10 to be used. the test case doesn't crash. However if I build the 30_threads/recursive_mutex/try_lock/1.cc test case under darwin11 using -mmacosx-version-min=10.6 and run it the same way, it crashes on both darwin11 and darwin10.