Boost C++ Libraries: Ticket #10565: Boost test seg faults when -mmacosx-version-min=10.6 on OS X 10.9 system https://svn.boost.org/trac10/ticket/10565 <p> When I build the following program: </p> <p> #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN #include &lt;boost/test/unit_test.hpp&gt; #include &lt;boost/test/debug.hpp&gt; </p> <p> BOOST_AUTO_TEST_CASE (simple) { </p> <blockquote> <p> BOOST_REQUIRE ( 1 + 1 == 2 ); </p> </blockquote> <p> } </p> <p> Here are the build commands: </p> <p> llaswell2-ltm:leebuild llaswell$ make VERBOSE=1 "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src -B/Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild --check-build-system CMakeFiles/Makefile.cmake 0 "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles/progress.marks <a class="missing wiki">/Applications/Xcode</a>.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all <a class="missing wiki">/Applications/Xcode</a>.app/Contents/Developer/usr/bin/make -f CMakeFiles/simpleTest.dir/build.make CMakeFiles/simpleTest.dir/depend cd /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild &amp;&amp; "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles/simpleTest.dir/DependInfo.cmake --color= <a class="missing wiki">/Applications/Xcode</a>.app/Contents/Developer/usr/bin/make -f CMakeFiles/simpleTest.dir/build.make CMakeFiles/simpleTest.dir/build "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles 1 [100%] Building CXX object CMakeFiles/simpleTest.dir/simpleTest.o /usr/bin/c++ -mmacosx-version-min=10.6 -g -I/Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/src -I/Users/llaswell/src/llaswell_mac2/external/boost/boost-1.51.0/include -o CMakeFiles/simpleTest.dir/simpleTest.o -c /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/simpleTest.cpp Linking CXX executable simpleTest "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/simpleTest.dir/link.txt --verbose=1 /usr/bin/c++ -mmacosx-version-min=10.6 -g -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/simpleTest.dir/simpleTest.o -o simpleTest /Users/llaswell/src/llaswell_mac2/external/boost/boost-1.51.0/lib/macosx/libboost_unit_test_framework.dylib /Users/llaswell/src/llaswell_mac2/external/boost/boost-1.51.0/lib/macosx/libboost_regex.dylib "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles 1 [100%] Built target simpleTest "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/llaswell/src/llaswell_mac2/dev/lib/Messaging/unitTest/src/leebuild/CMakeFiles 0 </p> <p> The OS is OS X 10.9 </p> <p> If I omit the -mmacosx-version-min=10.6 flag or use -mmacosx-version-min=10.9, it works fine. </p> <p> As built above, I get: </p> <p> llaswell2-ltm:leebuild llaswell$ ./simpleTest Segmentation fault: 11 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10565 Trac 1.4.3 Raffi Enficiaud Tue, 03 Nov 2015 13:26:15 GMT <link>https://svn.boost.org/trac10/ticket/10565#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10565#comment:1</guid> <description> <p> I am not sure what library you are linking to, and how this library was built. How did you compile boost.test? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Sat, 23 Jun 2018 08:22:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10565#comment:2 https://svn.boost.org/trac10/ticket/10565#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">obsolete</span> </li> </ul> <p> I am closing this as the ticket is too old and I cannot reproduce on my end. Feel free to create a new ticket if needed. </p> Ticket