aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb-cvs crashes with small files (<200 bytes)  (Read 2127 times)

alehack

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
amuleweb-cvs crashes with small files (<200 bytes)
« on: January 16, 2005, 11:57:07 PM »

Hi,
To reproduce the crash add to your downloads a small file (<200 bytes). For example:
ed2k://|file|Steel.Saviour.(2004).NOGROUP.SVCDPlaza.cue|104|49FEE1911E4F88774628CD2EA8665961|/

then browse your downloads from amuleweb.

Here is the backtrace (amule-cvs-20050116):

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -178762832 (LWP 20773)]
0x0806fce5 in CProgressImage::CreateSpan (this=0x80f4f70) at WebServer.cpp:2952
2952                    uint32 start = colored_gaps.start / factor;
(gdb) bt
#0  0x0806fce5 in CProgressImage::CreateSpan (this=0x80f4f70)
    at WebServer.cpp:2952
#1  0x080704bb in CDynImage::DrawImage (this=0x80f4f70) at WebServer.cpp:3019
#2  0x08070623 in CDynImage::RequestData (this=0x80f4f70, size=@0xf5584848)
    at WebServer.cpp:3037
#3  0x08052a61 in CWebServer::ProcessImgFileReq (this=0x80c4360, Data=
      {sURL = , inadr = {s_addr = 4294967295}, pSocket = 0x80d7
b98}) at WebServer.cpp:458
#4  0x0808d2f8 in CWebSocket::OnRequestReceived (this=0x80d7b98,
    pHeader=0x80dc1d8 "GET /dyn_C74123A46D86BBCE5753D54B78B0DFB4.png HTTP/1.1\r\
nUser-Agent: Opera/7.60 (X11; Linux i686; U; en)\r\nHost: 127.0.0.1:4711\r\nAcce
pt: text/html, application/xml;q=0.9, application/xhtml+xml, image/pn"...,
    dwHeaderLen=520, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
#5  0x0808c65d in CWCThread::Entry (this=0x80d7b88) at WebSocket.cpp:202
#6  0xf6f81faf in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.4.so
#7  0xf6f81e5c in wxPthreadStart () from /usr/lib/libwx_base-2.4.so
#8  0xf6fbe98c in start_thread () from /lib/tls/libpthread.so.0
#9  0xf6cf816a in clone () from /lib/tls/libc.so.6

(gdb) bt full
#0  0x0806fce5 in CProgressImage::CreateSpan (this=0x80f4f70)
    at WebServer.cpp:2952
        start = 255
        end = 1
        i = 1
        color_gaps_alloc = 6
        colored_gaps = (CProgressImage::Color_Gap_Struct *) 0x80dd280
        part_info = (const unsigned char *) 0x80f50d0 ""
        colored_gaps_size = 1
        factor = 0
#1  0x080704bb in CDynImage::DrawImage (this=0x80f4f70) at WebServer.cpp:3019
No locals.
#2  0x08070623 in CDynImage::RequestData (this=0x80f4f70, size=@0xf5584848)
    at WebServer.cpp:3037
        png_ptr = 0xf5584860
        info_ptr = 0xf6d557c8
#3  0x08052a61 in CWebServer::ProcessImgFileReq (this=0x80c4360, Data=
      {sURL = , inadr = {s_addr = 4294967295}, pSocket = 0x80d7
b98}) at WebServer.cpp:458
        img_size = 135861400
        img_data = (unsigned char *) 0xf6d55780 ""
        img = (CAnyImage *) 0x80f4f70
#4  0x0808d2f8 in CWebSocket::OnRequestReceived (this=0x80d7b98,
    pHeader=0x80dc1d8 "GET /dyn_C74123A46D86BBCE5753D54B78B0DFB4.png HTTP/1.1\r\                                             ---Type to continue, or q to quit---
nUser-Agent: Opera/7.60 (X11; Linux i686; U; en)\r\nHost: 127.0.0.1:4711\r\nAcce                                             pt: text/html, application/xml;q=0.9, application/xhtml+xml, image/pn"...,
    dwHeaderLen=520, pData=0x0, dwDataLen=0) at WebSocket.cpp:314
        sHeader =
        sData =
        sURL =
        Data = {sURL = , inadr = {s_addr = 4294967295},
  pSocket = 0x80d7b98}
#5  0x0808c65d in CWCThread::Entry (this=0x80d7b88) at WebSocket.cpp:202
        IsGet = true
        IsPost = false
#6  0xf6f81faf in wxThreadInternal::PthreadStart ()
   from /usr/lib/libwx_base-2.4.so
No symbol table info available.
#7  0xf6f81e5c in wxPthreadStart () from /usr/lib/libwx_base-2.4.so
No symbol table info available.
#8  0xf6fbe98c in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#9  0xf6cf816a in clone () from /lib/tls/libc.so.6
No symbol table info available.


Obviously the problem is that factor=0.
Logged