Boost C++ Libraries: Ticket #9868: boost1.55-program crashes on exit when boost 1.55 is used https://svn.boost.org/trac10/ticket/9868 <p> 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: <em>./boost/smart_ptr/detail/lwm_pthreads.hpp:73: boost::detail::lightweight_mutex::scoped_lock::scoped_lock(boost::detail::lightweight_mutex&amp;): Assertion `pthread_mutex_lock( &amp;m_ ) == 0' failed. Aborted </em> I have attached the stack trace with this. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9868 Trac 1.4.3 anonymous Wed, 09 Apr 2014 21:57:05 GMT <link>https://svn.boost.org/trac10/ticket/9868#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9868#comment:1</guid> <description> <p> For some reasons, i could not attach the stacktrace file. Here is the stack trace i have: (gdb) backtrace <a class="missing ticket">#0</a> 0x4022fe08 in raise () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> 0x4023398c in abort () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> 0x40228adc in ?? () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> 0x40228ba4 in <span class="underline">assert_fail () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4" title="#4: Bugs: any_ptr in any library documentation? (closed: Fixed)">#4</a> 0x002da2ec in boost::detail::lightweight_mutex::scoped_lock::scoped_lock ( </span></p> <blockquote> <p> this=0xbefff8c8, m=...) at ./boost/smart_ptr/detail/lwm_pthreads.hpp:73 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5" title="#5: Bugs: shared_ptr and self-owning objects (closed: Fixed)">#5</a> 0x0030612c in boost::atomics::detail::lockpool::scoped_lock::scoped_lock ( </p> <blockquote> <p> this=0xbefff8c8, addr=0x3fe304 &lt;boost::detail::(anonymous namespace)::current_thread_tls_init_flag&gt;) at ./boost/atomic/detail/lockpool.hpp:36 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6" title="#6: Bugs: tie in utility.hpp and tuple.hpp clash. (closed: Duplicate)">#6</a> 0x003061b4 in boost::atomics::detail::base_atomic&lt;unsigned int, int, 4u, false&gt;::load ( </p> <blockquote> <p> this=0x3fe304 &lt;boost::detail::(anonymous namespace)::current_thread_tls_init_flag&gt;) at ./boost/atomic/detail/base.hpp:294 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7" title="#7: Bugs: g++ 2.96 requires NO_STRINGSTREAM (closed: Fixed)">#7</a> 0x00305d94 in boost::thread_detail::enter_once_region (flag=...) </p> <blockquote> <p> at libs/thread/src/pthread/./once_atomic.cpp:38 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8" title="#8: Bugs: prop in undirected graph + out_edges (closed: Works For Me)">#8</a> 0x0030217c in boost::call_once&lt;void (*)()&gt; (flag=..., </p> <blockquote> <p> f=0x2fe73c &lt;boost::detail::(anonymous namespace)::create_current_thread_tls_key()&gt;) at ./boost/thread/pthread/once_atomic.hpp:145 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9" title="#9: Bugs: config_info ambiguity error (closed: Invalid)">#9</a> 0x002fe79c in boost::detail::get_current_thread_data () </p> <blockquote> <p> at libs/thread/src/pthread/thread.cpp:140 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10" title="#10: Bugs: allyourbase.jam file is bad. (closed: Out of Date)">#10</a> 0x002ffd08 in boost::detail::find_tss_data (key=0x3ff278) </p> <blockquote> <p> at libs/thread/src/pthread/thread.cpp:679 </p> </blockquote> <p> ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---return <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11" title="#11: Bugs: why not using mt19937? (closed: Fixed)">#11</a> 0x002fff6c in boost::detail::set_tss_data (key=0x3ff278, func=..., </p> <blockquote> <p> tss_data=0x0, cleanup_existing=true) at libs/thread/src/pthread/thread.cpp:722 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/12" title="#12: Bugs: Can't specify VertexPredicate (closed: Fixed)">#12</a> 0x00278750 in boost::thread_specific_ptr&lt;boost::log::v2s_mt_posix::core::implementation::thread_data&gt;::~thread_specific_ptr (this=0x3ff278, </p> <blockquote> <p> <span class="underline">in_chrg=&lt;optimized out&gt;) at ./boost/thread/tss.hpp:79 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/13" title="#13: Bugs: iterator_adapter and abstract classes (closed: Out of Date)">#13</a> 0x00278014 in boost::log::v2s_mt_posix::core::implementation::~implementation (this=0x3ff240, <span class="underline">in_chrg=&lt;optimized out&gt;) at libs/log/src/core.cpp:184 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/14" title="#14: Feature Requests: Support for static data members (closed: Out of Date)">#14</a> 0x00275490 in boost::log::v2s_mt_posix::core::~core (this=0x3ff230, </span></p> <blockquote> <p> <span class="underline">in_chrg=&lt;optimized out&gt;) at libs/log/src/core.cpp:416 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/15" title="#15: Feature Requests: thread class needs join() with timeout (closed: None)">#15</a> 0x0027af90 in boost::checked_delete&lt;boost::log::v2s_mt_posix::core&gt; ( </p> <blockquote> <p> x=0x3ff230) at ./boost/checked_delete.hpp:34 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/16" title="#16: Feature Requests: way to defer thread creation needed (closed: None)">#16</a> 0x0027b5c4 in boost::detail::sp_counted_impl_p&lt;boost::log::v2s_mt_posix::core&gt;::dispose (this=0x3ff760) at ./boost/smart_ptr/detail/sp_counted_impl.hpp:78 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/17" title="#17: Feature Requests: Socket wrapper class (closed: fixed)">#17</a> 0x00049698 in boost::detail::sp_counted_base::release (this=0x3ff760) </p> <blockquote> <p> at /home/UTILS/pre/boost_1_55_0/boost/smart_ptr/detail/sp_counted_base_spin.hpp:103 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/18" title="#18: Bugs: lexical_cast fails in some cases (closed: Fixed)">#18</a> 0x00049738 in boost::detail::shared_count::~shared_count ( </p> <blockquote> <p> this=0x3fdd48 &lt;boost::log::v2s_mt_posix::aux::lazy_singleton&lt;boost::log::v2s_mt_posix::core::implementation, boost::shared_ptr&lt;boost::log::v2s_mt_posix::core&gt; &gt;::get_instance()::instance+4&gt;, <span class="underline">in_chrg=&lt;optimized out&gt;) at /home/UTILS/pre/boost_1_55_0/boost/smart_ptr/detail/shared_count.hpp:371 </span></p> </blockquote> <p> ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---return <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/19" title="#19: Bugs: Problems building on NT &amp; Linux (closed: Out of Date)">#19</a> 0x000c48e8 in boost::shared_ptr&lt;boost::log::v2s_mt_posix::core&gt;::~shared_ptr ( </p> <blockquote> <p> this=0x3fdd44 &lt;boost::log::v2s_mt_posix::aux::lazy_singleton&lt;boost::log::v2s_mt_posix::core::implementation, boost::shared_ptr&lt;boost::log::v2s_mt_posix::core&gt; &gt;::get_instance()::instance&gt;, <span class="underline">in_chrg=&lt;optimized out&gt;) at /home/UTILS/pre/boost_1_55_0/boost/smart_ptr/shared_ptr.hpp:328 </span></p> </blockquote> <p> <a class="deleted ticket" href="https://svn.boost.org/trac10/ticket/20" title="#20: Support Requests: passwords in c++ programming (deleted)">#20</a> 0x402352fc in ?? () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/21" title="#21: Bugs: Can't compile transitive closure example (closed: Out of Date)">#21</a> 0x40235334 in exit () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/22" title="#22: Support Requests: compilation failure on Linux RH 7.1 (closed: Wont Fix)">#22</a> 0x4021a288 in <span class="underline">libc_start_main () from /lib/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/23" title="#23: Bugs: Trivial doc error (closed: Fixed)">#23</a> 0x00037e30 in _start () (gdb) exit </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Thu, 10 Apr 2014 07:40:44 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/9868#comment:2 https://svn.boost.org/trac10/ticket/9868#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Peter Dimov</span> to <span class="trac-author">Andrey Semashev</span> </li> </ul> <p> This is a known problem with the Boost.Atomic lock pool - see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9466" title="#9466: Bugs: shared_ptr fails with EINVAL on AIX 7.1 when compiled with atomic (closed: fixed)">#9466</a>. The comments on that ticket contain a fix. </p> Ticket Andrey Semashev Thu, 10 Apr 2014 08:02:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9868#comment:3 https://svn.boost.org/trac10/ticket/9868#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9466" title="#9466: Bugs: shared_ptr fails with EINVAL on AIX 7.1 when compiled with atomic (closed: fixed)">#9466</a>. </p> Ticket