Freshly compiled.
[root@fb:/home/mula/bin] # gdb amuled
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...
(gdb) run -c /home/mula/.aMule/
Starting program: /home/mula/bin/amuled -c /home/mula/.aMule/
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------
HTTP download thread started
ListenSocket: Ok.
Loading temp files from /home/mula/.aMule/Temp.
All PartFiles Loaded.
No shareable files found in directory: /home/mula/.aMule/Incoming
[New Thread 0xd27400 (LWP 100076)]
Program received signal SIGBUS, Bus error.
[Switching to Thread 0xd27400 (LWP 100076)]
0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
at ./src/unix/gsocket.cpp:1547
1547 wxFD_SET(m_fd, &readfds);
(gdb) bt
#0 0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
at ./src/unix/gsocket.cpp:1547
#1 0x00000000006d4647 in GSocket::Read (this=0xdd1a00,
buffer=0xd80127 ":57 GMT\r\n\r\n2.2.2\n", size=3800)
at ./src/unix/gsocket.cpp:1164
#2 0x00000000006ceb3f in wxSocketBase::_Read (this=0xcf6e00, buffer=0xd80127,
nbytes=3800) at ./src/common/socket.cpp:363
#3 0x00000000006cee40 in wxSocketBase::Peek (this=0xcf6e00, buffer=0xd80000,
nbytes=4095) at ./src/common/socket.cpp:487
#4 0x00000000006cbf04 in wxProtocol::ReadLine (sock=0xcf6e00,
result=@0x7fffff9f5b20) at ./src/common/protocol.cpp:109
#5 0x00000000006c95ce in wxHTTP::ParseHeaders (this=0xcf6e00)
at ./src/common/http.cpp:179
#6 0x00000000006ca3c0 in wxHTTP::BuildRequest (this=0xcf6e00,
path=@0x7fffff9f5dd0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
#7 0x00000000006ca665 in wxHTTP::GetInputStream (this=0xcf6e00,
path=@0x7fffff9f5dd0) at ./src/common/http.cpp:404
#8 0x00000000004bd684 in CHTTPDownloadThread::GetInputStream (this=0xd53400,
url_handler=0x7fffff9f5e58, location=@0xffffffff, proxy=false)
at HTTPDownload.cpp:324
#9 0x00000000004bda81 in CHTTPDownloadThread::Entry (this=0xd53400)
at HTTPDownload.cpp:192
#10 0x0000000000750600 in wxThreadInternal::PthreadStart (thread=0xd53400)
---Type <return> to continue, or q <return> to quit---
at ./src/unix/threadpsx.cpp:766
#11 0x00000000007504d5 in wxPthreadStart (ptr=0xd53400)
at ./src/unix/threadpsx.cpp:718
#12 0x0000000800addb49 in pthread_create () from /lib/libpthread.so.2
#13 0x0000000801063614 in makecontext () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
#15 0x0000000000d27400 in ?? ()
#16 0x00000000007504c0 in wxSemaphoreInternal::Post ()
at ./src/unix/threadpsx.cpp:587
(gdb) bt full
#0 0x00000000006d5153 in GSocket::Input_Timeout (this=0xdd1a00)
at ./src/unix/gsocket.cpp:1547
tv = {tv_sec = 600, tv_usec = 0}
readfds = {__fds_bits = {0 <repeats 16 times>}}
ret = 0
#1 0x00000000006d4647 in GSocket::Read (this=0xdd1a00,
buffer=0xd80127 ":57 GMT\r\n\r\n2.2.2\n", size=3800)
at ./src/unix/gsocket.cpp:1164
ret = 7527714
__func__ = "Read"
#2 0x00000000006ceb3f in wxSocketBase::_Read (this=0xcf6e00, buffer=0xd80127,
nbytes=3800) at ./src/common/socket.cpp:363
more = true
total = 295
ret = 32767
#3 0x00000000006cee40 in wxSocketBase::Peek (this=0xcf6e00, buffer=0xd80000,
nbytes=4095) at ./src/common/socket.cpp:487
No locals.
#4 0x00000000006cbf04 in wxProtocol::ReadLine (sock=0xcf6e00,
result=@0x7fffff9f5b20) at ./src/common/protocol.cpp:109
nRead = 140737482021472
eol = 0xc1 <Error reading address 0xc1: Bad address>
LINE_BUF = 4095
---Type <return> to continue, or q <return> to quit---
buf = {
m_str = 0xd80000 "Server: nginx/0.6.31\r\nDate: Thu, 01 Jan 2009 10:09:57 GMT\ r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Fri, 08 Aug 2 008 14:59:30 GMT\r\nETag: \"6-453f40d78f880\"\r\nAccept-Ranges: bytes\r\nCon"... }
pBuf = 0xd80000 "Server: nginx/0.6.31\r\nDate: Thu, 01 Jan 2009 10:09:57 GMT\r\nContent-Type: text/plain\r\nConnection: close\r\nLast-Modified: Fri, 08 Aug 2008 14:59:30 GMT\r\nETag: \"6-453f40d78f880\"\r\nAccept-Ranges: bytes\r\nCo n"...
#5 0x00000000006c95ce in wxHTTP::ParseHeaders (this=0xcf6e00)
at ./src/common/http.cpp:179
left_str = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x7fffff9f5b50}, <No data fields>}
line = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x881b18}, <No data fields>}
tokenzr = {<wxObject> = {_vptr$wxObject = 0x7965d0,
static ms_classInfo = {m_className = 0x87a3b8, m_objectSize = 16,
m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
static sm_first = 0xcea680, m_next = 0xcf22c0,
static sm_classTable = 0xcf3100}, m_refData = 0x0},
m_string = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x881b18}, <No data fields>}, m_delims = {<wxStringBase> = {
static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
m_pchData = 0x881b18}, <No data fields>}, m_pos = 8583601648,
m_mode = wxTOKEN_INVALID, m_lastDelim = 0}
#6 0x00000000006ca3c0 in wxHTTP::BuildRequest (this=0xcf6e00,
path=@0x7fffff9f5dd0, req=wxHTTP::wxHTTP_GET) at ./src/common/http.cpp:332
tmp_str = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd29618}, <No data fields>}
token = {<wxObject> = {_vptr$wxObject = 0x7965d0,
static ms_classInfo = {m_className = 0x87a3b8, m_objectSize = 16,
m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
static sm_first = 0xcea680, m_next = 0xcf22c0,
static sm_classTable = 0xcf3100}, m_refData = 0x0},
m_string = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd29798}, <No data fields>}, m_delims = {<wxStringBase> = {
static npos = 18446744073709551615,
m_pchData = 0xd29698}, <No data fields>}, m_pos = 13,
m_mode = wxTOKEN_STRTOK, m_lastDelim = 32}
ret_value = 255
pathbuf = {
m_str = 0xd23240 "GET http://amule.sourceforge.net/lastversion HTTP/1.0\r\n"}
tmp_str2 = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd29718}, <No data fields>}
request = (const wxChar *) 0x85c874
buf = {<wxStringBase> = {static npos = 18446744073709551615,
---Type <return> to continue, or q <return> to quit---
m_pchData = 0xd2c618}, <No data fields>}
#7 0x00000000006ca665 in wxHTTP::GetInputStream (this=0xcf6e00,
path=@0x7fffff9f5dd0) at ./src/common/http.cpp:404
inp_stream = (wxHTTPStream *) 0x1000000ffffffff
new_path = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0x881b18}, <No data fields>}
#8 0x00000000004bd684 in CHTTPDownloadThread::GetInputStream (this=0xd53400,
url_handler=0x7fffff9f5e58, location=@0xffffffff, proxy=false)
at HTTPDownload.cpp:324
host = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd6a918}, <No data fields>}
url = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd6ab18}, <No data fields>}
url_read_stream = (class wxInputStream *) 0x871a28
bad_url_pos = -1
location_url = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd6f618}, <No data fields>}
port = 80
addr = {<wxIPaddress> = {<wxSockAddress> = {<wxObject> = {
_vptr$wxObject = 0x85d250, static ms_classInfo = {
m_className = 0x87a3b8, m_objectSize = 16, m_objectConstructor = 0,
m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
m_next = 0xcf22c0, static sm_classTable = 0xcf3100},
---Type <return> to continue, or q <return> to quit---
m_refData = 0x0}, static ms_classInfo = {m_className = 0x85d108,
m_objectSize = 24, m_objectConstructor = 0, m_baseInfo1 = 0xcf21c0,
m_baseInfo2 = 0x0, static sm_first = 0xcea680, m_next = 0xcea980,
static sm_classTable = 0xcf3100}, m_address = 0xd6b1c0},
static ms_classInfo = {m_className = 0x85d140, m_objectSize = 24,
m_objectConstructor = 0, m_baseInfo1 = 0xcea740, m_baseInfo2 = 0x0,
static sm_first = 0xcea680, m_next = 0xcea740,
static sm_classTable = 0xcf3100}}, static ms_classInfo = {
m_className = 0x85d170, m_objectSize = 32,
m_objectConstructor = 0x6cc520 <wxIPV4address::wxCreateObject()>,
m_baseInfo1 = 0xcea780, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
m_next = 0xcea780, static sm_classTable = 0xcf3100},
m_origHostname = {<wxStringBase> = {static npos = 18446744073709551615,
m_pchData = 0xd6a918}, <No data fields>}}
#9 0x00000000004bda81 in CHTTPDownloadThread::Entry (this=0xd53400)
at HTTPDownload.cpp:192
error = (const wxString &) @0xd53400: {<wxStringBase> = {
static npos = 18446744073709551615,
m_pchData = 0x7c5790}, <No data fields>}
url_handler = (class wxHTTP *) 0xcf6e00
url_read_stream = (class wxInputStream *) 0x0
proxy_data = (const CProxyData *) 0x8000000000000000
use_proxy = false
---Type <return> to continue, or q <return> to quit---
#10 0x0000000000750600 in wxThreadInternal::PthreadStart (thread=0xd53400)
at ./src/unix/threadpsx.cpp:766
pthread = (wxThreadInternal *) 0xd53480
rc = 0
dontRunAtAll = false
__FUNCTION__ = "PthreadStart"
#11 0x00000000007504d5 in wxPthreadStart (ptr=0xd53400)
at ./src/unix/threadpsx.cpp:718
No locals.
#12 0x0000000800addb49 in pthread_create () from /lib/libpthread.so.2
No symbol table info available.
#13 0x0000000801063614 in makecontext () from /lib/libc.so.6
No symbol table info available.
#14 0x0000000000000000 in ?? ()
No symbol table info available.
#15 0x0000000000d27400 in ?? ()
No symbol table info available.
#16 0x00000000007504c0 in wxSemaphoreInternal::Post ()
at ./src/unix/threadpsx.cpp:587
gs_condAllDeleted = (wxCondition *) 0xd02220
gs_tidMain = 0xcfe000
gs_mutexAllThreads = (wxMutex *) 0xd021c0
gs_mutexGui = (wxMutex *) 0xd021e0
---Type <return> to continue, or q <return> to quit---
gs_mutexDeleteThread = (wxMutex *) 0xd02200
EXITCODE_CANCELLED = (void * const) 0xffffffffffffffff
gs_allThreads = {<wxBaseArrayPtrVoid> = {m_nSize = 16, m_nCount = 4,
m_pItems = 0xd69b80}, <No data fields>}
gs_nThreadsBeingDeleted = 0
gs_keySelf = 0
typeinfo for wxThreadModule = <incomplete type>
typeinfo for wxThreadHelperThread = <incomplete type>
typeinfo name for wxThread = "8wxThread"
wxThreadModule::ms_classInfo = {m_className = 0x88c1a0,
m_objectSize = 48,
m_objectConstructor = 0x751f40 <wxThreadModule::wxCreateObject()>,
m_baseInfo1 = 0xcf2140, m_baseInfo2 = 0x0, static sm_first = 0xcea680,
m_next = 0xcf28e0, static sm_classTable = 0xcf3100}
typeinfo name for wxThreadModule = "14wxThreadModule"
typeinfo for wxThread = <incomplete type>
*_ZZN16wxThreadInternal8SetStateE13wxThreadStateE10stateNames = {
0x8897dc, 0x8897f0, 0x889810, 0x88982c}
typeinfo name for wxThreadHelperThread = "20wxThreadHelperThread"
(gdb)
(gdb) thread apply all bt
[New Thread 0xdcf400 (sleeping)]
[New Thread 0xdd5000 (sleeping)]
[New Thread 0xcfe400 (LWP 100058)]
Thread 6 (Thread 0xcfe400 (LWP 100058)):
#0 0x0000000800aec96c in pthread_testcancel () from /lib/libpthread.so.2
#1 0x0000000800adb1b0 in sigaction () from /lib/libpthread.so.2
#2 0x0000000800ae51aa in pthread_mutexattr_init () from /lib/libpthread.so.2
#3 0x0000000000000000 in ?? ()
Error accessing memory address 0x7fffffbff000: Bad address.
0x00000000006d5153 1547 wxFD_SET(m_fd, &readfds);
(gdb)
edit recompiled wx with debug flag, to give more detailed bt.