It seems that the 'socket' object disappears after the if statement
found that socket is != NULL. Maybe there are asynchroneous
accesses to the public class member 'socket'?!
If CVS already fixes the problem, please ignore this post.
(gdb) backtrace
#0 0x28dfadcf in kill () from /lib/libc.so.5
#1 0x28def878 in raise () from /lib/libc.so.5
#2 0x28e67f82 in abort () from /lib/libc.so.5
#3 0x287cafa5 in wxFatalSignalHandler () from /usr/X11R6/lib/libwx_gtk-2.4.so
#4 0x28404f34 in _thread_sig_handler () from /usr/lib/libc_r.so.5
#5 0x28404d9d in _thread_sig_handler () from /usr/lib/libc_r.so.5
#6
#7 0x08145682 in CEMSocket::IsConnected() (this=0x0) at EMSocket.h:51
#8 0x0814d191 in CUpDownClient::TryToConnect(bool) (this=0x13da9400,
bIgnoreMaxCon=false) at BaseClient.cpp:1203
#9 0x0816558a in CUpDownClient::AskForDownload() (this=0x13da9400)
at DownloadClient.cpp:136
#10 0x081d1439 in CPartFile::Process(unsigned, unsigned char) (this=0x9515000,
reducedownload=153, m_icounter=11 '\v') at PartFile.cpp:1815
#11 0x081721aa in CDownloadQueue::Process() (this=0x86fdc00)
at DownloadQueue.cpp:376
#12 0x08213f0c in TimerProc() () at UploadQueue.cpp:704
#13 0x286e171d in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
from /usr/X11R6/lib/libwx_gtk-2.4.so
#14 0x286e1563 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/X11R6/lib/libwx_gtk-2.4.so
#15 0x28784b0d in wxTimerBase::Notify() () from /usr/X11R6/lib/libwx_gtk-2.4.so
#16 0x286912bd in timeout_callback () from /usr/X11R6/lib/libwx_gtk-2.4.so
#17 0x28a68625 in g_timeout_dispatch () from /usr/local/lib/libglib12.so.3
#18 0x28a67627 in g_main_dispatch () from /usr/local/lib/libglib12.so.3
#19 0x28a67c1b in g_main_iterate () from /usr/local/lib/libglib12.so.3
#20 0x28a67e14 in g_main_run () from /usr/local/lib/libglib12.so.3
#21 0x2896e577 in gtk_main () from /usr/X11R6/lib/libgtk12.so.2
#22 0x2863fd99 in wxApp::MainLoop() () from /usr/X11R6/lib/libwx_gtk-2.4.so
#23 0x286a11c8 in wxAppBase::OnRun() () from /usr/X11R6/lib/libwx_gtk-2.4.so
#24 0x2864066a in wxEntry(int, char**) () from /usr/X11R6/lib/libwx_gtk-2.4.so
#25 0x082150cb in main (argc=1, argv=0xbfbfecc0) at amule.cpp:116
#26 0x0813d1d2 in _start ()