aMule Forum
English => Backtraces => Topic started by: alandar on February 18, 2005, 03:49:05 AM
-
(gdb) bt
#0 0xb7ebcda0 in wxWCharBuffer (this=0xbf5ff56c, len=3526213385) at buffer.h:100
#1 0xb7eba39e in wxMBConv::cMB2WC (this=0x80c2698, psz=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at src/common/strconv.cpp:183
#2 0xb7ebce27 in wxMBConv::cMB2WX (this=0x80c2698, psz=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at strconv.h:55
#3 0x0809df81 in char2unicode (x=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at StringFunctions.h:63
#4 0x08070dbe in CAnyImage::SetHttpType (this=0x81e24e0, ext=Cannot access memory at address 0x48b6fc24
) at WebServer.cpp:2971
#5 0x08071568 in CFileImage (this=0x81e24e0, name=@0xbf5ff84c) at WebServer.cpp:2991
#6 0x080734b2 in CImageLib::GetImage (this=0x810f828, name=@0xbf5ff94c) at WebServer.cpp:3402
#7 0x08053d29 in CWebServer::ProcessImgFileReq (this=0x810f718, Data=
{sURL = { = {static npos = 4294967195, m_pchData = 0x81d7104}, }, inadr = {s_addr = 0}, pSocket = 0x8145d80}) at WebServer.cpp:466
#8 0x0808f71a in CWebSocket::OnRequestReceived (this=0x8145d80,
pHeader=0x8145f08 "GET /l_down.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,en;q"..., dwHeaderLen=384, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
#9 0x0808ea8e in CWCThread::Entry (this=0x8145d70) at WebSocket.cpp:202
#10 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0x8145d70) at src/unix/threadpsx.cpp:762
#11 0xb7ef2b4a in wxPthreadStart (ptr=0x8145d70) at src/unix/threadpsx.cpp:714
#12 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
#13 0xb7be3037 in clone () from /lib/libc.so.6
(gdb) bt full
#0 0xb7ebcda0 in wxWCharBuffer (this=0xbf5ff56c, len=3526213385) at buffer.h:100
No locals.
#1 0xb7eba39e in wxMBConv::cMB2WC (this=0x80c2698, psz=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at src/common/strconv.cpp:183
buf = {m_str = 0x0}
nLen = 3526213385
buf = {m_str = 0x0}
#2 0xb7ebce27 in wxMBConv::cMB2WX (this=0x80c2698, psz=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at strconv.h:55
No locals.
#3 0x0809df81 in char2unicode (x=0xbf5ff66c "Fri, 18 Feb 2005 03:44:33 GMT")
at StringFunctions.h:63
No locals.
#4 0x08070dbe in CAnyImage::SetHttpType (this=0x81e24e0, ext=Cannot access memory at address 0x48b6fc24
) at WebServer.cpp:2971
t = 1108698273
tmp = "Fri, 18 Feb 2005 03:44:33 GMT\000:ǰ0Ç\b\205÷Çäö_|\232,Ç\006\000\000\000\000\000\000\000äö_|ß,Ç÷_|U\027\b\f\000\000\000^+ǰ0Ç\b\205÷Çäö_|\003\000\000\000\001\000\000\000@ HÇ\t\000\000\000\006\000\000\000@V\027\b\b\205÷Ç\004÷_|\\lÇ÷_|\003\000\000\000U\027\b\003\000\000\000\006\000\000\000\b\205÷Ç$÷_|\034tÇ÷_|\003\000\000\000U\027\bsÇ\001\000\000\000\b\205÷ÇD÷_||Ç÷_|Ü÷_|"...
#5 0x08071568 in CFileImage (this=0x81e24e0, name=@0xbf5ff84c) at WebServer.cpp:2991
file_size = 917
ext = { = {static npos = 4294967195, m_pchData = 0x81755ec}, }
fis = {m_fp = 0x8175a58, m_name = { = {static npos = 4294967195,
m_pchData = 0x81690e4}, }}
#6 0x080734b2 in CImageLib::GetImage (this=0x810f828, name=@0xbf5ff94c) at WebServer.cpp:3402
img = (CAnyImage *) 0x0
filename = {m_volume = { = {static npos = 4294967195,
m_pchData = 0xb7f2c6a8}, }, m_dirs = {m_nSize = 16, m_nCount = 3,
m_pItems = 0x8177160, m_autoSort = false}, m_name = { = {
static npos = 4294967195, m_pchData = 0x81e248c}, },
m_ext = { = {static npos = 4294967195, m_pchData = 0x81691c4}, },
m_relative = false}
fimg = (CFileImage *) 0xb7ec6b52
#7 0x08053d29 in CWebServer::ProcessImgFileReq (this=0x810f718, Data=
{sURL = { = {static npos = 4294967195, m_pchData = 0x81d7104}, }, inadr = {s_addr = 0}, pSocket = 0x8145d80}) at WebServer.cpp:466
img = (CAnyImage *) 0xb7ec7df8
#8 0x0808f71a in CWebSocket::OnRequestReceived (this=0x8145d80,
pHeader=0x8145f08 "GET /l_down.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,en;q"..., dwHeaderLen=384, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
sHeader = { = {static npos = 4294967195,
m_pchData = 0x8168ac4}, }
sData = { = {static npos = 4294967195,
m_pchData = 0xb7f2c6a8}, }
sURL = { = {static npos = 4294967195,
m_pchData = 0x81d7104}, }
Data = {sURL = { = {static npos = 4294967195,
m_pchData = 0x81d7104}, }, inadr = {s_addr = 0}, pSocket = 0x8145d80}
#9 0x0808ea8e in CWCThread::Entry (this=0x8145d70) at WebSocket.cpp:202
IsGet = true
IsPost = false
#10 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0x8145d70) at src/unix/threadpsx.cpp:762
pthread = (wxThreadInternal *) 0x8145dd0
rc = 0
dontRunAtAll = false
#11 0xb7ef2b4a in wxPthreadStart (ptr=0x8145d70) at src/unix/threadpsx.cpp:714
No locals.
#12 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
No symbol table info available.
#13 0xb7be3037 in clone () from /lib/libc.so.6
No symbol table info available.
-
One more, i think this one is connected with previos one.
configuration: Slackware 10.0, wxBase 2.5.3, gd 2.0.28
(gdb) bt
#0 0xb7e6cd82 in wxCharBuffer (this=0xbf3ff83c, len=1222852701) at buffer.h:96
#1 0xb7eba4bb in wxMBConv::cWC2MB (this=0x80c2578, pwz=0x82353bc) at src/common/strconv.cpp:204
#2 0xb7ebce59 in wxMBConv::cWX2MB (this=0x80c2578, psz=0x82353bc) at strconv.h:56
#3 0x08053d87 in CWebServer::ProcessImgFileReq (this=0x810f718, Data=
{sURL = { = {static npos = 4294967195, m_pchData = 0x817caa4}, }, inadr = {s_addr = 0}, pSocket = 0xb79016e8}) at WebServer.cpp:471
#4 0x0808f71a in CWebSocket::OnRequestReceived (this=0xb79016e8,
pHeader=0xb7900490 "GET /arrow_down.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,"..., dwHeaderLen=562, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
#5 0x0808ea8e in CWCThread::Entry (this=0xb79016d8) at WebSocket.cpp:202
#6 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0xb79016d8) at src/unix/threadpsx.cpp:762
#7 0xb7ef2b4a in wxPthreadStart (ptr=0xb79016d8) at src/unix/threadpsx.cpp:714
#8 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
#9 0xb7be3037 in clone () from /lib/libc.so.6
(gdb) bt full
#0 0xb7e6cd82 in wxCharBuffer (this=0xbf3ff83c, len=1222852701) at buffer.h:96
No locals.
#1 0xb7eba4bb in wxMBConv::cWC2MB (this=0x80c2578, pwz=0x82353bc) at src/common/strconv.cpp:204
buf = {m_str = 0x0}
nLen = 1222852698
buf = {m_str = 0x0}
#2 0xb7ebce59 in wxMBConv::cWX2MB (this=0x80c2578, psz=0x82353bc) at strconv.h:56
No locals.
#3 0x08053d87 in CWebServer::ProcessImgFileReq (this=0x810f718, Data=
{sURL = { = {static npos = 4294967195, m_pchData = 0x817caa4}, }, inadr = {s_addr = 0}, pSocket = 0xb79016e8}) at WebServer.cpp:471
img_size = 204
img_data = (unsigned char *) 0x8199c68 "GIF89a\020"
img = (CAnyImage *) 0x8145d10
#4 0x0808f71a in CWebSocket::OnRequestReceived (this=0xb79016e8,
pHeader=0xb7900490 "GET /arrow_down.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,"..., dwHeaderLen=562, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
sHeader = { = {static npos = 4294967195,
m_pchData = 0x816e1bc}, }
sData = { = {static npos = 4294967195,
m_pchData = 0xb7f2c6a8}, }
sURL = { = {static npos = 4294967195,
m_pchData = 0x817caa4}, }
Data = {sURL = { = {static npos = 4294967195,
m_pchData = 0x817caa4}, }, inadr = {s_addr = 0}, pSocket = 0xb79016e8}
#5 0x0808ea8e in CWCThread::Entry (this=0xb79016d8) at WebSocket.cpp:202
IsGet = true
IsPost = false
#6 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0xb79016d8) at src/unix/threadpsx.cpp:762
pthread = (wxThreadInternal *) 0xb7901738
rc = 0
dontRunAtAll = false
#7 0xb7ef2b4a in wxPthreadStart (ptr=0xb79016d8) at src/unix/threadpsx.cpp:714
No locals.
#8 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
No symbol table info available.
#9 0xb7be3037 in clone () from /lib/libc.so.6
No symbol table info available.
-
alandar,
I see nothing wrong in there, are you sure gdb is stopping because of a crash? Can you post the message gdb prints at the time the program stops? Did you enter these commands:
ha SIGPIPE nostop noprint pass
ha SIG32 nostop noprint pass
They are necessary so that gdb does not stop unecessarily. And there may be other signals that make a program stop inside gdb, but that does not mean a crash. Just type continue and it goes on.
Cheers!
-
I haven't noticed your response becouse I thought these two responses in this thread are both mine :)
Probably you are right, i don't remember now.
I had some problems even after adding handling of SIG32 and SIGPIPE to .gdbinit.
AFAIR gdb still stopped on new thread.
Now I'm just added ulimit -c unlimited to startup script and I'm doing bt from cores :)
Amuleweb seems to be working just fine now. Great job.
-
Well.. it only seemed to work just fine, here are backtraces:
(gdb) bt
#0 0xb7ebcda0 in wxWCharBuffer (this=0xbf5ff87c, len=3526223080) at buffer.h:100
#1 0xb7eba39e in wxMBConv::cMB2WC (this=0x80c27b8,
psz=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at src/common/strconv.cpp:183
#2 0xb7ebce27 in wxMBConv::cMB2WX (this=0x80c27b8,
psz=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at strconv.h:55
#3 0x0809dfe1 in char2unicode (
x=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at StringFunctions.h:63
#4 0x0808ef05 in CWebSocket::OnRequestReceived (this=0x811ee30,
pHeader=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"..., dwHeaderLen=435, pData=0x0, dwDataLen=0) at WebSocket.cpp:290
#5 0x0808eaee in CWCThread::Entry (this=0x811ee20) at WebSocket.cpp:202
#6 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0x811ee20) at src/unix/threadpsx.cpp:762
#7 0xb7ef2b4a in wxPthreadStart (ptr=0x811ee20) at src/unix/threadpsx.cpp:714
#8 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
#9 0xb7be3037 in clone () from /lib/libc.so.6
(gdb) bt full
#0 0xb7ebcda0 in wxWCharBuffer (this=0xbf5ff87c, len=3526223080) at buffer.h:100
No locals.
#1 0xb7eba39e in wxMBConv::cMB2WC (this=0x80c27b8,
psz=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at src/common/strconv.cpp:183
buf = {m_str = 0x0}
nLen = 3526223080
buf = {m_str = 0x0}
#2 0xb7ebce27 in wxMBConv::cMB2WX (this=0x80c27b8,
psz=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at strconv.h:55
No locals.
#3 0x0809dfe1 in char2unicode (
x=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"...) at StringFunctions.h:63
No locals.
#4 0x0808ef05 in CWebSocket::OnRequestReceived (this=0x811ee30,
pHeader=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"..., dwHeaderLen=435, pData=0x0, dwDataLen=0) at WebSocket.cpp:290
sHeader = { = {static npos = 4294967195, m_pchData = 0x1b3}, }
sData = { = {static npos = 4294967195,
m_pchData = 0xf78508}, }
sURL = { = {static npos = 4294967195,
m_pchData = 0x81e1478}, }
Data = {sURL = { = {static npos = 4294967195,
m_pchData = 0x81e1478}, }, inadr = {s_addr = 0}, pSocket = 0x1000}
#5 0x0808eaee in CWCThread::Entry (this=0x811ee20) at WebSocket.cpp:202
IsGet = true
IsPost = false
#6 0xb7ef2c91 in wxThreadInternal::PthreadStart (thread=0x811ee20) at src/unix/threadpsx.cpp:762
pthread = (wxThreadInternal *) 0x80ed2a0
rc = 0
dontRunAtAll = false
#7 0xb7ef2b4a in wxPthreadStart (ptr=0x811ee20) at src/unix/threadpsx.cpp:714
No locals.
#8 0xb7f8ecc4 in pthread_detach () from /lib/libpthread.so.0
No symbol table info available.
#9 0xb7be3037 in clone () from /lib/libc.so.6
No symbol table info available.
-
OK, now I see it`s the same as I posted earlier, and now I'm sure that it's not just SIG32 or SIGPIPE.
These backtraces were genereted from core file.
This crash happened 3 times in a row after few refreshes of the transfer page. I have strange filename in the transfer list:
[240)].40.Days.and.40.Nights.(2002).avi
I don't know how do you see this, but in my browser characters in square brackets [] appear as squares with 4 digits inside. Maybe next time I'll build amule with --disable-unicode. You think it can help? (me or you)
-
and now I'm sure that it's not just SIG32 or SIGPIPE
#0 0xb7ebcda0 in wxWCharBuffer (this=0xbf5ff87c, len=3526223080) at buffer.h:100
Phoenix: I think "len" is too big :). So it must be out-of-memory exception
-
#4 0x0808ef05 in CWebSocket::OnRequestReceived (this=0x811ee30,
pHeader=0x815acf0 "GET /cp_shared.gif HTTP/1.1\r\nHost: polana:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: pl,en-us;q=0.7,e"..., dwHeaderLen=435, pData=0x0, dwDataLen=0) at WebSocket.cpp:290
lfroen,
You are right, but how did that happen? Look, the header len was ok in frame 4. Could this be a wx bug? How did the ending zero got lost in the way? It was sure ok in the calling function, CWCThread::Entry().
alandar, what is the wx that you are using?
Cheers!
-
I'm using wxBase only, no wxGTK.
wx-config --version-full
2.5.3.0
It was compiled from source, then package was build.
Compilation was on different machine, but I set in configure --host=i486-slackware-linux so it should be fine.
I deleted config.log along with whole directory with sources, but AFAIR configure options were:
./configure --prefix=/home/lesio/wxBase --host=i486-slackware-linux --disable-optimise --enable-debug --enable-unicode
-
hum,
Ok, I don't know if this is viable, but could you try to recompile wx in the target machine?
-
Recompilation didn't help. amuleweb keeps crashing after few refreshes of transfer page. gdb bt gives the same output. Maybe I should try wxBase-cvs?
If problem lies in bug in wxWidgets this may help.
-
alandar,
Ok, try wx-CVS. They are about to launch wx-2.5.4, there are lots of bug fixes in CVS.
-
Ok, with today's wx-cvs I can't make amuleweb to crash just by refreshing transfer page. So it looks promising. Will see how will it work with normal work.
-
Nice! Try also tomorrow aMule cvs tarball, I did some pretty important changes relative to amuleweb/amuled crashing issues.
Thanks for testing!