Boost C++ Libraries: Ticket #4121: locking of boost::timed_mutex results in segmentation fault on linux x64 https://svn.boost.org/trac10/ticket/4121 <p> Linux version 2.6.24-27-generic (buildd@crested) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)) <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> SMP Fri Mar 12 00:52:19 UTC 2010 x64 </p> <p> intensive usage of boost::timed_mutex::scoped_lock from many threads with the same timed_mutex results in segmentation fault. Sample code is attached. It catches SIGSEGV signal in about 5-10 secs of normal operation and prints stack traces. </p> <p> Stack traces show: </p> <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> &lt;signal handler called&gt; </p> <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> 0x00007f5834551244 in <span class="underline">lll_timedlock_wait () from /lib/libpthread.so.0 </span></p> <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> 0x00007f583454d9ac in _L_timedlock_161 () from /lib/libpthread.so.0 </p> <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> 0x00007f583454d230 in pthread_mutex_timedlock () from /lib/libpthread.so.0 </p> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9" title="#9: Bugs: config_info ambiguity error (closed: Invalid)">#9</a> 0x000000000040a2f0 in thread_func () </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4121 Trac 1.4.3 Andrew Tylychko <andriy.tylychko@…> Mon, 19 Apr 2010 09:12:19 GMT attachment set https://svn.boost.org/trac10/ticket/4121 https://svn.boost.org/trac10/ticket/4121 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">mutex_test.zip</span> </li> </ul> <p> sample code </p> Ticket Andrew Tylychko <andriy.tylychko@…> Wed, 21 Apr 2010 10:23:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4121#comment:1 https://svn.boost.org/trac10/ticket/4121#comment:1 <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">invalid</span> </li> </ul> <p> seems it's the kernel problem described here: <a class="ext-link" href="https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/284672"><span class="icon">​</span>https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/284672</a> </p> Ticket