Re: [Boost-bugs] [Boost C++ Libraries] #2889: Unit Test framework does things that OS X's malloc dislikes

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2889: Unit Test framework does things that OS X's malloc dislikes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-22 20:10:53


#2889: Unit Test framework does things that OS X's malloc dislikes
--------------------------------------+-------------------------------------
  Reporter: akim.demaille@… | Owner: rogeeff
      Type: Bugs | Status: reopened
 Milestone: Boost 1.41.0 | Component: test
   Version: Boost Release Branch | Severity: Showstopper
Resolution: | Keywords: osx
--------------------------------------+-------------------------------------
Changes (by tegtmeye@…):

  * status: closed => reopened
  * version: Boost 1.38.0 => Boost Release Branch
  * resolution: fixed =>
  * severity: Regression => Showstopper
  * milestone: Boost 1.39.0 => Boost 1.41.0

Comment:

 The following crashes on Mac 10.6. ie completely broken 10.6 v1.40 and
 trunk

 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
 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++ --version
 i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
 Copyright (C) 2007 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 rotor:~ tegtmeye$

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2889#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC