I can debug it to check where is running all the time, the problem is that I'm completly unfamiliar with gdb and I need an help:
After I run the amuled within gdb, how I can take back the control of the shell? Now It is taken by amuled itself and I can't issue any gdb command
Well, I figured it out, this is the backtrace I got
#0 0x0f65e370 in __gnu_debug::_Safe_iterator_base::_M_detach() () from /usr/lib/libstdc++.so.6
#1 0x1002a6d0 in ~_Safe_iterator_base (this=0xbfb9429c, __in_chrg=<value optimized out>)
at /usr/include/c++/4.4/debug/safe_base.h:105
#2 0x10175d0c in ~_Safe_iterator (this=0xbfb9429c, __in_chrg=<value optimized out>)
at /usr/include/c++/4.4/debug/safe_iterator.h:64
#3 0x1034fe30 in CPartFile::IsComplete (this=0x10946b68, start=3677184000, end=3686911999) at PartFile.cpp:4026
#4 0x1033d640 in CPartFile::WritePartStatus (this=0x10946b68, file=0xbfb943c0) at PartFile.cpp:1434
#5 0x100d3260 in CUpDownClient::SendFileRequest (this=0x109f9e48) at DownloadClient.cpp:234
#6 0x1005a474 in CUpDownClient::ConnectionEstablished (this=0x109f9e48) at BaseClient.cpp:1646
#7 0x10058b7c in CUpDownClient::TryToConnect (this=0x109f9e48, bIgnoreMaxCon=false) at BaseClient.cpp:1438
#8 0x100d2bc4 in CUpDownClient::AskForDownload (this=0x109f9e48) at DownloadClient.cpp:157
#9 0x1033e054 in CPartFile::Process (this=0x10946b68, reducedownload=0, m_icounter=10 '\n') at PartFile.cpp:1568
#10 0x100ed328 in CDownloadQueue::Process (this=0x109110e8) at DownloadQueue.cpp:401
#11 0x1003e5d0 in CamuleApp::OnCoreTimer (this=0x107a9cd8) at amule.cpp:1441
#12 0x0f799e1c in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
from /usr/lib/libwx_baseu-2.8.so.0
#13 0x0f855104 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
from /usr/lib/libwx_baseu-2.8.so.0
#14 0x0f856870 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#15 0x0f856a30 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x0f855828 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x0f79a2ec in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_baseu-2.8.so.0
#18 0x10027dc8 in CamuleDaemonApp::OnRun (this=0x107a9cd8) at amuled.cpp:649
#19 0x0f7df8a8 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x0f7dfb48 in wxEntry(int&, char**) () from /usr/lib/libwx_baseu-2.8.so.0
#21 0x100253f8 in main (argc=1, argv=0xbfb94d84) at amuled.cpp:171