Boost C++ Libraries: Ticket #10537: Application crash on throw exception https://svn.boost.org/trac10/ticket/10537 <p> I am getting following backtrace,which occur only once, please let me know on this: </p> <pre class="wiki">#0 0x00007f05e797dd95 in raise () from /lib64/libc.so.6 #1 0x00007f05e797f2ab in abort () from /lib64/libc.so.6 #2 0x00007f05e85bef2d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6 #3 0x00007f05e85bd0d6 in ?? () from /usr/lib64/libstdc++.so.6 #4 0x00007f05e85bd103 in std::terminate() () from /usr/lib64/libstdc++.so.6 #5 0x00007f05e85bd1fe in __cxa_throw () from /usr/lib64/libstdc++.so.6 #6 0x00000000019b5a16 in boost::throw_exception&lt;boost::lock_error&gt; (e=...) at /usr/include/boost/throw_exception.hpp:61 #7 0x00000000019b4a31 in boost::mutex::lock (this=0x47ef3a8) at /usr/include/boost/thread/pthread/mutex.hpp:55 #8 0x00000000019b5c66 in boost::unique_lock&lt;boost::mutex&gt;::lock (this=0x7f058c5f5ce0) at /usr/include/boost/thread/locks.hpp:412 #9 0x00000000019b5b21 in boost::unique_lock&lt;boost::mutex&gt;::unique_lock (this=0x7f058c5f5ce0, m_=...) at /usr/include/boost/thread/locks.hpp:290 #10 0x00000000019b54c9 in boost::shared_mutex::unlock_and_lock_upgrade (this=0x47ef3a0) at /usr/include/boost/thread/pthread/shared_mutex.hpp:274 #11 0x00000000019b79d6 in boost::upgrade_lock&lt;boost::shared_mutex&gt;::upgrade_lock (this=0x7f058c5f5d30, other=...) at /usr/include/boost/thread/locks.hpp:769 #12 0x00000000019b6f12 in boost::upgrade_lock&lt;boost::shared_mutex&gt;::operator=(boost::unique_lock&lt;boost::shared_mutex&gt;&amp;&amp;) ( this=0x7f058c5f61f0, other=...) at /usr/include/boost/thread/locks.hpp:784 #13 0x00000000019b626e in boost::upgrade_to_unique_lock&lt;boost::shared_mutex&gt;::~upgrade_to_unique_lock (this=0x7f058c5f61d0, __in_chrg=&lt;optimized out&gt;) at /usr/include/boost/thread/locks.hpp:932 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10537 Trac 1.4.3 viboes Fri, 26 Sep 2014 05:56:16 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10537#comment:1 https://svn.boost.org/trac10/ticket/10537#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Anthony Williams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket viboes Fri, 26 Sep 2014 05:59:19 GMT owner, status, description changed https://svn.boost.org/trac10/ticket/10537#comment:2 https://svn.boost.org/trac10/ticket/10537#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/10537?action=diff&amp;version=2">diff</a>) </li> </ul> <p> Please could you add the compiler, boost version and a small test that shows the backtrace? </p> Ticket viboes Fri, 26 Sep 2014 06:05:25 GMT <link>https://svn.boost.org/trac10/ticket/10537#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:3</guid> <description> <p> Could you see if the patch in <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9569" title="#9569: Bugs: [windows] Upgrade lock is not acquired when previous upgrade lock ... (closed: fixed)">#9569</a> fix the crash? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 26 Sep 2014 08:00:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:4</guid> <description> <p> g++ (SUSE Linux) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. </p> <p> boost-1_33_1 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 26 Sep 2014 08:03:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:5</guid> <description> <p> crash do come very rarely. We have 2 writer threads and multiple reader </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 26 Sep 2014 11:16:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:6</guid> <description> <p> My Boost version is 1.46.1.. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 27 Sep 2014 12:27:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:7</guid> <description> <p> Have you applied the patch? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 29 Sep 2014 06:42:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:8</guid> <description> <p> As crash is not reproducible so we cant be sure about the patch. </p> <p> I read the issue fixed in the patch, As per my understanding, This patch do fix the upgrade lock issue (thread don't get upgrade lock if some read lock is already there). I am not sure, can this problem cause crash? Error code is EINVAL not EDEAD in my scenario. </p> <p> Please correct me if my understanding is wrong. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 02 Oct 2014 21:07:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10537#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10537#comment:9</guid> <description> <p> Sorry, I didn't see that you were on linux. I expect that you applied the patch at <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5516" title="#5516: Patches: Upgrade lock is not acquired when previous upgrade lock releases if ... (closed: fixed)">#5516</a> ;-) </p> <p> Could you show the code? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 13 Dec 2014 16:11:56 GMT</pubDate> <title>status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/10537#comment:10 https://svn.boost.org/trac10/ticket/10537#comment:10 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> <p> Yes, as there is a throw. </p> <p> I will move it as duplicated of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5516" title="#5516: Patches: Upgrade lock is not acquired when previous upgrade lock releases if ... (closed: fixed)">#5516</a>. </p> Ticket