boost-test and Mac 10.6

Does anyone know anything about boost test crashing on Mac 10.6? Unless I'm missing something, it is completely broken for 1.40 and trunk. There is a Ticket #2889 (closed Bugs: fixed) for malloc errors that looks awfully similar to what I'm seeing. file is: rotor:~ tegtmeye$ cat boost_test.cc #define BOOST_TEST_MODULE footest test #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE( test1 ) { BOOST_CHECK( true ); } BOOST_AUTO_TEST_CASE( test2 ) { BOOST_CHECK( true ); } BOOST_AUTO_TEST_CASE( test3 ) { BOOST_CHECK( true ); } BOOST_AUTO_TEST_CASE( test4 ) { BOOST_CHECK( true ); } rotor:~ tegtmeye$ g++ boost_test.cc /usr/local/lib/libboost_unit_test_framework.a rotor:~ tegtmeye$ ./a.out Running 4 test cases... *** No errors detected a.out(69716) malloc: *** error for object 0x30001002002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap

On Oct 22, 2009, at 16:04 , Mike Tegtmeyer wrote:
Does anyone know anything about boost test crashing on Mac 10.6? Unless I'm missing something, it is completely broken for 1.40 and trunk. There is a Ticket #2889 (closed Bugs: fixed) for malloc errors that looks awfully similar to what I'm seeing.
file is:
rotor:~ tegtmeye$ cat boost_test.cc #define BOOST_TEST_MODULE footest test #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test1 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test2 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test3 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test4 ) { BOOST_CHECK( true ); }
rotor:~ tegtmeye$ g++ boost_test.cc /usr/local/lib/libboost_unit_test_framework.a rotor:~ tegtmeye$ ./a.out Running 4 test cases...
*** No errors detected a.out(69716) malloc: *** error for object 0x30001002002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap <boost_test.cc>_______________________________________________
Search the mail list (subject "Double free from UTF") and see the bug database https://svn.boost.org/trac/boost/ticket/3432 This is a known issue and has a patch in place, though not yet released AFAIK. Stephen

Thanks for the reply. Has this been applied to the release branch yet? I just tried against it and no joy... Mike On Thu, Oct 22, 2009 at 4:26 PM, S Roderick <kiwi.2008@mac.com> wrote:
On Oct 22, 2009, at 16:04 , Mike Tegtmeyer wrote:
Does anyone know anything about boost test crashing on Mac 10.6? Unless I'm missing something, it is completely broken for 1.40 and trunk. There is a Ticket #2889 (closed Bugs: fixed) for malloc errors that looks awfully similar to what I'm seeing.
file is:
rotor:~ tegtmeye$ cat boost_test.cc #define BOOST_TEST_MODULE footest test #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test1 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test2 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test3 ) { BOOST_CHECK( true ); }
BOOST_AUTO_TEST_CASE( test4 ) { BOOST_CHECK( true ); }
rotor:~ tegtmeye$ g++ boost_test.cc /usr/local/lib/libboost_unit_test_framework.a rotor:~ tegtmeye$ ./a.out Running 4 test cases...
*** No errors detected a.out(69716) malloc: *** error for object 0x30001002002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap <boost_test.cc>_______________________________________________
Search the mail list (subject "Double free from UTF") and see the bug database https://svn.boost.org/trac/boost/ticket/3432
This is a known issue and has a patch in place, though not yet released AFAIK. Stephen _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Mike Tegtmeyer <tegtmeye <at> gmail.com> writes:
Thanks for the reply. Has this been applied to the release branch yet? I just tried against it and no joy...
No. I was busy this weekend. Anyone comfortable in doing this can merge all unmerged Boost.Test changes. They should be safe. Gennadiy
participants (3)
-
Gennadiy Rozental
-
Mike Tegtmeyer
-
S Roderick