Boost C++ Libraries: Ticket #12729: crash https://svn.boost.org/trac10/ticket/12729 <p> I find a crash:<br /> </p> <p> 1.Operating system: Android 0.0.0 Linux 3.10.0<br /> </p> <p> 2.CPU: arm ARMv7 ARM part(0x4100c070) features: swp,half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls,vfpv4,idiva,idivt 4 CPUs<br /> </p> <p> 3.code:<br /> </p> <p> void my_thread_sleep(int millisec)<br /> </p> <p> { try{boost::thread::sleep(boost::get_system_time() + boost::posix_time::millisec(millisec));} </p> <blockquote> <p> catch (boost::thread_interrupted&amp; e){(void)e;} catch (...){} </p> </blockquote> <p> }<br /> </p> <p> thread do:<br /> </p> <p> for(;;) { my_thread_sleep(5000); }<br /> </p> <p> 4.googlebreak dump: Thread 33 (crashed) </p> <blockquote> <p> 0 libc.so + 0x1d980 </p> <blockquote> <p> <a class="missing changeset" title="No changeset 0 in the repository">r0</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">r1</a> = 0x00000000 <a class="changeset" href="https://svn.boost.org/trac10/changeset/2" title="Add Boost Disclaimer">r2</a> = 0x00000000 <a class="changeset" href="https://svn.boost.org/trac10/changeset/3" title="Tweak disclaimer text">r3</a> = 0x66ebd65c <a class="changeset" href="https://svn.boost.org/trac10/changeset/4" title="Tweak disclaimer formatting, again">r4</a> = 0x66ebd65c <a class="changeset" href="https://svn.boost.org/trac10/changeset/5" title="Boost customization">r5</a> = 0x00000000 <a class="changeset" href="https://svn.boost.org/trac10/changeset/6" title="New repository initialized by cvs2svn.">r6</a> = 0x66ebd65c <a class="changeset" href="https://svn.boost.org/trac10/changeset/7" title="Initial content for next-gen Boost website. ">r7</a> = 0x66ebd688 <a class="changeset" href="https://svn.boost.org/trac10/changeset/8" title="Initial content for next-gen Boost website. ">r8</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/9" title="*** empty log message *** ">r9</a> = 0x66ebd6b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/10" title="*** empty log message *** ">r10</a> = 0x0007ef31 <a class="changeset" href="https://svn.boost.org/trac10/changeset/12" title="More things getting included from common. ">r12</a> = 0xfffd0fa8 fp = 0x66ebda90 sp = 0x66ebd5b0 lr = 0x4007ba15 pc = 0x4007a980 </p> </blockquote> <p> Found by: given as instruction pointer in context </p> </blockquote> <blockquote> <p> 1 libc.so + 0x22ffe </p> <blockquote> <p> sp = 0x66ebd5cc pc = 0x40080000 </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 2 libc.so + 0x1ea13 </p> <blockquote> <p> sp = 0x66ebd5f0 pc = 0x4007ba15 </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 3 libc.so + 0x1ebc5 </p> <blockquote> <p> sp = 0x66ebd608 pc = 0x4007bbc7 </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 4 test.so!boost::date_time::microsec_clock&lt;boost::posix_time::ptime&gt;::create_time [microsec_time_clock.hpp : 117 + 0x15] </p> <blockquote> <p> sp = 0x66ebd614 pc = 0x64a1102d </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 5 test.so!boost::date_time::c_time::gmtime [c_time.hpp : 85 + 0x3] </p> <blockquote> <p> sp = 0x66ebd618 pc = 0x64a11041 </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 6 test.so!boost::date_time::microsec_clock&lt;boost::posix_time::ptime&gt;::create_time [microsec_time_clock.hpp : 100 + 0x1] </p> <blockquote> <p> sp = 0x66ebd638 pc = 0x64a10fa3 </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 7 test.so!boost::condition_variable::do_wait_until [condition_variable.hpp : 112 + 0x3] </p> <blockquote> <p> sp = 0x66ebd650 pc = 0x64af342d </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 8 test.so__gnu_ldivmod_helper [bpabi.c : 41 + 0x2] </p> <blockquote> <p> sp = 0x66ebd680 pc = 0x64b9d29c </p> </blockquote> <p> Found by: stack scanning </p> </blockquote> <blockquote> <p> 9 test.so__aeabi_ldivmod + 0x32 </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/3" title="Tweak disclaimer text">r3</a> = 0x00000000 <a class="changeset" href="https://svn.boost.org/trac10/changeset/4" title="Tweak disclaimer formatting, again">r4</a> = 0x00000006 <a class="changeset" href="https://svn.boost.org/trac10/changeset/5" title="Boost customization">r5</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/6" title="New repository initialized by cvs2svn.">r6</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/7" title="Initial content for next-gen Boost website. ">r7</a> = 0x0009e94d sp = 0x66ebd698 pc = 0x64b9d110 </p> </blockquote> <p> Found by: call frame info </p> </blockquote> <p> 10 0x26 </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/4" title="Tweak disclaimer formatting, again">r4</a> = 0x00000006 <a class="changeset" href="https://svn.boost.org/trac10/changeset/5" title="Boost customization">r5</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/6" title="New repository initialized by cvs2svn.">r6</a> = 0x586e21b8 <a class="changeset" href="https://svn.boost.org/trac10/changeset/7" title="Initial content for next-gen Boost website. ">r7</a> = 0x0009e94d sp = 0x66ebd6a8 pc = 0x00000028 </p> </blockquote> <blockquote> <p> Found by: call frame info </p> </blockquote> <p> 11 test.so!my_thread_sleep [microsec_time_clock.hpp : 76 + 0x11] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12729 Trac 1.4.3 iewj@… Fri, 06 Jan 2017 01:20:39 GMT <link>https://svn.boost.org/trac10/ticket/12729#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12729#comment:1</guid> <description> <p> asio,deadline_timer<br /> </p> <p> arm android NDK14 gcc<br /> </p> <p> crash every once in a while:<br /> </p> <p> boost::date_time::microsec_clock&lt;boost::posix_time::ptime&gt;::create_time </p> </description> <category>Ticket</category> </item> </channel> </rss>