aMule Forum

English => Backtraces => Topic started by: greek on June 19, 2008, 04:08:19 AM

Title: Amule SVN (June 18th) crashes on Leopard
Post by: greek on June 19, 2008, 04:08:19 AM
First to I configure amule by:

./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.7/wx-config --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-debug --enable_gdb

After it is used for a while in the bachground (I don't do anything to cause this), it crashes.
The backtraces follow:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x001681a8 in __gnu_norm::_List_const_iterator<Kademlia::CContact*>::operator++ (this=0xbfffeea0) at stl_list.h:221
221      _M_node = _M_node->_M_next;
(gdb)
(gdb)
(gdb)
(gdb) bt
#0  0x001681a8 in __gnu_norm::_List_const_iterator<Kademlia::CContact*>::operator++ (this=0xbfffeea0) at stl_list.h:221
#1  0x0018e53c in std::__distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x0}, __last={_M_node = 0x17fc7ed4}) at stl_iterator_base_funcs.h:83
#2  0x0018e58a in std::distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x164f41b0}, __last={_M_node = 0xbfffeea0}) at stl_iterator_base_funcs.h:118
#3  0x0018e77d in __gnu_norm::list<Kademlia::CContact*, std::allocator<Kademlia::CContact*> >::size (this=0x17fc7ed4) at stl_list.h:656
#4  0x0018e7b4 in Kademlia::CRoutingBin::GetRemaining (this=0x17fc7ed0) at RoutingBin.h:70
#5  0x0018bafd in Kademlia::CRoutingZone::OnBigTimer (this=0x17fc7ed4) at kademlia/routing/RoutingZone.cpp:486
#6  0x001572a8 in Kademlia::CKademlia::Process () at kademlia/kademlia/Kademlia.cpp:227
#7  0x00006db5 in CamuleApp::OnCoreTimer (this=0x1624810) at amule.cpp:1466
#8  0x005cc5d3 in wxEvtHandler::ProcessEventIfMatches () at amule.cpp:2264
#9  0x005cc74f in wxEventHashTable::HandleEvent () at amule.cpp:2264
#10 0x005ccb1f in wxEvtHandler::ProcessEvent () at amule.cpp:2264
#11 0x005ccba6 in wxEvtHandler::ProcessPendingEvents () at amule.cpp:2264
#12 0x00540209 in wxAppConsole::ProcessPendingEvents () at amule.cpp:2264
#13 0x005c5412 in wxMacProcessNotifierAndPendingEvents () at amule.cpp:2264
#14 0x0041c604 in wxApp::MacHandleOneEvent () at amule.cpp:2264
#15 0x0041c69f in wxApp::MacDoOneEvent () at amule.cpp:2264
#16 0x00435ee3 in wxEventLoop::Dispatch () at amule.cpp:2264
#17 0x004c01df in wxEventLoopManual::Run () at amule.cpp:2264
#18 0x0049e3d3 in wxAppBase::MainLoop () at amule.cpp:2264
#19 0x005776ba in wxEntry () at amule.cpp:2264
#20 0x001aec78 in main (argc=1, argv=0xbfffeea0) at amule-gui.cpp:95
(gdb) bt full
#0  0x001681a8 in __gnu_norm::_List_const_iterator<Kademlia::CContact*>::operator++ (this=0xbfffeea0) at stl_list.h:221
No locals.
#1  0x0018e53c in std::__distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x0}, __last={_M_node = 0x17fc7ed4}) at stl_iterator_base_funcs.h:83
   __n = 3
#2  0x0018e58a in std::distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x164f41b0}, __last={_M_node = 0xbfffeea0}) at stl_iterator_base_funcs.h:118
No locals.
#3  0x0018e77d in __gnu_norm::list<Kademlia::CContact*, std::allocator<Kademlia::CContact*> >::size (this=0x17fc7ed4) at stl_list.h:656
No locals.
#4  0x0018e7b4 in Kademlia::CRoutingBin::GetRemaining (this=0x17fc7ed0) at RoutingBin.h:70
No locals.
#5  0x0018bafd in Kademlia::CRoutingZone::OnBigTimer (this=0x17fc7ed4) at kademlia/routing/RoutingZone.cpp:486
No locals.
#6  0x001572a8 in Kademlia::CKademlia::Process () at kademlia/kademlia/Kademlia.cpp:227
   zone = (class Kademlia::CRoutingZone *) 0x17fc7ed4
   it = {
  <__gnu_debug::_Safe_iterator_base> = {
    _M_sequence = 0xbe6b38,
    _M_version = 1,
    _M_prior = 0x0,
    _M_next = 0x0
  },
  members of __gnu_debug::_Safe_iterator<std::_Rb_tree_const_iterator<std::pair<Kademlia::CRoutingZone* const, Kademlia::CRoutingZone*> >,__gnu_debug_def::map<Kademlia::CRoutingZone*, Kademlia::CRoutingZone*, std::less<Kademlia::CRoutingZone*>, std::allocator<std::pair<Kademlia::CRoutingZone* const, Kademlia::CRoutingZone*> > > >:
  _M_current = {
    _M_node = 0x17fd8e00
  }
}
#7  0x00006db5 in CamuleApp::OnCoreTimer (this=0x1624810) at amule.cpp:1466
   msPrevSave = 1381563
   msPrevKnownMet = 0
   msPrev1 = 1425652
   msPrev5 = 1420553
   msPrevHist = 1425000
   msPrevOS = 1425552
   msCur = 1425652
#8  0x005cc5d3 in wxEvtHandler::ProcessEventIfMatches () at amule.cpp:2264
No symbol table info available.
#9  0x005cc74f in wxEventHashTable::HandleEvent () at amule.cpp:2264
No symbol table info available.
#10 0x005ccb1f in wxEvtHandler::ProcessEvent () at amule.cpp:2264
No symbol table info available.
#11 0x005ccba6 in wxEvtHandler::ProcessPendingEvents () at amule.cpp:2264
No symbol table info available.
#12 0x00540209 in wxAppConsole::ProcessPendingEvents () at amule.cpp:2264
No symbol table info available.
#13 0x005c5412 in wxMacProcessNotifierAndPendingEvents () at amule.cpp:2264
No symbol table info available.
#14 0x0041c604 in wxApp::MacHandleOneEvent () at amule.cpp:2264
No symbol table info available.
#15 0x0041c69f in wxApp::MacDoOneEvent () at amule.cpp:2264
No symbol table info available.
#16 0x00435ee3 in wxEventLoop::Dispatch () at amule.cpp:2264
No symbol table info available.
#17 0x004c01df in wxEventLoopManual::Run () at amule.cpp:2264
No symbol table info available.
#18 0x0049e3d3 in wxAppBase::MainLoop () at amule.cpp:2264
No symbol table info available.
#19 0x005776ba in wxEntry () at amule.cpp:2264
No symbol table info available.
#20 0x001aec78 in main (argc=1, argv=0xbfffeea0) at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt

Thread 17 (process 29186 thread 0x4bab):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 14 (process 29186 thread 0x7607):
#0  0x963cb68e in __semwait_signal ()
#1  0x963f6986 in _pthread_cond_wait ()
#2  0x963f636d in pthread_cond_wait$UNIX2003 ()
#3  0x9452c460 in pthreadSemaphoreWait ()
#4  0x9453ed92 in CMMConvTask ()
#5  0x963f56f5 in _pthread_start ()
#6  0x963f55b2 in thread_start ()

Thread 13 (process 29186 thread 0x7203):
#0  0x963c44fa in semaphore_timedwait_trap ()
#1  0x959c78fb in MPWaitOnSemaphore ()
#2  0x005c358b in wxSemaphoreInternal::WaitTimeout () at amule.cpp:2264
#3  0x0028a400 in CTimerThread::Entry (this=0x1647ef0) at Timer.cpp:64
#4  0x005c4bad in wxThreadInternal::MacThreadStart () at amule.cpp:2264
#5  0x959b455b in PrivateMPEntryPoint ()
#6  0x963f56f5 in _pthread_start ()
#7  0x963f55b2 in thread_start ()

Thread 11 (process 29186 thread 0x6b03):
#0  0x963c45c6 in mach_wait_until ()
#1  0x959ccd6b in MPDelayUntil ()
#2  0x005c396f in wxThread::Sleep () at amule.cpp:2264
#3  0x0012b766 in UploadBandwidthThrottler::Entry (this=0x171cfb30) at UploadBandwidthThrottler.cpp:324
#4  0x005c4bad in wxThreadInternal::MacThreadStart () at amule.cpp:2264
#5  0x959b455b in PrivateMPEntryPoint ()
#6  0x963f56f5 in _pthread_start ()
#7  0x963f55b2 in thread_start ()

Thread 8 (process 29186 thread 0x4a03):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 7 (process 29186 thread 0x4903):
#0  0x963fc1de in select$DARWIN_EXTSN$NOCANCEL ()
#1  0x9644a651 in select ()
#2  0x154c2df5 in RunMiniServer ()
#3  0x017fa31c in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 5 (process 29186 thread 0x4703):
#0  0x959a6933 in UmapBCharToUChars ()
#1  0x959a62a7 in ConvertFromTextToUnicodeImplementation ()
#2  0x015e3884 in ConvertToUnicodeHook ()
#3  0x959b4146 in TECConvertTextInternal ()
#4  0x959b3e80 in TECConvertText ()
#5  0x005926cf in wxMBConv_mac::MB2WC () at amule.cpp:2264
#6  0x0058eea8 in wxMBConv::cMB2WC () at amule.cpp:2264

#7  0x0000df30 in wxMBConv::cMB2WX (this=0x1624328, psz=0x1624328 "") at strconv.h:110
#8  0x0000f660 in char2unicode (x=0x1624328 "") at StringFunctions.h:80
#9  0x001aeb24 in CLogger::AddLogLine (file=@0x1624328, line=23216936, critical=true, type=23216936, msg=@0x1624328) at UPnPCompatibility.cpp:47
#10 0x00197831 in CUPnPControlPoint::Callback (EventType=UPNP_DISCOVERY_ADVERTISEMENT_ALIVE, Event=0xb01b58b8) at UPnP.cpp:1388
#11 0x154bee95 in ssdp_handle_ctrlpt_msg ()
#12 0x154c01e4 in ssdp_event_handler_thread ()
#13 0x017fa31c in WorkerThread ()
#14 0x963f56f5 in _pthread_start ()
#15 0x963f55b2 in thread_start ()

Thread 4 (process 29186 thread 0x4603):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 3 (process 29186 thread 0x3403):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017faa4f in TimerThreadWorker ()
#4  0x017fa31c in WorkerThread ()
#5  0x963f56f5 in _pthread_start ()
#6  0x963f55b2 in thread_start ()

Thread 2 (process 29186 thread 0x3203):
#0  0x964145e2 in select$DARWIN_EXTSN ()
#1  0x903c450f in __CFSocketManager ()
#2  0x963f56f5 in _pthread_start ()
#3  0x963f55b2 in thread_start ()

Thread 1 (process 29186 local thread 0x5407):
#0  0x001681a8 in __gnu_norm::_List_const_iterator<Kademlia::CContact*>::operator++ (this=0xbfffeea0) at stl_list.h:221
#1  0x0018e53c in std::__distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x0}, __last={_M_node = 0x17fc7ed4}) at stl_iterator_base_funcs.h:83
#2  0x0018e58a in std::distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x164f41b0}, __last={_M_node = 0xbfffeea0}) at stl_iterator_base_funcs.h:118
#3  0x0018e77d in __gnu_norm::list<Kademlia::CContact*, std::allocator<Kademlia::CContact*> >::size (this=0x17fc7ed4) at stl_list.h:656
#4  0x0018e7b4 in Kademlia::CRoutingBin::GetRemaining (this=0x17fc7ed0) at RoutingBin.h:70
#5  0x0018bafd in Kademlia::CRoutingZone::OnBigTimer (this=0x17fc7ed4) at kademlia/routing/RoutingZone.cpp:486
#6  0x001572a8 in Kademlia::CKademlia::Process () at kademlia/kademlia/Kademlia.cpp:227
#7  0x00006db5 in CamuleApp::OnCoreTimer (this=0x1624810) at amule.cpp:1466
#8  0x005cc5d3 in wxEvtHandler::ProcessEventIfMatches () at amule.cpp:2264
#9  0x005cc74f in wxEventHashTable::HandleEvent () at amule.cpp:2264
#10 0x005ccb1f in wxEvtHandler::ProcessEvent () at amule.cpp:2264
#11 0x005ccba6 in wxEvtHandler::ProcessPendingEvents () at amule.cpp:2264
#12 0x00540209 in wxAppConsole::ProcessPendingEvents () at amule.cpp:2264
#13 0x005c5412 in wxMacProcessNotifierAndPendingEvents () at amule.cpp:2264
#14 0x0041c604 in wxApp::MacHandleOneEvent () at amule.cpp:2264
#15 0x0041c69f in wxApp::MacDoOneEvent () at amule.cpp:2264
#16 0x00435ee3 in wxEventLoop::Dispatch () at amule.cpp:2264
#17 0x004c01df in wxEventLoopManual::Run () at amule.cpp:2264
#18 0x0049e3d3 in wxAppBase::MainLoop () at amule.cpp:2264
#19 0x005776ba in wxEntry () at amule.cpp:2264
#20 0x001aec78 in main (argc=1, argv=0xbfffeea0) at amule-gui.cpp:95
(gdb)

Thread 17 (process 29186 thread 0x4bab):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 14 (process 29186 thread 0x7607):
#0  0x963cb68e in __semwait_signal ()
#1  0x963f6986 in _pthread_cond_wait ()
#2  0x963f636d in pthread_cond_wait$UNIX2003 ()
#3  0x9452c460 in pthreadSemaphoreWait ()
#4  0x9453ed92 in CMMConvTask ()
#5  0x963f56f5 in _pthread_start ()
#6  0x963f55b2 in thread_start ()

Thread 13 (process 29186 thread 0x7203):
#0  0x963c44fa in semaphore_timedwait_trap ()
#1  0x959c78fb in MPWaitOnSemaphore ()
#2  0x005c358b in wxSemaphoreInternal::WaitTimeout () at amule.cpp:2264
#3  0x0028a400 in CTimerThread::Entry (this=0x1647ef0) at Timer.cpp:64
#4  0x005c4bad in wxThreadInternal::MacThreadStart () at amule.cpp:2264
#5  0x959b455b in PrivateMPEntryPoint ()
#6  0x963f56f5 in _pthread_start ()
#7  0x963f55b2 in thread_start ()

Thread 11 (process 29186 thread 0x6b03):
#0  0x963c45c6 in mach_wait_until ()
#1  0x959ccd6b in MPDelayUntil ()
#2  0x005c396f in wxThread::Sleep () at amule.cpp:2264
#3  0x0012b766 in UploadBandwidthThrottler::Entry (this=0x171cfb30) at UploadBandwidthThrottler.cpp:324
#4  0x005c4bad in wxThreadInternal::MacThreadStart () at amule.cpp:2264
#5  0x959b455b in PrivateMPEntryPoint ()
#6  0x963f56f5 in _pthread_start ()
#7  0x963f55b2 in thread_start ()

Thread 8 (process 29186 thread 0x4a03):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 7 (process 29186 thread 0x4903):
#0  0x963fc1de in select$DARWIN_EXTSN$NOCANCEL ()
#1  0x9644a651 in select ()
#2  0x154c2df5 in RunMiniServer ()
#3  0x017fa31c in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 5 (process 29186 thread 0x4703):
#0  0x959a6933 in UmapBCharToUChars ()
#1  0x959a62a7 in ConvertFromTextToUnicodeImplementation ()
#2  0x015e3884 in ConvertToUnicodeHook ()
#3  0x959b4146 in TECConvertTextInternal ()
#4  0x959b3e80 in TECConvertText ()
#5  0x005926cf in wxMBConv_mac::MB2WC () at amule.cpp:2264
#6  0x0058eea8 in wxMBConv::cMB2WC () at amule.cpp:2264
#7  0x0000df30 in wxMBConv::cMB2WX (this=0x1624328, psz=0x1624328 "") at strconv.h:110
#8  0x0000f660 in char2unicode (x=0x1624328 "") at StringFunctions.h:80
#9  0x001aeb24 in CLogger::AddLogLine (file=@0x1624328, line=23216936, critical=true, type=23216936, msg=@0x1624328) at UPnPCompatibility.cpp:47
#10 0x00197831 in CUPnPControlPoint::Callback (EventType=UPNP_DISCOVERY_ADVERTISEMENT_ALIVE, Event=0xb01b58b8) at UPnP.cpp:1388
#11 0x154bee95 in ssdp_handle_ctrlpt_msg ()
#12 0x154c01e4 in ssdp_event_handler_thread ()
#13 0x017fa31c in WorkerThread ()
#14 0x963f56f5 in _pthread_start ()
#15 0x963f55b2 in thread_start ()

Thread 4 (process 29186 thread 0x4603):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017fa148 in WorkerThread ()
#4  0x963f56f5 in _pthread_start ()
#5  0x963f55b2 in thread_start ()

Thread 3 (process 29186 thread 0x3403):
#0  0x963c4506 in semaphore_timedwait_signal_trap ()
#1  0x963f684f in _pthread_cond_wait ()
#2  0x9644189b in pthread_cond_timedwait ()
#3  0x017faa4f in TimerThreadWorker ()
#4  0x017fa31c in WorkerThread ()
#5  0x963f56f5 in _pthread_start ()
#6  0x963f55b2 in thread_start ()

Thread 2 (process 29186 thread 0x3203):
#0  0x964145e2 in select$DARWIN_EXTSN ()
#1  0x903c450f in __CFSocketManager ()
#2  0x963f56f5 in _pthread_start ()
#3  0x963f55b2 in thread_start ()

Thread 1 (process 29186 local thread 0x5407):
#0  0x001681a8 in __gnu_norm::_List_const_iterator<Kademlia::CContact*>::operator++ (this=0xbfffeea0) at stl_list.h:221
#1  0x0018e53c in std::__distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x0}, __last={_M_node = 0x17fc7ed4}) at stl_iterator_base_funcs.h:83
#2  0x0018e58a in std::distance<__gnu_norm::_List_const_iterator<Kademlia::CContact*> > (__first={_M_node = 0x164f41b0}, __last={_M_node = 0xbfffeea0}) at stl_iterator_base_funcs.h:118
#3  0x0018e77d in __gnu_norm::list<Kademlia::CContact*, std::allocator<Kademlia::CContact*> >::size (this=0x17fc7ed4) at stl_list.h:656
#4  0x0018e7b4 in Kademlia::CRoutingBin::GetRemaining (this=0x17fc7ed0) at RoutingBin.h:70
#5  0x0018bafd in Kademlia::CRoutingZone::OnBigTimer (this=0x17fc7ed4) at kademlia/routing/RoutingZone.cpp:486
#6  0x001572a8 in Kademlia::CKademlia::Process () at kademlia/kademlia/Kademlia.cpp:227
#7  0x00006db5 in CamuleApp::OnCoreTimer (this=0x1624810) at amule.cpp:1466
#8  0x005cc5d3 in wxEvtHandler::ProcessEventIfMatches () at amule.cpp:2264
#9  0x005cc74f in wxEventHashTable::HandleEvent () at amule.cpp:2264
#10 0x005ccb1f in wxEvtHandler::ProcessEvent () at amule.cpp:2264
#11 0x005ccba6 in wxEvtHandler::ProcessPendingEvents () at amule.cpp:2264
#12 0x00540209 in wxAppConsole::ProcessPendingEvents () at amule.cpp:2264
#13 0x005c5412 in wxMacProcessNotifierAndPendingEvents () at amule.cpp:2264
#14 0x0041c604 in wxApp::MacHandleOneEvent () at amule.cpp:2264
#15 0x0041c69f in wxApp::MacDoOneEvent () at amule.cpp:2264
#16 0x00435ee3 in wxEventLoop::Dispatch () at amule.cpp:2264
#17 0x004c01df in wxEventLoopManual::Run () at amule.cpp:2264
#18 0x0049e3d3 in wxAppBase::MainLoop () at amule.cpp:2264
#19 0x005776ba in wxEntry () at amule.cpp:2264
#20 0x001aec78 in main (argc=1, argv=0xbfffeea0) at amule-gui.cpp:95
(gdb)
Title: Re: Amule SVN (June 18th) crashes on Leopard
Post by: Kry on June 20, 2008, 07:07:20 PM
Very interesting.