Skip to content

Instantly share code, notes, and snippets.

@ethanrublee
Created October 31, 2011 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanrublee/1328555 to your computer and use it in GitHub Desktop.
Save ethanrublee/1328555 to your computer and use it in GitHub Desktop.
strand fail on lucid boost 1.40
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
what(): mutex: Invalid argument
Program received signal SIGABRT, Aborted.
0x00007ffff51f8a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0 0x00007ffff51f8a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff51fc5c0 in *__GI_abort () at abort.c:92
#2 0x00007ffff5aae8e5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#3 0x00007ffff5aacd16 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007ffff5aacd43 in std::terminate() () from /usr/lib/libstdc++.so.6
#5 0x00007ffff5aace3e in __cxa_throw () from /usr/lib/libstdc++.so.6
#6 0x00000000004be250 in void boost::throw_exception<boost::system::system_error>(boost::system::system_error const&) ()
#7 0x00007ffff7b59852 in boost::intrusive_ptr<boost::asio::detail::strand_service::strand_impl>::~intrusive_ptr() ()
from /home/ecto_ws/straz/ecto/build/lib/libecto.so.0.1
#8 0x00007ffff7b59958 in boost::detail::sp_counted_impl_p<ecto::strand::impl>::dispose() () from /home/ecto_ws/straz/ecto/build/lib/libecto.so.0.1
#9 0x00007ffff7a9c3bf in boost::detail::sp_counted_base::release (this=0x7fffe800ac80, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#10 ~shared_count (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#11 ~shared_ptr (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#12 ~strand (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /home/ecto_ws/straz/ecto/include/ecto/strand.hpp:39
#13 boost::optional_detail::optional_base<ecto::strand>::destroy_impl (this=0x7fffe800ac80, __in_chrg=<value optimized out>)
at /usr/include/boost/optional/optional.hpp:434
#14 boost::optional_detail::optional_base<ecto::strand>::destroy (this=0x7fffe800ac80, __in_chrg=<value optimized out>)
at /usr/include/boost/optional/optional.hpp:408
#15 ~optional_base (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /usr/include/boost/optional/optional.hpp:237
#16 ~optional (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /usr/include/boost/optional/optional.hpp:522
#17 ~cell (this=0x7fffe800ac80, __in_chrg=<value optimized out>) at /home/ecto_ws/straz/ecto/src/lib/cell.cpp:144
#18 0x00007ffff616f172 in ecto::cell_<ecto_test::DontCallMeFromTwoThreads>::~cell_() () from /home/ecto_ws/straz/ecto/build/lib/ecto_test.so
#19 0x000000000046a119 in boost::detail::sp_counted_base::release (this=<value optimized out>, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#20 ~shared_count (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#21 0x00007ffff7accf5c in boost::detail::sp_counted_impl_p<ecto::plasm::impl>::dispose() () from /home/ecto_ws/straz/ecto/build/lib/libecto.so.0.1
#22 0x000000000046a119 in boost::detail::sp_counted_base::release (this=<value optimized out>, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#23 ~shared_count (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#24 0x00007ffff7aba727 in ~shared_ptr (this=0x7fffe8000ca0, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#25 ~plasm (this=0x7fffe8000ca0, __in_chrg=<value optimized out>) at /home/ecto_ws/straz/ecto/src/lib/plasm.cpp:232
#26 0x0000000000498392 in checked_delete<ecto::plasm> (this=<value optimized out>) at /usr/include/boost/checked_delete.hpp:34
#27 boost::detail::sp_counted_impl_p<ecto::plasm>::dispose (this=<value optimized out>) at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78
#28 0x000000000046a119 in boost::detail::sp_counted_base::release (this=<value optimized out>, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#29 ~shared_count (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#30 0x00000000004b5b56 in ~shared_ptr (this=<value optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#31 Strands_Crashy2_is_on_user_supplied_strand_Test::TestBody (this=<value optimized out>) at /home/ecto_ws/straz/ecto/test/cpp/strands.cpp:129
#32 0x00007ffff777f92a in testing::Test::Run() () from /usr/lib/libgtest.so.0
#33 0x00007ffff777fa28 in testing::internal::TestInfoImpl::Run() () from /usr/lib/libgtest.so.0
#34 0x00007ffff777fadb in testing::TestCase::Run() () from /usr/lib/libgtest.so.0
#35 0x00007ffff7783cfd in testing::internal::UnitTestImpl::RunAllTests() () from /usr/lib/libgtest.so.0
#36 0x00000000004578cf in main (argc=1, argv=<value optimized out>) at /home/ecto_ws/straz/ecto/test/cpp/main.cpp:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment