Boost logo

Boost :

Subject: [boost] [test][thread] double free or corruption
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-02-21 13:59:35


Hi,

before moving from Boost.Test to lightweight_test.hpp the following
error occurred on Boost.Thread test_barrier. After the change the error
has disappeared. The same kind of error occurs on all the test using
Boost.Test

Could other confirm that this error is on Boost.Test?

Best,
Vicente

  Sandia-gcc-4.7.1

------------------------------------------------------------------------

Tests are run on Linux platform.

------------------------------------------------------------------------

Command Line

    run.py --proxy=http://wwwproxy.sandia.gov:80 --runner=Sandia-gcc-4.7.1 \
       --bjam-toolset=gcc --pjl-toolset=gcc --toolsets=gcc-4.7.1 \
       "--bjam-options=-j15 warnings=on warnings-as-errors=on"

Test output: Sandia-gcc-4.7.1 - thread - test_barrier / gcc-4.7.1
Rev 82993 / Tue, 19 Feb 2013 08:14:00 +0000
*Report Time: *Tue, 19 Feb 2013 19:31:12 +0000
Compile [2013-02-19 08:54:27 UTC]: succeed

"/sierra/Sntools/extras/compilers/gcc-4.7.1/bin/g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -Werror -g -pthread -fPIC -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_TEST_NO_AUTO_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED -DBOOST_THREAD_USE_DLL=1 -I".." -c -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier.o" "../libs/thread/test/test_barrier.cpp"

Link [2013-02-19 08:54:27 UTC]: succeed

"/sierra/Sntools/extras/compilers/gcc-4.7.1/bin/g++" -Wl,-R -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi" -Wl,-R -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi" -Wl,-R -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi" -Wl,-rpath-link -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi" -Wl,-rpath-link -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi" -Wl,-rpath-link -Wl,"/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi" -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier" -Wl,--start-group "/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier.o" "/scratch/kbelco/boost/results/boost/bin.v2/libs/test/build/gcc-4.7.1/debug/link-static/threading-multi/libboost_unit_test_framework.a" "/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi/libboost_chrono.so.1.54.0" "/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi/libboost_thread.so.1.54.0" "/scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi/libboost_system.so.1.54.0" -Wl,-Bstatic -Wl,-Bdynamic -lrt -Wl,--end-group -g -pthread

Run [2013-02-19 08:54:27 UTC]: fail

Running 1 test case...

*** No errors detected
*** glibc detected *** /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier: double free or corruption (out): 0x000000000f903530 ***
======= Backtrace: =========
/lib64/libc.so.6[0x30ab67245f]
/lib64/libc.so.6(cfree+0x4b)[0x30ab6728bb]
/sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libstdc++.so.6(_ZNSsD1Ev+0x20)[0x2b123aaa5660]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x421c1a]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x421c34]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x42028f]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x421b97]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x421bca]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x47918f]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier[0x478fb2]
/lib64/libc.so.6(exit+0xe5)[0x30ab6334f5]
/lib64/libc.so.6(__libc_start_main+0xfb)[0x30ab61d99b]
/scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier(_ZNSt8ios_base4InitD1Ev+0x39)[0x4116d9]
======= Memory map: ========
00400000-004f1000 r-xp 00000000 68:11 12550145 /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier
006f1000-006f3000 rw-p 000f1000 68:11 12550145 /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/test/test_barrier.test/gcc-4.7.1/debug/threading-multi/test_barrier
006f3000-006f6000 rw-p 006f3000 00:00 0
0f8fb000-0f91c000 rw-p 0f8fb000 00:00 0 [heap]
414fe000-414ff000 ---p 414fe000 00:00 0
414ff000-416ff000 rw-p 414ff000 00:00 0
416ff000-41700000 ---p 416ff000 00:00 0
41700000-41900000 rw-p 41700000 00:00 0
41a48000-41a49000 ---p 41a48000 00:00 0
41a49000-41c49000 rw-p 41a49000 00:00 0
41f6d000-41f6e000 ---p 41f6d000 00:00 0
41f6e000-4216e000 rw-p 41f6e000 00:00 0
4216e000-4216f000 ---p 4216e000 00:00 0
4216f000-4236f000 rw-p 4216f000 00:00 0
4236f000-42370000 ---p 4236f000 00:00 0
42370000-42570000 rw-p 42370000 00:00 0
42570000-42571000 ---p 42570000 00:00 0
42571000-42771000 rw-p 42571000 00:00 0
42771000-42772000 ---p 42771000 00:00 0
42772000-42972000 rw-p 42772000 00:00 0
42972000-42973000 ---p 42972000 00:00 0
42973000-42b73000 rw-p 42973000 00:00 0
42b73000-42b74000 ---p 42b73000 00:00 0
42b74000-42d74000 rw-p 42b74000 00:00 0
30ab200000-30ab21c000 r-xp 00000000 68:05 27394072 /lib64/ld-2.5.so
30ab41b000-30ab41c000 r--p 0001b000 68:05 27394072 /lib64/ld-2.5.so
30ab41c000-30ab41d000 rw-p 0001c000 68:05 27394072 /lib64/ld-2.5.so
30ab600000-30ab74e000 r-xp 00000000 68:05 27394073 /lib64/libc-2.5.so
30ab74e000-30ab94e000 ---p 0014e000 68:05 27394073 /lib64/libc-2.5.so
30ab94e000-30ab952000 r--p 0014e000 68:05 27394073 /lib64/libc-2.5.so
30ab952000-30ab953000 rw-p 00152000 68:05 27394073 /lib64/libc-2.5.so
30ab953000-30ab958000 rw-p 30ab953000 00:00 0
30aba00000-30aba82000 r-xp 00000000 68:05 27394266 /lib64/libm-2.5.so
30aba82000-30abc81000 ---p 00082000 68:05 27394266 /lib64/libm-2.5.so
30abc81000-30abc82000 r--p 00081000 68:05 27394266 /lib64/libm-2.5.so
30abc82000-30abc83000 rw-p 00082000 68:05 27394266 /lib64/libm-2.5.so
30ac200000-30ac216000 r-xp 00000000 68:05 27394078 /lib64/libpthread-2.5.so
30ac216000-30ac415000 ---p 00016000 68:05 27394078 /lib64/libpthread-2.5.so
30ac415000-30ac416000 r--p 00015000 68:05 27394078 /lib64/libpthread-2.5.so
30ac416000-30ac417000 rw-p 00016000 68:05 27394078 /lib64/libpthread-2.5.so
30ac417000-30ac41b000 rw-p 30ac417000 00:00 0
30ade00000-30ade07000 r-xp 00000000 68:05 27394095 /lib64/librt-2.5.so
30ade07000-30ae007000 ---p 00007000 68:05 27394095 /lib64/librt-2.5.so
30ae007000-30ae008000 r--p 00007000 68:05 27394095 /lib64/librt-2.5.so
30ae008000-30ae009000 rw-p 00008000 68:05 27394095 /lib64/librt-2.5.so
2b123a378000-2b123a37a000 rw-p 2b123a378000 00:00 0
2b123a37a000-2b123a387000 r-xp 00000000 68:11 67521223 /scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi/libboost_chrono.so.1.54.0
2b123a387000-2b123a587000 ---p 0000d000 68:11 67521223 /scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi/libboost_chrono.so.1.54.0
2b123a587000-2b123a588000 rw-p 0000d000 68:11 67521223 /scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/gcc-4.7.1/debug/threading-multi/libboost_chrono.so.1.54.0
2b123a588000-2b123a589000 rw-p 2b123a588000 00:00 0
2b123a589000-2b123a5ba000 r-xp 00000000 68:11 70570074 /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi/libboost_thread.so.1.54.0
2b123a5ba000-2b123a7b9000 ---p 00031000 68:11 70570074 /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi/libboost_thread.so.1.54.0
2b123a7b9000-2b123a7bc000 rw-p 00030000 68:11 70570074 /scratch/kbelco/boost/results/boost/bin.v2/libs/thread/build/gcc-4.7.1/debug/threading-multi/libboost_thread.so.1.54.0
2b123a7bc000-2b123a7c0000 r-xp 00000000 68:11 70568307 /scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi/libboost_system.so.1.54.0
2b123a7c0000-2b123a9bf000 ---p 00004000 68:11 70568307 /scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi/libboost_system.so.1.54.0
2b123a9bf000-2b123a9c0000 rw-p 00003000 68:11 70568307 /scratch/kbelco/boost/results/boost/bin.v2/libs/system/build/gcc-4.7.1/debug/threading-multi/libboost_system.so.1.54.0
2b123a9c0000-2b123a9c1000 rw-p 2b123a9c0000 00:00 0
2b123a9e6000-2b123a9e7000 rw-p 2b123a9e6000 00:00 0
2b123a9e7000-2b123aad1000 r-xp 00000000 00:4a 2200568155 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libstdc++.so.6.0.17
2b123aad1000-2b123acd0000 ---p 000ea000 00:4a 2200568155 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libstdc++.so.6.0.17
2b123acd0000-2b123acd8000 r--p 000e9000 00:4a 2200568155 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libstdc++.so.6.0.17
2b123acd8000-2b123acda000 rw-p 000f1000 00:4a 2200568155 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libstdc++.so.6.0.17
2b123acda000-2b123acef000 rw-p 2b123acda000 00:00 0
2b123acef000-2b123ad04000 r-xp 00000000 00:4a 2201263450 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libgcc_s.so.1
2b123ad04000-2b123af03000 ---p 00015000 00:4a 2201263450 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libgcc_s.so.1
2b123af03000-2b123af04000 rw-p 00014000 00:4a 2201263450 /sierra/Sntools/extras/compilers/gcc-4.7.1/lib64/libgcc_s.so.1
2b123af04000-2b123af07000 rw-p 2b123af04000 00:00 0
7fff4d39e000-7fff4d3b3000 rw-p 7ffffffe9000 00:00 0 [stack]
7fff4d3f6000-7fff4d3fa000 r-xp 7fff4d3f6000 00:00 0 [vdso]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vsyscall]

EXIT STATUS: 134

TinyUrl <javascript:make_tinyurl()>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk