Opened 9 years ago
Closed 9 years ago
#9868 closed Bugs (duplicate)
boost1.55-program crashes on exit when boost 1.55 is used
Reported by: | anonymous | Owned by: | Andrey Semashev |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi, I have this exe using the previous versions of boost working fine. When I updated boost library to Boost 1.55, my application crashes on exit with the following message: ./boost/smart_ptr/detail/lwm_pthreads.hpp:73: boost::detail::lightweight_mutex::scoped_lock::scoped_lock(boost::detail::lightweight_mutex&): Assertion `pthread_mutex_lock( &m_ ) == 0' failed. Aborted I have attached the stack trace with this.
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Owner: | changed from | to
---|
This is a known problem with the Boost.Atomic lock pool - see #9466. The comments on that ticket contain a fix.
Note:
See TracTickets
for help on using tickets.
For some reasons, i could not attach the stacktrace file. Here is the stack trace i have: (gdb) backtrace #0 0x4022fe08 in raise () from /lib/libc.so.6 #1 0x4023398c in abort () from /lib/libc.so.6 #2 0x40228adc in ?? () from /lib/libc.so.6 #3 0x40228ba4 in assert_fail () from /lib/libc.so.6 #4 0x002da2ec in boost::detail::lightweight_mutex::scoped_lock::scoped_lock (
#5 0x0030612c in boost::atomics::detail::lockpool::scoped_lock::scoped_lock (
#6 0x003061b4 in boost::atomics::detail::base_atomic<unsigned int, int, 4u, false>::load (
#7 0x00305d94 in boost::thread_detail::enter_once_region (flag=...)
#8 0x0030217c in boost::call_once<void (*)()> (flag=...,
#9 0x002fe79c in boost::detail::get_current_thread_data ()
#10 0x002ffd08 in boost::detail::find_tss_data (key=0x3ff278)
---Type <return> to continue, or q <return> to quit---return #11 0x002fff6c in boost::detail::set_tss_data (key=0x3ff278, func=...,
#12 0x00278750 in boost::thread_specific_ptr<boost::log::v2s_mt_posix::core::implementation::thread_data>::~thread_specific_ptr (this=0x3ff278,
#13 0x00278014 in boost::log::v2s_mt_posix::core::implementation::~implementation (this=0x3ff240, in_chrg=<optimized out>) at libs/log/src/core.cpp:184 #14 0x00275490 in boost::log::v2s_mt_posix::core::~core (this=0x3ff230,
#15 0x0027af90 in boost::checked_delete<boost::log::v2s_mt_posix::core> (
#16 0x0027b5c4 in boost::detail::sp_counted_impl_p<boost::log::v2s_mt_posix::core>::dispose (this=0x3ff760) at ./boost/smart_ptr/detail/sp_counted_impl.hpp:78 #17 0x00049698 in boost::detail::sp_counted_base::release (this=0x3ff760)
#18 0x00049738 in boost::detail::shared_count::~shared_count (
---Type <return> to continue, or q <return> to quit---return #19 0x000c48e8 in boost::shared_ptr<boost::log::v2s_mt_posix::core>::~shared_ptr (
#20 0x402352fc in ?? () from /lib/libc.so.6 #21 0x40235334 in exit () from /lib/libc.so.6 #22 0x4021a288 in libc_start_main () from /lib/libc.so.6 #23 0x00037e30 in _start () (gdb) exit