Kry this one is after your memleak fix.
[Debug] 01:23:08 AM: UDPSocket.cpp(373): assert "!cur_server" failed.
You have new mail in /var/spool/mail/mroberto
[1]+ Trace/breakpoint trap (core dumped) LD_LIBRARY_PATH=/usr/local/wxWidgets-cvsu/lib/ verb-cvsu/src/amule
(gdb) bt
#0 0x002d87a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x00c611a5 in raise () from /lib/tls/libpthread.so.0
#2 0x00cefbb1 in wxTrap () at src/common/appbase.cpp:571
#3 0x004be880 in wxGUIAppTraitsBase::ShowAssertDialog (this=0x8a04f70, msg=@0xfeebc490) at src/common/appcmn.cpp:543
#4 0x00ceffc0 in ShowAssertDialog (szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0, traits=0x8a04f70)
at src/common/appbase.cpp:737
#5 0x00cef943 in wxAppConsole::OnAssert (this=0x89c20f8, file=0x836a924, line=373, cond=0x836a8f4, msg=0x0)
at src/common/appbase.cpp:440
#6 0x0041ab6b in wxApp::OnAssert (this=0x89c20f8, file=0x836a924, line=373, cond=0x836a8f4, msg=0x0)
at src/gtk/app.cpp:675
#7 0x00cefc68 in wxOnAssert (szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0) at src/common/appbase.cpp:617
#8 0x00cefbe4 in wxAssert (cond=0, szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0)
at src/common/appbase.cpp:584
#9 0x082a2d69 in CUDPSocket::SendPacket (this=0x8b17020, packet=0xac512f0, host=0x949fac0) at UDPSocket.cpp:373
#10 0x0828b20d in CServerConnect::SendUDPPacket (this=0x8a4d728, packet=0xac512f0, host=0x949fac0, delpacket=true)
at sockets.cpp:279
#11 0x0826b90a in CServerList::ServerStats (this=0x8b16eb8) at ServerList.cpp:267
#12 0x081934a0 in CDownloadQueue::Process (this=0x8b18068) at DownloadQueue.cpp:392
#13 0x082ba7df in CamuleApp::OnCoreTimer (this=0x89c20f8) at amule.cpp:1377
#14 0x00cef644 in wxAppConsole::HandleEvent (this=0x89c20f8, handler=0x89c20f8, func=
{__pfn = 0x82ba77e , __delta = 0}, event=@0xfeebc8d0)
at src/common/appbase.cpp:307
#15 0x00d966a1 in wxEvtHandler::ProcessEventIfMatches (entry=@0x85dba78, handler=0x89c20f8, event=@0xfeebc8d0)
at src/common/event.cpp:1169
#16 0x00d9562e in wxEventHashTable::HandleEvent (this=0x85db9e0, event=@0xfeebc8d0, self=0x89c20f8)
at src/common/event.cpp:837
#17 0x00d968b4 in wxEvtHandler::ProcessEvent (this=0x89c20f8, event=@0xfeebc8d0) at src/common/event.cpp:1231
#18 0x005455a5 in wxTimerBase::Notify (this=0x8a2ec80) at src/common/timercmn.cpp:61
#19 0x00440893 in timeout_callback (data=0x8a2ec80) at src/gtk/timer.cpp:47
#20 0x006f1c5c in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#21 0x006ef1e2 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#22 0x006f02d8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0x006f0610 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x006f0c53 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#25 0x06e89ff3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00436232 in wxEventLoop::Run (this=0x9615620) at src/gtk/evtloop.cpp:80
#27 0x004be109 in wxAppBase::MainLoop (this=0x89c20f8) at src/common/appcmn.cpp:272
#28 0x004be275 in wxAppBase::OnRun (this=0x89c20f8) at src/common/appcmn.cpp:340
#29 0x00d330c1 in wxEntry (argc=@0xfeebcbd0, argv=0x899c678) at src/common/init.cpp:410
#30 0x00d331c7 in wxEntry (argc=@0xfeebcbd0, argv=0xfeebcc54) at src/common/init.cpp:459
#31 0x082bd5f5 in main (argc=1, argv=0xfeebcc54) at amule-gui.cpp:165
(gdb) bt full
#0 0x002d87a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1 0x00c611a5 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2 0x00cefbb1 in wxTrap () at src/common/appbase.cpp:571
No locals.
#3 0x004be880 in wxGUIAppTraitsBase::ShowAssertDialog (this=0x8a04f70, msg=@0xfeebc490) at src/common/appcmn.cpp:543
msgDlg = { = {static npos = 4294967195, m_pchData = 0xb0585e4}, }
#4 0x00ceffc0 in ShowAssertDialog (szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0, traits=0x8a04f70)
at src/common/appbase.cpp:737
s_bNoAsserts = false
msg = { = {static npos = 4294967195, m_pchData = 0xb058504}, }
#5 0x00cef943 in wxAppConsole::OnAssert (this=0x89c20f8, file=0x836a924, line=373, cond=0x836a8f4, msg=0x0)
at src/common/appbase.cpp:440
No locals.
#6 0x0041ab6b in wxApp::OnAssert (this=0x89c20f8, file=0x836a924, line=373, cond=0x836a8f4, msg=0x0)
at src/gtk/app.cpp:675
No locals.
#7 0x00cefc68 in wxOnAssert (szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0) at src/common/appbase.cpp:617
s_bInAssert = true
#8 0x00cefbe4 in wxAssert (cond=0, szFile=0x836a924, nLine=373, szCond=0x836a8f4, szMsg=0x0)
at src/common/appbase.cpp:584
No locals.
#9 0x082a2d69 in CUDPSocket::SendPacket (this=0x8b17020, packet=0xac512f0, host=0x949fac0) at UDPSocket.cpp:373
No locals.
#10 0x0828b20d in CServerConnect::SendUDPPacket (this=0x8a4d728, packet=0xac512f0, host=0x949fac0, delpacket=true)
at sockets.cpp:279
No locals.
#11 0x0826b90a in CServerList::ServerStats (this=0x8b16eb8) at ServerList.cpp:267
randomness = 33315
uDescReqChallenge = 2183393535
ping_server = (CServer *) 0x949fac0
test = (CServer *) 0x949fac0
packet = (Packet *) 0xac512f0
time = 1437256112
temp = 1100661788
#12 0x081934a0 in CDownloadQueue::Process (this=0x8b18068) at DownloadQueue.cpp:392
downspeed = 183
#13 0x082ba7df in CamuleApp::OnCoreTimer (this=0x89c20f8) at amule.cpp:1377
msPrev1 = 1554676
msPrev5 = 1554676
msPrevSave = 1501103
msCur = 1555296
#14 0x00cef644 in wxAppConsole::HandleEvent (this=0x89c20f8, handler=0x89c20f8, func=
{__pfn = 0x82ba77e , __delta = 0}, event=@0xfeebc8d0)
at src/common/appbase.cpp:307
No locals.
#15 0x00d966a1 in wxEvtHandler::ProcessEventIfMatches (entry=@0x85dba78, handler=0x89c20f8, event=@0xfeebc8d0)
at src/common/event.cpp:1169
tableId1 = 6128
tableId2 = -1
#16 0x00d9562e in wxEventHashTable::HandleEvent (this=0x85db9e0, event=@0xfeebc8d0, self=0x89c20f8)
at src/common/event.cpp:837
n = 2
eventEntryTable = (const wxEventTableEntryPointerArray &) @0x91b4a2c: { = {m_nSize = 3,
m_nCount = 3, m_pItems = 0x91b0fd8}, }
count = 3
eventType = 10084
eTTnode = (wxEventHashTable::EventTypeTable * const) 0x91b4a28
#17 0x00d968b4 in wxEvtHandler::ProcessEvent (this=0x89c20f8, event=@0xfeebc8d0) at src/common/event.cpp:1231
No locals.
#18 0x005455a5 in wxTimerBase::Notify (this=0x8a2ec80) at src/common/timercmn.cpp:61
event = { = { = {_vptr.wxObject = 0x83eec48, static ms_classInfo = {m_className = 0xdc3a90,
m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x83f02d0,
m_next = 0xe22928, static sm_classTable = 0x899b008}, m_refData = 0x0}, m_eventObject = 0x8a2ec80,
m_eventType = 10084, m_timeStamp = 0, m_id = 6128, m_callbackUserData = 0x0, m_propagationLevel = 0,
m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {m_className = 0xdd3ae0, m_objectSize = 36,
m_objectConstructor = 0, m_baseInfo1 = 0xe228ec, m_baseInfo2 = 0x0, static sm_first = 0x83f02d0,
m_next = 0xe22dd4, static sm_classTable = 0x899b008}}, m_interval = 100, static ms_classInfo = {
m_className = 0x5c2394, m_objectSize = 40, m_objectConstructor = 0x5453ac ,
m_baseInfo1 = 0xe22dec, m_baseInfo2 = 0x0, static sm_first = 0x83f02d0, m_next = 0x65cd28,
static sm_classTable = 0x899b008}}
#19 0x00440893 in timeout_callback (data=0x8a2ec80) at src/gtk/timer.cpp:47
timer = (wxTimer *) 0x8a2ec80
#20 0x006f1c5c in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0x006ef1e2 in g_main_depth () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#22 0x006f02d8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0x006f0610 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0x006f0c53 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0x06e89ff3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#26 0x00436232 in wxEventLoop::Run (this=0x9615620) at src/gtk/evtloop.cpp:80
oldLoop = (wxEventLoop *) 0x0
exitcode = 4975154
#27 0x004be109 in wxAppBase::MainLoop (this=0x89c20f8) at src/common/appcmn.cpp:272
mainLoop = { = {m_ptr = 0x9615620}, m_pp = 0x89c2138, m_pOld = 0x0}
#28 0x004be275 in wxAppBase::OnRun (this=0x89c20f8) at src/common/appcmn.cpp:340
No locals.
#29 0x00d330c1 in wxEntry (argc=@0xfeebcbd0, argv=0x899c678) at src/common/init.cpp:410
callOnExit = {}
cleanupOnExit = {}
#30 0x00d331c7 in wxEntry (argc=@0xfeebcbd0, argv=0xfeebcc54) at src/common/init.cpp:459
No locals.
#31 0x082bd5f5 in main (argc=1, argv=0xfeebcc54) at amule-gui.cpp:165
No locals.
(gdb) frame 9
#9 0x082a2d69 in CUDPSocket::SendPacket (this=0x8b17020, packet=0xac512f0, host=0x949fac0) at UDPSocket.cpp:373
373 wxASSERT(!cur_server);
(gdb) p cur_server
$1 = (CServer *) 0xb0021c0
(gdb) l
368 sendbuffer = 0;
369 }
370 }
371
372 void CUDPSocket::SendPacket(Packet* packet,CServer* host){
373 wxASSERT(!cur_server);
374 cur_server = new CServer(host);
375 sendbuffer = new char[packet->GetPacketSize()+2];
376 memcpy(sendbuffer,packet->GetUDPHeader(),2);
377 memcpy(sendbuffer+2,packet->GetDataBuffer(),packet->GetPacketSize());