http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58104
--- Comment #6 from barto at visionpro dot com --- Compiling the code listed in the original bug report with gcc4.8 using the -pthread flag the program fails to complete execution due to a segmentation fault while attempting to acquire a std::once_flag object in a call to std::call_once. This but only occurs on MacOS X builds. The code works correctly on Linux with the -pthread option to the compiler.