Subject: [Boost-bugs] [Boost C++ Libraries] #12441: Crash in Boost.Test 1.61
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-06 22:25:37
#12441: Crash in Boost.Test 1.61
------------------------------------------+------------------------------
Reporter: Andy Salnikov <a_salnikov@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.61.0
Severity: Showstopper | Keywords:
------------------------------------------+------------------------------
We have switched from boost 1.59 to 1.61 and I observe strange crashes
when trying to run unit tests. I manage to reproduce it with a trivial
example which has no used-added code, only Boost.Test stuff. This is
observed with g++ 4.9.3 on Scientific Linux 6 with glibc 2.12.
Here is an example:
{{{
% cat unit_test.cc
#define BOOST_TEST_MODULE UnitTest
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE(Test1)
{
}
% g++ --version
g++ (GCC) 4.9.3
% BOO=/path/to/boost/1.61.0
% g++ -std=c++11 -o unit_test -fPIC unit_test.cc -I$BOO/include/boost-1_61
-L$BOO/lib -lboost_unit_test_framework-gcc49-mt-1_61 -lboost_timer-gcc49
-mt-1_61 -lboost_system-gcc49-mt-1_61 -lboost_chrono-gcc49-mt-1_61 -Wl,--
rpath=$BOO/lib
% ./unit_test
Running 1 test case...
*** No errors detected
*** glibc detected *** ./unit_test: double free or corruption (!prev):
0x0000000001ca4c70 ***
======= Backtrace: =========
/lib64/libc.so.6[0x33cfe75f3e]
/lib64/libc.so.6[0x33cfe78dd0]
/lib64/libc.so.6(__cxa_finalize+0x9d)[0x33cfe35e7d]
/afs/cern.ch/sw/lcg/releases/LCG_85/Boost/1.61.0/x86_64-slc6-gcc49-opt//lib
/libboost_unit_test_framework-gcc49-mt-
1_61.so.1.61.0(+0x3b046)[0x7feba3c17046]
======= Memory map: ========
...................
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12441> 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:20 UTC