aMule Bug Tracker - aMule
View Issue Details
0000813aMuleExternal Connpublic2006-02-05 02:522008-02-18 19:06
spiorf 
Xaignar 
normalmajoralways
resolvedfixed 
2.1.0 
SVN 
0000813: nmap scan crashed amule
nmap -sS -p1-65535 -T5 -sV --version-all -vv -A -O --osscan-guess 127.0.0.1

this scan crashed amule, i checked twice.
on amule's log some "new external connection accepted" appeared, and then crashed.

[02:50:38] spiorf@clistere:~$ gdb amule
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread -1224599008 (LWP 13608)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Testing skins
[New Thread -1230357584 (LWP 13614)]
Loading temp files from /mnt/5/temp.amule.
Loading PartFile 20 of 20
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /mnt/5/temp.amule/083.part.met to shares
Adding file /mnt/5/temp.amule/080.part.met to shares
Adding file /mnt/5/temp.amule/079.part.met to shares
Adding file /mnt/5/temp.amule/078.part.met to shares
Adding file /mnt/5/temp.amule/005.part.met to shares
Adding file /mnt/5/temp.amule/003.part.met to shares
Empty dir /mnt/5/Incoming/serie shared
Empty dir /mnt/5/Incoming/serie/ shared
[New Thread -1238746192 (LWP 13615)]
[Thread -1238746192 (zombie) exited]
[New Thread -1238746192 (LWP 13618)]

Terminated after throwing an instance of 'std::bad_alloc'
        what(): St9bad_alloc
        backtrace:
[2] ?? in /usr/lib/libstdc++.so.6 [0xb7944765]
[3] ?? in /usr/lib/libstdc++.so.6 [0xb79447a2]
[4] ?? in /usr/lib/libstdc++.so.6 [0xb794490a]
[5] operator new(unsigned int) in /usr/lib/libstdc++.so.6[0xb7944d51]
[6] operator new[](unsigned int) in /usr/lib/libstdc++.so.6[0xb7944e1d]
[7] CQueuedData in ECSocket.h:50
[8] CECSocket::OnInput() in ECSocket.cpp:404
[9] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb79aee4a]
[10] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3c8ff]
[11] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3cbe8]
[12] wxEvtHandler::ProcessEvent(wxEvent&) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3d824]
[13] wxEvtHandler::ProcessPendingEvents() in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3d630]
[14] wxAppConsole::ProcessPendingEvents() in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb79aedc6]
[15] wxAppBase::OnIdle(wxIdleEvent&) in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0[0xb7c4ea80]
[16] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb79aee4a]
[17] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3c8ff]
[18] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3cbe8]
[19] wxEvtHandler::ProcessEvent(wxEvent&) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb7a3d824]
[20] wxAppBase::ProcessIdle() in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0[0xb7c4e93c]
[21] ?? in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0 [0xb7bb12ae]
[22] ?? in /usr/lib/libglib-2.0.so.0 [0xb71600f1]
[23] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0xb715db8c]
[24] ?? in /usr/lib/libglib-2.0.so.0 [0xb7160f6b]
[25] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0xb71612c7]
[26] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0xb755f3a1]
[27] wxEventLoop::Run() in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0[0xb7bcb195]
[28] wxAppBase::MainLoop() in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0[0xb7c4e5e9]
[29] wxAppBase::OnRun() in /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0[0xb7c4e763]
[30] wxEntry(int&, wchar_t**) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb79e4150]
[31] wxEntry(int&, char**) in /mnt/1/amule/lib/libwx_baseu-2.6.so.0[0xb79e423e]
[32] main in amule-gui.cpp:145
[33] __libc_start_main in /lib/tls/libc.so.6[0xb7740ed0]
[34] __gxx_personality_v0 in start.S:122


Program received signal SIGABRT, Aborted.
[Switching to Thread -1224599008 (LWP 13608)]
0xb7ef6508 in raise () from /lib/tls/libpthread.so.0
(gdb) bt
#0 0xb7ef6508 in raise () from /lib/tls/libpthread.so.0
0000001 0x08267efc in OnUnhandledException () at MuleDebug.cpp:86
0000002 0xb7944765 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
0000003 0xb79447a2 in std::terminate () from /usr/lib/libstdc++.so.6
0000004 0xb794490a in __cxa_throw () from /usr/lib/libstdc++.so.6
0000005 0xb7944d51 in operator new () from /usr/lib/libstdc++.so.6
0000006 0xb7944e1d in operator new[] () from /usr/lib/libstdc++.so.6
0000007 0x0826f3d4 in CQueuedData (this=0x9673250, len=1330533152) at ECSocket.h:50
0000008 0x0826ebeb in CECSocket::OnInput (this=0x96730b0) at ECSocket.cpp:404
0000009 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000010 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
#11 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000012 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000013 0xb7a3d630 in wxEvtHandler::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000014 0xb79aedc6 in wxAppConsole::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000015 0xb7c4ea80 in wxAppBase::OnIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000016 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000017 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000018 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000019 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000020 0xb7c4e93c in wxAppBase::ProcessIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000021 0xb7bb12ae in wxapp_idle_callback () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000022 0xb71600f1 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
0000023 0xb715db8c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000024 0xb7160f6b in g_main_context_check () from /usr/lib/libglib-2.0.so.0
0000025 0xb71612c7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
0000026 0xb755f3a1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
0000027 0xb7bcb195 in wxEventLoop::Run () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000028 0xb7c4e5e9 in wxAppBase::MainLoop () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000029 0xb7c4e763 in wxAppBase::OnRun () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000030 0xb79e4150 in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000031 0xb79e423e in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000032 0x081785f9 in main (argc=1, argv=0xbff2e7f4) at amule-gui.cpp:145
(gdb) bt full
#0 0xb7ef6508 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
0000001 0x08267efc in OnUnhandledException () at MuleDebug.cpp:86
        t = (struct std::type_info *) 0x0
0000002 0xb7944765 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
No symbol table info available.
0000003 0xb79447a2 in std::terminate () from /usr/lib/libstdc++.so.6
No symbol table info available.
0000004 0xb794490a in __cxa_throw () from /usr/lib/libstdc++.so.6
No symbol table info available.
0000005 0xb7944d51 in operator new () from /usr/lib/libstdc++.so.6
No symbol table info available.
0000006 0xb7944e1d in operator new[] () from /usr/lib/libstdc++.so.6
No symbol table info available.
0000007 0x0826f3d4 in CQueuedData (this=0x9673250, len=1330533152) at ECSocket.h:50
No locals.
0000008 0x0826ebeb in CECSocket::OnInput (this=0x96730b0) at ECSocket.cpp:404
        bytes_rx = 0
0000009 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000010 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#11 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000012 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000013 0xb7a3d630 in wxEvtHandler::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000014 0xb79aedc6 in wxAppConsole::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000015 0xb7c4ea80 in wxAppBase::OnIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
0000016 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000017 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000018 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000019 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000020 0xb7c4e93c in wxAppBase::ProcessIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
0000021 0xb7bb12ae in wxapp_idle_callback () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
0000022 0xb71600f1 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
0000023 0xb715db8c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
0000024 0xb7160f6b in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
0000025 0xb71612c7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
0000026 0xb755f3a1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
0000027 0xb7bcb195 in wxEventLoop::Run () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
0000028 0xb7c4e5e9 in wxAppBase::MainLoop () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
0000029 0xb7c4e763 in wxAppBase::OnRun () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
0000030 0xb79e4150 in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000031 0xb79e423e in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
No symbol table info available.
0000032 0x081785f9 in main (argc=1, argv=0xbff2e7f4) at amule-gui.cpp:145
No locals.
(gdb) thread apply all bt

Thread 4 (Thread -1238746192 (LWP 13618)):
#0 0xb7ef2de2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
0000001 0xb7a395a6 in wxConditionInternal::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000002 0xb7a3960f in wxCondition::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000003 0xb7a39a8f in wxSemaphoreInternal::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000004 0xb7a3bfbf in wxSemaphore::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000005 0x08226242 in CTimerThread::Entry (this=0x95d0f58) at Timer.cpp:66
0000006 0xb7a3b00f in wxThreadInternal::PthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000007 0xb7a3b08c in wxPthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000008 0xb7ef0ced in start_thread () from /lib/tls/libpthread.so.0
0000009 0xb77fd26e in clone () from /lib/tls/libc.so.6

Thread 3 (Thread -1238746192 (LWP 13618)):
#0 0xb7ef2de2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
0000001 0xb7a395a6 in wxConditionInternal::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000002 0xb7a3960f in wxCondition::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000003 0xb7a39a8f in wxSemaphoreInternal::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000004 0xb7a3bfbf in wxSemaphore::WaitTimeout () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000005 0x08226242 in CTimerThread::Entry (this=0x95d0f58) at Timer.cpp:66
0000006 0xb7a3b00f in wxThreadInternal::PthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000007 0xb7a3b08c in wxPthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000008 0xb7ef0ced in start_thread () from /lib/tls/libpthread.so.0
0000009 0xb77fd26e in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1230357584 (LWP 13614)):
#0 0xb7ef5b3c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
0000001 0xb7a40526 in wxMicroSleep () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000002 0xb7a40558 in wxMilliSleep () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000003 0xb7a3a18c in wxThread::Sleep () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000004 0x0813b311 in UploadBandwidthThrottler::Entry (this=0x9531280) at UploadBandwidthThrottler.cpp:354
0000005 0xb7a3b00f in wxThreadInternal::PthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000006 0xb7a3b08c in wxPthreadStart () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000007 0xb7ef0ced in start_thread () from /lib/tls/libpthread.so.0
0000008 0xb77fd26e in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1224599008 (LWP 13608)):
#0 0xb7ef6508 in raise () from /lib/tls/libpthread.so.0
0000001 0x08267efc in OnUnhandledException () at MuleDebug.cpp:86
0000002 0xb7944765 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
0000003 0xb79447a2 in std::terminate () from /usr/lib/libstdc++.so.6
0000004 0xb794490a in __cxa_throw () from /usr/lib/libstdc++.so.6
---Type <return> to continue, or q <return> to quit---
0000005 0xb7944d51 in operator new () from /usr/lib/libstdc++.so.6
0000006 0xb7944e1d in operator new[] () from /usr/lib/libstdc++.so.6
0000007 0x0826f3d4 in CQueuedData (this=0x9673250, len=1330533152) at ECSocket.h:50
0000008 0x0826ebeb in CECSocket::OnInput (this=0x96730b0) at ECSocket.cpp:404
0000009 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000010 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
#11 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000012 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000013 0xb7a3d630 in wxEvtHandler::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000014 0xb79aedc6 in wxAppConsole::ProcessPendingEvents () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000015 0xb7c4ea80 in wxAppBase::OnIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000016 0xb79aee4a in wxAppConsole::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000017 0xb7a3c8ff in wxEvtHandler::ProcessEventIfMatches () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000018 0xb7a3cbe8 in wxEventHashTable::HandleEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000019 0xb7a3d824 in wxEvtHandler::ProcessEvent () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000020 0xb7c4e93c in wxAppBase::ProcessIdle () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000021 0xb7bb12ae in wxapp_idle_callback () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000022 0xb71600f1 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
0000023 0xb715db8c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000024 0xb7160f6b in g_main_context_check () from /usr/lib/libglib-2.0.so.0
0000025 0xb71612c7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
0000026 0xb755f3a1 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
0000027 0xb7bcb195 in wxEventLoop::Run () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000028 0xb7c4e5e9 in wxAppBase::MainLoop () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000029 0xb7c4e763 in wxAppBase::OnRun () from /mnt/1/amule/lib/libwx_gtk2u_core-2.6.so.0
0000030 0xb79e4150 in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000031 0xb79e423e in wxEntry () from /mnt/1/amule/lib/libwx_baseu-2.6.so.0
0000032 0x081785f9 in main (argc=1, argv=0xbff2e7f4) at amule-gui.cpp:145
(gdb)
No tags attached.
Issue History
2006-02-05 02:52spiorfNew Issue
2006-02-05 02:55spiorfNote Added: 0001854
2006-02-05 04:42KryNote Added: 0001856
2008-02-18 19:06XaignarStatusnew => resolved
2008-02-18 19:06XaignarFixed in Version => SVN
2008-02-18 19:06XaignarResolutionopen => fixed
2008-02-18 19:06XaignarAssigned To => Xaignar
2008-02-18 19:06XaignarNote Added: 0002600

Notes
(0001854)
spiorf   
2006-02-05 02:55   
amule crashes while nmap is doing the version scan
(0001856)
Kry   
2006-02-05 04:42   
YUeah, EC doens't exactly like malformed packets.
(0002600)
Xaignar   
2008-02-18 19:06   
This has been fixed in current SVN. :)