|
Boost Testing : |
Subject: Re: [Boost-testing] Issues with tester:
From: Ben Pope (benpope81_at_[hidden])
Date: 2015-07-10 11:26:47
On Monday, July 06, 2015 04:45 AM, Gennadiy Rozental wrote:
> Hi,
>
> Boost.Test tests having issues with this tester. Most importatly:
>
> .../boost/test/impl/execution_monitor.ipp:182:12: fatal error:
> 'cxxabi.h' file not found
> # include <cxxabi.h>
I hope this is useful for you:
239983616-WARNING: ThreadSanitizer: data race (pid=10423)
239983664- Read of size 1 at 0x7ffe9c5010e0 by main thread:
239983715- #0 (anonymous namespace)::execution_monitor::wait()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:106:16
(test_2741+0x0000000bc9a6)
239983893- #1 void (anonymous namespace)::timed_test<void (*)()>(void
(*)(), int, (anonymous namespace)::execution_monitor::wait_type)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:159:5
(test_2741+0x0000000bc42b)
239984142- #2 test_creation_with_attrs::test_method()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:76:3
(test_2741+0x0000000bc361)
239984312- #3 test_creation_with_attrs_invoker()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:74:1
(test_2741+0x0000000bc23b)
239984477- #4 boost::detail::function::void_function_invoker0<void
(*)(), void>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:118:11
(test_2741+0x0000000c1a5b)
239984732- #5 boost::function0<void>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc51)
239984942- #6 boost::detail::forward::operator()()
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1304:32
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc01)
239985148- #7
boost::detail::function::function_obj_invoker0<boost::detail::forward,
int>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:138:18
(libboost_unit_test_framework.so.1.59.0+0x0000000bca49)
239985442- #8 boost::function0<int>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bc891)
239985651- #9 int
boost::detail::do_invoke<boost::shared_ptr<boost::detail::translator_holder_base>,
boost::function<int ()>
>(boost::shared_ptr<boost::detail::translator_holder_base> const&,
boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:281:30
(libboost_unit_test_framework.so.1.59.0+0x0000000bbb7a)
239986029- #10
boost::execution_monitor::catch_signals(boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:870:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bab37)
239986270- #11 boost::execution_monitor::execute(boost::function<int
()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1207:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bac57)
239986506- #12
boost::execution_monitor::vexecute(boost::function<void ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1313:5
(libboost_unit_test_framework.so.1.59.0+0x0000000bb452)
239986743- #13
boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void
()> const&, unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_monitor.ipp:46:9
(libboost_unit_test_framework.so.1.59.0+0x0000000df83a)
239987018- #14
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:685:26
(libboost_unit_test_framework.so.1.59.0+0x0000000c1019)
239987262- #15
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:636:54
(libboost_unit_test_framework.so.1.59.0+0x0000000c1137)
239987506- #16 boost::unit_test::framework::run(unsigned long, bool)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:1218:5
(libboost_unit_test_framework.so.1.59.0+0x0000000be532)
239987721- #17 boost::unit_test::unit_test_main(bool (*)(), int,
char**)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_main.ipp:228:9
(libboost_unit_test_framework.so.1.59.0+0x0000000ddcbc)
239987944- #18 main
/home/ben/development/boost/test/build/boost_root/status/../boost/test/unit_test.hpp:63:12
(test_2741+0x0000000bb325)
239988075-
239988076- Previous write of size 1 at 0x7ffe9c5010e0 by thread T1:
239988135- #0 (anonymous namespace)::execution_monitor::finish()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:90:18
(test_2741+0x0000000bcc61)
239988314- #1 thread_detail_anon::indirect_adapter<void
(*)()>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:137:9
(test_2741+0x0000000c4786)
239988511- #2
boost::detail::thread_data<thread_detail_anon::indirect_adapter<void
(*)()> >::run()
/home/ben/development/boost/test/build/boost_root/status/../boost/thread/detail/thread.hpp:116:17
(test_2741+0x0000000c4730)
239988728- #3 boost::(anonymous namespace)::thread_proxy(void*)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/src/pthread/thread.cpp:172:21
(libboost_thread.so.1.59.0+0x000000026b67)
239988930-
239988931- As if synchronized via sleep:
239988963- #0 nanosleep
/home/ben/development/llvm/trunk/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:307:3
(test_2741+0x000000035d80)
239989106- #1
boost::this_thread::no_interruption_point::hiden::sleep_until(timespec
const&)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/src/pthread/thread.cpp:476:21
(libboost_thread.so.1.59.0+0x0000000274cc)
239989337- #2 boost::this_thread::hiden::sleep_until(timespec const&)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/src/pthread/thread.cpp:522:15
(libboost_thread.so.1.59.0+0x000000027604)
239989545- #3 boost::this_thread::sleep(boost::posix_time::ptime
const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/thread/pthread/thread_data.hpp:278:18
(test_2741+0x0000000c8e9d)
239989742- #4 boost::thread::sleep(boost::posix_time::ptime const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/thread/detail/thread.hpp:578:13
(test_2741+0x0000000c4d59)
239989928- #5 (anonymous namespace)::execution_monitor::wait()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:97:13
(test_2741+0x0000000bc91b)
239990105- #6 void (anonymous namespace)::timed_test<void (*)()>(void
(*)(), int, (anonymous namespace)::execution_monitor::wait_type)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:159:5
(test_2741+0x0000000bc42b)
239990354- #7 test_creation_with_attrs::test_method()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:76:3
(test_2741+0x0000000bc361)
239990524- #8 test_creation_with_attrs_invoker()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:74:1
(test_2741+0x0000000bc23b)
239990689- #9 boost::detail::function::void_function_invoker0<void
(*)(), void>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:118:11
(test_2741+0x0000000c1a5b)
239990944- #10 boost::function0<void>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc51)
239991155- #11 boost::detail::forward::operator()()
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1304:32
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc01)
239991362- #12
boost::detail::function::function_obj_invoker0<boost::detail::forward,
int>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:138:18
(libboost_unit_test_framework.so.1.59.0+0x0000000bca49)
239991657- #13 boost::function0<int>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bc891)
239991867- #14 int
boost::detail::do_invoke<boost::shared_ptr<boost::detail::translator_holder_base>,
boost::function<int ()>
>(boost::shared_ptr<boost::detail::translator_holder_base> const&,
boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:281:30
(libboost_unit_test_framework.so.1.59.0+0x0000000bbb7a)
239992246- #15
boost::execution_monitor::catch_signals(boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:870:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bab37)
239992487- #16 boost::execution_monitor::execute(boost::function<int
()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1207:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bac57)
239992723- #17
boost::execution_monitor::vexecute(boost::function<void ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1313:5
(libboost_unit_test_framework.so.1.59.0+0x0000000bb452)
239992960- #18
boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void
()> const&, unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_monitor.ipp:46:9
(libboost_unit_test_framework.so.1.59.0+0x0000000df83a)
239993235- #19
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:685:26
(libboost_unit_test_framework.so.1.59.0+0x0000000c1019)
239993479- #20
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:636:54
(libboost_unit_test_framework.so.1.59.0+0x0000000c1137)
239993723- #21 boost::unit_test::framework::run(unsigned long, bool)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:1218:5
(libboost_unit_test_framework.so.1.59.0+0x0000000be532)
239993938- #22 boost::unit_test::unit_test_main(bool (*)(), int,
char**)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_main.ipp:228:9
(libboost_unit_test_framework.so.1.59.0+0x0000000ddcbc)
239994161- #23 main
/home/ben/development/boost/test/build/boost_root/status/../boost/test/unit_test.hpp:63:12
(test_2741+0x0000000bb325)
239994292-
239994293- Location is stack of main thread.
239994329-
239994330- Thread T1 (tid=10425, finished) created by main thread at:
239994391- #0 pthread_create
/home/ben/development/llvm/trunk/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:849:3
(test_2741+0x000000039ed1)
239994539- #1 boost::thread::start_thread_noexcept()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/src/pthread/thread.cpp:254:25
(libboost_thread.so.1.59.0+0x000000026ace)
239994730- #2 boost::thread::start_thread()
/home/ben/development/boost/test/build/boost_root/status/../boost/thread/detail/thread.hpp:178:16
(test_2741+0x0000000c453c)
239994892- #3
boost::thread::thread<thread_detail_anon::indirect_adapter<void
(*)()>&>(thread_detail_anon::indirect_adapter<void (*)()>&)
/home/ben/development/boost/test/build/boost_root/status/../boost/thread/detail/thread.hpp:265:13
(test_2741+0x0000000c39d5)
239995148- #4 void (anonymous namespace)::timed_test<void (*)()>(void
(*)(), int, (anonymous namespace)::execution_monitor::wait_type)
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:158:19
(test_2741+0x0000000bc3bf)
239995398- #5 test_creation_with_attrs::test_method()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:76:3
(test_2741+0x0000000bc361)
239995568- #6 test_creation_with_attrs_invoker()
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/test_2741.cpp:74:1
(test_2741+0x0000000bc23b)
239995733- #7 boost::detail::function::void_function_invoker0<void
(*)(), void>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:118:11
(test_2741+0x0000000c1a5b)
239995988- #8 boost::function0<void>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc51)
239996198- #9 boost::detail::forward::operator()()
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1304:32
(libboost_unit_test_framework.so.1.59.0+0x0000000bcc01)
239996404- #10
boost::detail::function::function_obj_invoker0<boost::detail::forward,
int>::invoke(boost::detail::function::function_buffer&)
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:138:18
(libboost_unit_test_framework.so.1.59.0+0x0000000bca49)
239996699- #11 boost::function0<int>::operator()() const
/home/ben/development/boost/test/build/boost_root/status/../boost/function/function_template.hpp:770:14
(libboost_unit_test_framework.so.1.59.0+0x0000000bc891)
239996909- #12 int
boost::detail::do_invoke<boost::shared_ptr<boost::detail::translator_holder_base>,
boost::function<int ()>
>(boost::shared_ptr<boost::detail::translator_holder_base> const&,
boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:281:30
(libboost_unit_test_framework.so.1.59.0+0x0000000bbb7a)
239997288- #13
boost::execution_monitor::catch_signals(boost::function<int ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:870:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bab37)
239997529- #14 boost::execution_monitor::execute(boost::function<int
()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1207:16
(libboost_unit_test_framework.so.1.59.0+0x0000000bac57)
239997765- #15
boost::execution_monitor::vexecute(boost::function<void ()> const&)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/execution_monitor.ipp:1313:5
(libboost_unit_test_framework.so.1.59.0+0x0000000bb452)
239998002- #16
boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void
()> const&, unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_monitor.ipp:46:9
(libboost_unit_test_framework.so.1.59.0+0x0000000df83a)
239998277- #17
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:685:26
(libboost_unit_test_framework.so.1.59.0+0x0000000c1019)
239998521- #18
boost::unit_test::framework::state::execute_test_tree(unsigned long,
unsigned int)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:636:54
(libboost_unit_test_framework.so.1.59.0+0x0000000c1137)
239998765- #19 boost::unit_test::framework::run(unsigned long, bool)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/framework.ipp:1218:5
(libboost_unit_test_framework.so.1.59.0+0x0000000be532)
239998980- #20 boost::unit_test::unit_test_main(bool (*)(), int,
char**)
/home/ben/development/boost/test/build/boost_root/status/../boost/test/impl/unit_test_main.ipp:228:9
(libboost_unit_test_framework.so.1.59.0+0x0000000ddcbc)
239999203- #21 main
/home/ben/development/boost/test/build/boost_root/status/../boost/test/unit_test.hpp:63:12
(test_2741+0x0000000bb325)
239999334-
239999335-SUMMARY: ThreadSanitizer: data race
/home/ben/development/boost/test/build/boost_root/status/../libs/thread/test/./util.inl:106:16
in (anonymous namespace)::execution_monitor::wait()
239999518-==================
Ben