[Boost-bugs] [Boost C++ Libraries] #12729: crash

Subject: [Boost-bugs] [Boost C++ Libraries] #12729: crash
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-05 13:06:39


#12729: crash
------------------------------+------------------------
 Reporter: anonymous | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 I find a crash:[[BR]]

 1.Operating system: Android 0.0.0 Linux 3.10.0[[BR]]

 2.CPU: arm ARMv7 ARM part(0x4100c070) features:
 swp,half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls,vfpv4,idiva,idivt 4
 CPUs[[BR]]

 3.code:[[BR]]

 void my_thread_sleep(int millisec)[[BR]]

 {
 try{boost::thread::sleep(boost::get_system_time() +
 boost::posix_time::millisec(millisec));}
         catch (boost::thread_interrupted& e){(void)e;}
         catch (...){}
 }[[BR]]

 thread do:[[BR]]

 for(;;)
 {
 my_thread_sleep(5000);
 }[[BR]]

 4.googlebreak dump:
 Thread 33 (crashed)
  0 libc.so + 0x1d980
      r0 = 0x586e21b8 r1 = 0x00000000 r2 = 0x00000000 r3 =
 0x66ebd65c
      r4 = 0x66ebd65c r5 = 0x00000000 r6 = 0x66ebd65c r7 =
 0x66ebd688
      r8 = 0x586e21b8 r9 = 0x66ebd6b8 r10 = 0x0007ef31 r12 =
 0xfffd0fa8
      fp = 0x66ebda90 sp = 0x66ebd5b0 lr = 0x4007ba15 pc =
 0x4007a980
     Found by: given as instruction pointer in context
  1 libc.so + 0x22ffe
      sp = 0x66ebd5cc pc = 0x40080000
     Found by: stack scanning
  2 libc.so + 0x1ea13
      sp = 0x66ebd5f0 pc = 0x4007ba15
     Found by: stack scanning
  3 libc.so + 0x1ebc5
      sp = 0x66ebd608 pc = 0x4007bbc7
     Found by: stack scanning
  4
 test.so!boost::date_time::microsec_clock<boost::posix_time::ptime>::create_time
 [microsec_time_clock.hpp : 117 + 0x15]
      sp = 0x66ebd614 pc = 0x64a1102d
     Found by: stack scanning
  5 test.so!boost::date_time::c_time::gmtime [c_time.hpp : 85 + 0x3]
      sp = 0x66ebd618 pc = 0x64a11041
     Found by: stack scanning
  6
 test.so!boost::date_time::microsec_clock<boost::posix_time::ptime>::create_time
 [microsec_time_clock.hpp : 100 + 0x1]
      sp = 0x66ebd638 pc = 0x64a10fa3
     Found by: stack scanning
  7 test.so!boost::condition_variable::do_wait_until
 [condition_variable.hpp : 112 + 0x3]
      sp = 0x66ebd650 pc = 0x64af342d
     Found by: stack scanning
  8 test.so!__gnu_ldivmod_helper [bpabi.c : 41 + 0x2]
      sp = 0x66ebd680 pc = 0x64b9d29c
     Found by: stack scanning
  9 test.so!__aeabi_ldivmod + 0x32
      r3 = 0x00000000 r4 = 0x00000006 r5 = 0x586e21b8 r6 =
 0x586e21b8
      r7 = 0x0009e94d sp = 0x66ebd698 pc = 0x64b9d110
     Found by: call frame info
 10 0x26
      r4 = 0x00000006 r5 = 0x586e21b8 r6 = 0x586e21b8 r7 =
 0x0009e94d
      sp = 0x66ebd6a8 pc = 0x00000028
     Found by: call frame info
 11 test.so!my_thread_sleep [microsec_time_clock.hpp : 76 + 0x11]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12729>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC