OK...
[Debug] Generating a stack trace... please waitamuled.cpp(144): assert "(fd > 2) && (fd < 1024)" failed in AddSocket().
Call stack:
[00] 0xb7ddc196
[01] wxAppConsole::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)
[02] CamuleApp::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*) /home/firebox/amule-cvs/src/amule.cpp:1377
[03] wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)
[04] CSocketSet::AddSocket(GSocket*) /home/firebox/amule-cvs/src/amuled.cpp:146
[05] CAmuledGSocketFuncTable::AddSocket(GSocket*, GSocketEvent) /home/firebox/amule-cvs/src/amuled.cpp:216
[06] CAmuledGSocketFuncTable::Install_Callback(GSocket*, GSocketEvent) /home/firebox/amule-cvs/src/amuled.cpp:288
[07] CAmuledGSocketFuncTable::Enable_Events(GSocket*) /home/firebox/amule-cvs/src/amuled.cpp:298
[08] GSocket::Connect(GSocketStream)
[09] wxSocketClient::DoConnect(wxSockAddress&, wxSockAddress*, bool)
[10] wxSocketClient::Connect(wxSockAddress&, bool)
[11] CSocketClientProxy::Connect(wxIPaddress&, bool) /home/firebox/amule-cvs/src/Proxy.cpp:1274
[12] CUpDownClient::Connect() /home/firebox/amule-cvs/src/BaseClient.cpp:1497
[13] CUpDownClient::TryToConnect(bool) /home/firebox/amule-cvs/src/BaseClient.cpp:1470
[14] CUpDownClient::AskForDownload() /home/firebox/amule-cvs/src/DownloadClient.cpp:157
[15] CPartFile::Process(unsigned int, unsigned char) /home/firebox/amule-cvs/src/PartFile.cpp:1482
[16] CDownloadQueue::Process() /home/firebox/amule-cvs/src/DownloadQueue.cpp:374
[17] CamuleApp::OnCoreTimer(CTimerEvent&) /home/firebox/amule-cvs/src/amule.cpp:1449
[18] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const
[19] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[20] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread -1213339968 (LWP 6784)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7f91590 in raise () from /lib/tls/i686/cmov/libpthread.so.0
#2 0xb7ddbf9e in wxTrap () at ./src/common/appbase.cpp:672
#3 0xb7ddbff9 in DoShowAssertDialog (msg=@0xbfdc534c)
at ./src/common/appbase.cpp:769
#4 0xb7ddc46d in wxAppTraitsBase::ShowAssertDialog (this=0x86805a8,
msgOriginal=@0xbfdc53ac) at ./src/common/appbase.cpp:555
#5 0xb7ddc4ee in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x86805a8,
msg=@0xbfdc53ac) at ./src/common/appbase.cpp:505
#6 0xb7ddc196 in ShowAssertDialog (szFile=0x83467dc, nLine=144,
szFunc=0xaf4228f4, szCond=0x8346824, szMsg=0x0, traits=0x86805a8)
at ./src/common/appbase.cpp:839
#7 0xb7ddc3bc in wxAppConsole::OnAssertFailure (this=0x8678ee0,
file=0x83467dc, line=144, func=0xaf4228f4, cond=0x8346824, msg=0x0)
at ./src/common/appbase.cpp:443
#8 0x08066175 in CamuleApp::OnAssertFailure (this=0x8678ee0, file=0x83467dc,
line=144, func=0xaf4228f4, cond=0x8346824, msg=0x0) at amule.cpp:1377
#9 0xb7ddc2b7 in wxOnAssert (szFile=0x83467dc, nLine=144,
szFunc=0x83474f5 "AddSocket", szCond=0x8346824, szMsg=0x0)
at ./src/common/appbase.cpp:712
#10 0x0805d196 in CSocketSet::AddSocket (this=0x86792f0, socket=0xac0bfb70)
at amuled.cpp:144
#11 0x0805d6c9 in CAmuledGSocketFuncTable::AddSocket (this=0x8679138,
---Type <return> to continue, or q <return> to quit---
socket=0xac0bfb70, event=GSOCK_INPUT) at amuled.cpp:216
#12 0x0805d731 in CAmuledGSocketFuncTable::Install_Callback (this=0x8679138,
sock=0xac0bfb70, e=GSOCK_INPUT) at amuled.cpp:287
#13 0x0805c6ab in CAmuledGSocketFuncTable::Enable_Events (this=0x8679138,
socket=0xac0bfb70) at amuled.cpp:297
#14 0xb7f73046 in GSocket::Connect (this=0xac0bfb70, stream=GSOCK_STREAMED)
at ./src/unix/gsocket.cpp:1013
#15 0xb7f6b63e in wxSocketClient::DoConnect (this=0xaf6f9ff0,
addr_man=@0xbfdc5648, local=0xaf6fa038, wait=false)
at ./src/common/socket.cpp:1295
#16 0xb7f6aff7 in wxSocketClient::Connect (this=0xaf6f9ff0,
addr_man=@0xbfdc5648, wait=false) at ./src/common/socket.cpp:1314
#17 0x08277975 in CSocketClientProxy::Connect (this=0xaf6f9ff0,
address=@0xbfdc5648, wait=false) at Proxy.cpp:1274
#18 0x0807996a in CUpDownClient::Connect (this=0xb1cd3998)
at BaseClient.cpp:1494
#19 0x0807f656 in CUpDownClient::TryToConnect (this=0xb1cd3998,
bIgnoreMaxCon=false) at BaseClient.cpp:1470
#20 0x080ceb1e in CUpDownClient::AskForDownload (this=0xb1cd3998)
at DownloadClient.cpp:157
#21 0x0824dc14 in CPartFile::Process (this=0x92d07c8, reducedownload=0,
m_icounter=10 '\n') at PartFile.cpp:1567
#22 0x080db0df in CDownloadQueue::Process (this=0x920ed18)
---Type <return> to continue, or q <return> to quit---
at DownloadQueue.cpp:374
#23 0x08067e76 in CamuleApp::OnCoreTimer (this=0x8678ee0) at amule.cpp:1447
#24 0xb7ddbdff in wxAppConsole::HandleEvent (this=0x8678ee0,
handler=0x8678ee0, func=
(void ( class wxEvtHandler::*)(class wxEvent &,)) 16830405,
event=@0x9c39740) at ./src/common/appbase.cpp:320
#25 0xb7e9b6d2 in wxEvtHandler::ProcessEventIfMatches (entry=@0x846d880,
handler=0x8678ee0, event=@0x9c39740) at ./src/common/event.cpp:1225
#26 0xb7e9d4ee in wxEventHashTable::HandleEvent (this=0x846d800,
event=@0x9c39740, self=0x8678ee0) at ./src/common/event.cpp:898
#27 0xb7e9d654 in wxEvtHandler::ProcessEvent (this=0x8678ee0, event=@0x9c39740)
at ./src/common/event.cpp:1287
#28 0xb7e9bfaa in wxEvtHandler::ProcessPendingEvents (this=0x8678ee0)
at ./src/common/event.cpp:1183
#29 0xb7ddcf11 in wxAppConsole::ProcessPendingEvents (this=0x8678ee0)
at ./src/common/appbase.cpp:292
#30 0x0805e251 in CamuleDaemonApp::OnRun (this=0x8678ee0) at amuled.cpp:427
#31 0xb7e24bda in wxEntry (argc=@0xb7f444cc, argv=0x86673a0)
at ./src/common/init.cpp:456
#32 0xb7e24ca5 in wxEntry (argc=@0xbfdc5c90, argv=0xbfdc5d14)
at ./src/common/init.cpp:468
#33 0x0805e2b0 in main (argc=Cannot access memory at address 0x1a80
) at amuled.cpp:101
(gdb) bt full
#0 0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7f91590 in raise () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#2 0xb7ddbf9e in wxTrap () at ./src/common/appbase.cpp:672
No locals.
#3 0xb7ddbff9 in DoShowAssertDialog (msg=@0xbfdc534c)
at ./src/common/appbase.cpp:769
No locals.
#4 0xb7ddc46d in wxAppTraitsBase::ShowAssertDialog (this=0x86805a8,
msgOriginal=@0xbfdc53ac) at ./src/common/appbase.cpp:555
msg = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0xaabf223c}, <No data fields>}
stackTrace = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0xb25f464c}, <No data fields>}
#5 0xb7ddc4ee in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x86805a8,
msg=@0xbfdc53ac) at ./src/common/appbase.cpp:505
No locals.
#6 0xb7ddc196 in ShowAssertDialog (szFile=0x83467dc, nLine=144,
szFunc=0xaf4228f4, szCond=0x8346824, szMsg=0x0, traits=0x86805a8)
at ./src/common/appbase.cpp:839
msg = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0xace90c44}, <No data fields>}
---Type <return> to continue, or q <return> to quit---
s_bNoAsserts = false
#7 0xb7ddc3bc in wxAppConsole::OnAssertFailure (this=0x8678ee0,
file=0x83467dc, line=144, func=0xaf4228f4, cond=0x8346824, msg=0x0)
at ./src/common/appbase.cpp:443
No locals.
#8 0x08066175 in CamuleApp::OnAssertFailure (this=0x8678ee0, file=0x83467dc,
line=144, func=0xaf4228f4, cond=0x8346824, msg=0x0) at amule.cpp:1377
No locals.
#9 0xb7ddc2b7 in wxOnAssert (szFile=0x83467dc, nLine=144,
szFunc=0x83474f5 "AddSocket", szCond=0x8346824, szMsg=0x0)
at ./src/common/appbase.cpp:712
strFunc = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0xaf4228f4}, <No data fields>}
s_bInAssert = true
#10 0x0805d196 in CSocketSet::AddSocket (this=0x86792f0, socket=0xac0bfb70)
at amuled.cpp:144
fd = 1024
__FUNCTION__ = "AddSocket"
#11 0x0805d6c9 in CAmuledGSocketFuncTable::AddSocket (this=0x8679138,
socket=0xac0bfb70, event=GSOCK_INPUT) at amuled.cpp:216
lock = {m_isOk = true, m_mutex = @0x8679144}
#12 0x0805d731 in CAmuledGSocketFuncTable::Install_Callback (this=0x8679138,
sock=0xac0bfb70, e=GSOCK_INPUT) at amuled.cpp:287
---Type <return> to continue, or q <return> to quit---
No locals.
#13 0x0805c6ab in CAmuledGSocketFuncTable::Enable_Events (this=0x8679138,
socket=0xac0bfb70) at amuled.cpp:297
No locals.
#14 0xb7f73046 in GSocket::Connect (this=0xac0bfb70, stream=GSOCK_STREAMED)
at ./src/unix/gsocket.cpp:1013
err = -1408500880
ret = -1
arg = 1
__PRETTY_FUNCTION__ = "GSocketError GSocket::Connect(GSocketStream)"
#15 0xb7f6b63e in wxSocketClient::DoConnect (this=0xaf6f9ff0,
addr_man=@0xbfdc5648, local=0xaf6fa038, wait=false)
at ./src/common/socket.cpp:1295
err = 3086422510
#16 0xb7f6aff7 in wxSocketClient::Connect (this=0xaf6f9ff0,
addr_man=@0xbfdc5648, wait=false) at ./src/common/socket.cpp:1314
No locals.
#17 0x08277975 in CSocketClientProxy::Connect (this=0xaf6f9ff0,
address=@0xbfdc5648, wait=false) at Proxy.cpp:1274
lock = {m_isOk = true, m_mutex = @0xaf6fa0ac}
ok = false
#18 0x0807996a in CUpDownClient::Connect (this=0xb1cd3998)
at BaseClient.cpp:1494
---Type <return> to continue, or q <return> to quit---
tmp = {<wxIPV4address> = {<wxIPaddress> = {<wxSockAddress> = {<wxObject> = {_vptr.wxObject = 0x834e8e8, static ms_classInfo = {
m_className = 0xb7ed61a0, m_objectSize = 8,
m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
static sm_first = 0x0, m_next = 0xb7f45728,
static sm_classTable = 0x8658030}, m_refData = 0x0},
static ms_classInfo = {m_className = 0xb7f760cc, m_objectSize = 12,
m_objectConstructor = 0, m_baseInfo1 = 0xb7f45684,
m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0xb7f82a20,
static sm_classTable = 0x8658030}, m_address = 0xabaede10},
static ms_classInfo = {m_className = 0xb7f76104, m_objectSize = 12,
m_objectConstructor = 0, m_baseInfo1 = 0xb7f829a0, m_baseInfo2 = 0x0,
static sm_first = 0x0, m_next = 0xb7f829a0,
static sm_classTable = 0x8658030}}, static ms_classInfo = {
m_className = 0xb7f76134, m_objectSize = 16,
m_objectConstructor = 0xb7f671f4 <wxIPV4address::wxCreateObject()>,
m_baseInfo1 = 0xb7f829b8, m_baseInfo2 = 0x0, static sm_first = 0x0,
m_next = 0xb7f829b8, static sm_classTable = 0x8658030},
m_origHostname = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0xb7edc61c}, <No data fields>}}, <No data fields>}
#19 0x0807f656 in CUpDownClient::TryToConnect (this=0xb1cd3998,
bIgnoreMaxCon=false) at BaseClient.cpp:1470
uClientIP = 2632470217
---Type <return> to continue, or q <return> to quit---
__FUNCTION__ = "TryToConnect"
#20 0x080ceb1e in CUpDownClient::AskForDownload (this=0xb1cd3998)
at DownloadClient.cpp:157
No locals.
#21 0x0824dc14 in CPartFile::Process (this=0x92d07c8, reducedownload=0,
m_icounter=10 '\n') at PartFile.cpp:1567
cur_src = (CUpDownClient *) 0xb1cd3998
it = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0x92d0a54,
_M_version = 1, _M_prior = 0x0, _M_next = 0x0}, _M_current = {
_M_node = 0xb27bbfb0}}
old_trans = 0
dwCurTick = 1129833339
#22 0x080db0df in CDownloadQueue::Process (this=0x920ed18)
at DownloadQueue.cpp:374
file = (class CPartFile *) 0x92d07c8
unlocker = {m_isOk = true, m_mutex = @0x920ed44}
i = 504
lock = {m_isOk = true, m_mutex = @0x920ed44}
downspeed = 0
cur_datarate = 193641
cur_udcounter = 10
#23 0x08067e76 in CamuleApp::OnCoreTimer (this=0x8678ee0) at amule.cpp:1447
msCur = 6980479
---Type <return> to continue, or q <return> to quit---
msPrev1 = 6979567
msPrev5 = 6975968
msPrevSave = 6962475
msPrevHist = 5967000
msPrevOS = 6975968
msPrevKnownMet = 5417475
#24 0xb7ddbdff in wxAppConsole::HandleEvent (this=0x8678ee0,
handler=0x8678ee0, func=
(void ( class wxEvtHandler::*)(class wxEvent &,)) 16830405,
event=@0x9c39740) at ./src/common/appbase.cpp:320
No locals.
#25 0xb7e9b6d2 in wxEvtHandler::ProcessEventIfMatches (entry=@0x846d880,
handler=0x8678ee0, event=@0x9c39740) at ./src/common/event.cpp:1225
tableId1 = 6128
tableId2 = -1
#26 0xb7e9d4ee in wxEventHashTable::HandleEvent (this=0x846d800,
event=@0x9c39740, self=0x8678ee0) at ./src/common/event.cpp:898
n = 1
eventEntryTable = (
const wxEventTableEntryPointerArray &) @0x920e6ac: {<wxBaseArrayPtrVoid> = {m_nSize = 2, m_nCount = 2, m_pItems = 0x920ea58}, <No data fields>}
count = 2
eventType = 10014
---Type <return> to continue, or q <return> to quit---
eTTnode = (wxEventHashTable::EventTypeTable * const) 0x920e6a8
#27 0xb7e9d654 in wxEvtHandler::ProcessEvent (this=0x8678ee0, event=@0x9c39740)
at ./src/common/event.cpp:1287
__FUNCTION__ = "ProcessEvent"
#28 0xb7e9bfaa in wxEvtHandler::ProcessPendingEvents (this=0x8678ee0)
at ./src/common/event.cpp:1183
event = (wxEvent *) 0x9c39740
node = {m_ptr = 0xea632a8}
n = 1
__FUNCTION__ = "ProcessPendingEvents"
#29 0xb7ddcf11 in wxAppConsole::ProcessPendingEvents (this=0x8678ee0)
at ./src/common/appbase.cpp:292
handler = (class wxEvtHandler *) 0x8678ee0
node = {m_ptr = 0xeb04f40}
#30 0x0805e251 in CamuleDaemonApp::OnRun (this=0x8678ee0) at amuled.cpp:427
No locals.
#31 0xb7e24bda in wxEntry (argc=@0xb7f444cc, argv=0x86673a0)
at ./src/common/init.cpp:456
callOnExit = {<No data fields>}
cleanupOnExit = {<No data fields>}
#32 0xb7e24ca5 in wxEntry (argc=@0xbfdc5c90, argv=0xbfdc5d14)
at ./src/common/init.cpp:468
No locals.
---Type <return> to continue, or q <return> to quit---
#33 0x0805e2b0 in main (argc=Cannot access memory at address 0x1a80
) at amuled.cpp:101
No locals.