aMule Forum

English => Backtraces => Topic started by: Brezhonneg on April 23, 2008, 11:56:45 AM

Title: crash while only running Kad (SVN 20 April)
Post by: Brezhonneg on April 23, 2008, 11:56:45 AM
I was not doing anything with amule when it crashed. ED2K was disabled, so only KAD was running. Linux, Kubuntu 7.10, 64bits:

Code: [Select]
/usr/include/c++/4.1.3/debug/safe_iterator.h:210:error: attempt to
    increment a past-the-end iterator.

Objects involved in the operation:
iterator "this" @ 0x0x7fff6ae20c10 {
type = N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKN8Kademlia8CUInt128EP6SourceEEN15__gnu_debug_def3mapIS4_S7_St4lessIS4_ESaIS8_EEEEE (mutable iterator);
  state = past-the-end;
  references sequence with type `N15__gnu_debug_def3mapIN8Kademlia8CUInt128EP6SourceSt4lessIS2_ESaISt4pairIKS2_S4_EEEE' @ 0x0x7fff6ae20c10
}

Program received signal SIGABRT, Aborted.
[Switching to Thread 47958815910192 (LWP 15816)]
0x00002b9e42536765 in raise () from /lib/libc.so.6

bt
Code: [Select]
#0  0x00002b9e42536765 in raise () from /lib/libc.so.6
#1  0x00002b9e425381c0 in abort () from /lib/libc.so.6
#2  0x00002b9e41dc9077 in __gnu_debug::_Error_formatter::_M_error () from /usr/lib/libstdc++.so.6
#3  0x00000000005e3b3e in __gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<Kademlia::CUInt128 const, Source*> >, __gnu_debug_def::map<Kademlia::CUInt128, Source*, std::less<Kademlia::CUInt128>, std::allocator<std::pair<Kademlia::CUInt128 const, Source*> > > >::operator++ (this=0x7fff6ae20c10) at /usr/include/c++/4.1.3/debug/safe_iterator.h:208
#4  0x00000000005d5bf9 in Kademlia::CIndexed::SendValidKeywordResult (this=0x18638f0, keyID=@0x7fff6ae20f30, pSearchTerms=0x3282b50, ip=1326659771, port=1756, oldClient=false, kad2=true,
    startPosition=0) at kademlia/kademlia/Indexed.cpp:873
#5  0x00000000005ee2b3 in Kademlia::CKademliaUDPListener::Process2SearchKeyRequest (this=0x18637c0, packetData=0x7fff6ae21e32 "�\005\a��~A�\206>�\217\237�k3", lenPacket=29, ip=1326659771,
    port=1756) at kademlia/net/KademliaUDPListener.cpp:954
#6  0x00000000005f4b77 in Kademlia::CKademliaUDPListener::ProcessPacket (this=0x18637c0, data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:235
#7  0x00000000005bac36 in Kademlia::CKademlia::ProcessPacket (data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/kademlia/Kademlia.cpp:247
#8  0x00000000004b8027 in CClientUDPSocket::OnPacketReceived (this=0x13cf250, ip=3141014351, port=1756, buffer=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", length=31)
    at ClientUDPSocket.cpp:90
#9  0x000000000054dfbd in CMuleUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at MuleUDPSocket.cpp:179
#10 0x00000000004b876d in CClientUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at ClientUDPSocket.cpp:66
#11 0x0000000000451eb2 in CamuleApp::UDPSocketHandler (this=0xefe8c0, event=@0x3c78030) at amule.cpp:2111
#12 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#13 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#14 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#15 0x00002b9e416d5e3c in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x00002b9e4163e38e in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x00002b9e40fdcabd in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#19 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#21 0x00002b9e40fdcd63 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#22 0x00002b9e40f33c0f in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#23 0x00002b9e43d96fd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00002b9e43d9a2dd in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00002b9e43d9a5ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0x00002b9e44395883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00002b9e40f4b50d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#28 0x00002b9e40fdcc8b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#29 0x00002b9e4167480c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#30 0x0000000000626834 in main (argc=1, argv=0x7fff6ae26468) at amule-gui.cpp:92

bt full
Code: [Select]
#0  0x00002b9e42536765 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002b9e425381c0 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00002b9e41dc9077 in __gnu_debug::_Error_formatter::_M_error () from /usr/lib/libstdc++.so.6
No symbol table info available.
#3  0x00000000005e3b3e in __gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<Kademlia::CUInt128 const, Source*> >, __gnu_debug_def::map<Kademlia::CUInt128, Source*, std::less<Kademlia::CUInt128>, std::allocator<std::pair<Kademlia::CUInt128 const, Source*> > > >::operator++ (this=0x7fff6ae20c10) at /usr/include/c++/4.1.3/debug/safe_iterator.h:208
No locals.
#4  0x00000000005d5bf9 in Kademlia::CIndexed::SendValidKeywordResult (this=0x18638f0, keyID=@0x7fff6ae20f30, pSearchTerms=0x3282b50, ip=1326659771, port=1756, oldClient=false, kad2=true,
    startPosition=0) at kademlia/kademlia/Indexed.cpp:873
        itSource = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x1a65b20, _M_version = 1, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 0x1a65af8}}
        packetdata = {<CFileDataIO> = {_vptr.CFileDataIO = 0x8eee30}, m_growthRate = 51200, m_position = 34, m_BufferSize = 51200, m_fileSize = 7278, m_delete = true, m_readonly = false,
  m_buffer = 0x419b1f0 "��\a�-e{ROp:μ\177�d�\005\a��~A�\206>�\217\237�k32"}
        maxResults = 300
        count = 300
        currKeyHash = (KeyHash *) 0x1a65ae0
        itKeyHash = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x1863938, _M_version = 1, _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 0x1a28e70}}
#5  0x00000000005ee2b3 in Kademlia::CKademliaUDPListener::Process2SearchKeyRequest (this=0x18637c0, packetData=0x7fff6ae21e32 "�\005\a��~A�\206>�\217\237�k3", lenPacket=29, ip=1326659771,
    port=1756) at kademlia/net/KademliaUDPListener.cpp:954
        bio = {<CFileDataIO> = {_vptr.CFileDataIO = 0x8eee30}, m_growthRate = 0, m_position = 29, m_BufferSize = 29, m_fileSize = 29, m_delete = false, m_readonly = true,
  m_buffer = 0x7fff6ae21e32 "�\005\a��~A�\206>�\217\237�k3"}
        target = {m_data = {3322349020, 3712057086, 2413248134, 862703519}}
        startPosition = 0
        restrictive = true
        pSearchTerms = (SSearchTerm *) 0x3282b50
#6  0x00000000005f4b77 in Kademlia::CKademliaUDPListener::ProcessPacket (this=0x18637c0, data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:235
        curCon = true
        opcode = 51 '3'
        packetData = (const uint8_t *) 0x7fff6ae21e32 "�\005\a��~A�\206>�\217\237�k3"
        lenPacket = 29
#7  0x00000000005bac36 in Kademlia::CKademlia::ProcessPacket (data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/kademlia/Kademlia.cpp:247
No locals.
#8  0x00000000004b8027 in CClientUDPSocket::OnPacketReceived (this=0x13cf250, ip=3141014351, port=1756, buffer=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", length=31)
    at ClientUDPSocket.cpp:90
        protocol = 228 '�'
        opcode = 51 '3'
#9  0x000000000054dfbd in CMuleUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at MuleUDPSocket.cpp:179
        buffer = "�3�\005\a��~A�\206>�\217\237�k3\000\200\002\005\000Audio\001\000\003\026�\224\217�\a\002\001\000\001L\000[��\234�\213��\230\201�\231\224]2008.��\220-�\215�.jumper.(�\225\234�\236���\234리TS��\204��\204)_�\230\200�\213\210��\200�\217\234�\213�.avi\003\001\000\002�\030�/\t\001\000\025\001\002\001\000\003\005\000Video\b\001\000�\234\023\b\001\000��\004\002\001---Type <return> to continue, or q <return> to quit---
\000�\004\000fmp4nt / Big Log\b\001\000�,\001\t\001\000�\200 Breaky Hear"...
        addr = <incomplete type>
        length = 31
        error = false
        lastError = 7
        ip = 3141014351
        port = 1756
#10 0x00000000004b876d in CClientUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at ClientUDPSocket.cpp:66
No locals.
#11 0x0000000000451eb2 in CamuleApp::UDPSocketHandler (this=0xefe8c0, event=@0x3c78030) at amule.cpp:2111
        socket = (class CMuleUDPSocket *) 0x13cf250
#12 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#13 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#14 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#15 0x00002b9e416d5e3c in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#16 0x00002b9e4163e38e in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#17 0x00002b9e40fdcabd in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#18 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#19 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#20 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#21 0x00002b9e40fdcd63 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#22 0x00002b9e40f33c0f in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#23 0x00002b9e43d96fd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0x00002b9e43d9a2dd in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0x00002b9e43d9a5ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0x00002b9e44395883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#27 0x00002b9e40f4b50d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#28 0x00002b9e40fdcc8b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#29 0x00002b9e4167480c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#30 0x0000000000626834 in main (argc=1, argv=0x7fff6ae26468) at amule-gui.cpp:92
No locals.

thread apply all bt
Code: [Select]
Thread 4 (Thread 1098918224 (LWP 15827)):
#0  0x00002b9e3fea9997 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00002b9e416d3039 in wxConditionInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x00002b9e416d396e in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#3  0x000000000073f25a in CTimerThread::Entry (this=0xf452f0) at Timer.cpp:64
#4  0x00002b9e416d3f3a in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x00002b9e3fea5317 in start_thread () from /lib/libpthread.so.0
#6  0x00002b9e425d8d5d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 1082132816 (LWP 15825)):
#0  0x00002b9e3feac7b1 in ?? () from /lib/libpthread.so.0
#1  0x00002b9e416d92fc in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#2  0x000000000059db45 in UploadBandwidthThrottler::Entry (this=0x1820a50) at UploadBandwidthThrottler.cpp:324
#3  0x00002b9e416d3f3a in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#4  0x00002b9e3fea5317 in start_thread () from /lib/libpthread.so.0
#5  0x00002b9e425d8d5d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 47958815910192 (LWP 15816)):
#0  0x00002b9e42536765 in raise () from /lib/libc.so.6
#1  0x00002b9e425381c0 in abort () from /lib/libc.so.6
#2  0x00002b9e41dc9077 in __gnu_debug::_Error_formatter::_M_error () from /usr/lib/libstdc++.so.6
#3  0x00000000005e3b3e in __gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<Kademlia::CUInt128 const, Source*> >, __gnu_debug_def::map<Kademlia::CUInt128, Source*, std::less<Kademlia::CUInt128>, std::allocator<std::pair<Kademlia::CUInt128 const, Source*> > > >::operator++ (this=0x7fff6ae20c10) at /usr/include/c++/4.1.3/debug/safe_iterator.h:208
#4  0x00000000005d5bf9 in Kademlia::CIndexed::SendValidKeywordResult (this=0x18638f0, keyID=@0x7fff6ae20f30, pSearchTerms=0x3282b50, ip=1326659771, port=1756, oldClient=false, kad2=true,
    startPosition=0) at kademlia/kademlia/Indexed.cpp:873
#5  0x00000000005ee2b3 in Kademlia::CKademliaUDPListener::Process2SearchKeyRequest (this=0x18637c0, packetData=0x7fff6ae21e32 "�\005\a��~A�\206>�\217\237�k3", lenPacket=29, ip=1326659771,
    port=1756) at kademlia/net/KademliaUDPListener.cpp:954
#6  0x00000000005f4b77 in Kademlia::CKademliaUDPListener::ProcessPacket (this=0x18637c0, data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:235
#7  0x00000000005bac36 in Kademlia::CKademlia::ProcessPacket (data=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", lenData=31, ip=1326659771, port=1756)
    at kademlia/kademlia/Kademlia.cpp:247
#8  0x00000000004b8027 in CClientUDPSocket::OnPacketReceived (this=0x13cf250, ip=3141014351, port=1756, buffer=0x7fff6ae21e30 "�3�\005\a��~A�\206>�\217\237�k3", length=31)
    at ClientUDPSocket.cpp:90
#9  0x000000000054dfbd in CMuleUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at MuleUDPSocket.cpp:179
#10 0x00000000004b876d in CClientUDPSocket::OnReceive (this=0x13cf250, errorCode=0) at ClientUDPSocket.cpp:66
#11 0x0000000000451eb2 in CamuleApp::UDPSocketHandler (this=0xefe8c0, event=@0x3c78030) at amule.cpp:2111
#12 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#13 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#14 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#15 0x00002b9e416d5e3c in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x00002b9e4163e38e in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x00002b9e40fdcabd in wxAppBase::OnIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0x00002b9e416d566f in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#19 0x00002b9e416d580f in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x00002b9e416d5959 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#21 0x00002b9e40fdcd63 in wxAppBase::ProcessIdle () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#22 0x00002b9e40f33c0f in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#23 0x00002b9e43d96fd3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00002b9e43d9a2dd in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00002b9e43d9a5ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#26 0x00002b9e44395883 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00002b9e40f4b50d in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#28 0x00002b9e40fdcc8b in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#29 0x00002b9e4167480c in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#30 0x0000000000626834 in main (argc=1, argv=0x7fff6ae26468) at amule-gui.cpp:92
Title: Re: crash while only running Kad (SVN 20 April)
Post by: Brezhonneg on April 23, 2008, 11:59:40 AM
I also noted this earlier in the gdb log, but it's probably not related because I did some file researches between this and the crash and everything was fine:

Code: [Select]
(amule:15816): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed

(amule:15816): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed
Title: Re: crash while only running Kad (SVN 20 April)
Post by: GonoszTopi on April 23, 2008, 05:00:13 PM
Fixed.