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 crashes often  (Read 5942 times)

ivano77

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Amuleweb crashes often
« on: June 17, 2006, 03:52:33 AM »

I tried both 2.1.2 and 2.1.3, all the packages posted on amule webiste but there is nothing to do, sometimes soon...sometimes after a while amuleweb crashes, first it takes huge memory and lot of cpu time then is probably killed by the system.
Amule is a grat project and is perfect as it is now...should only be more stable
thenk you

Ivano
Logged

ivano77

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
RE: Amuleweb crashes often
« Reply #1 on: June 17, 2006, 04:19:12 AM »

I tried to run amuleweb in shell to see what it says,
first i used

amuleweb --create-config-from=/home/ivano/.amule/amule.conf

then i got the remote.conf created

i launched amuleweb and after a little use with a webclient that's what i got

...
...
Thread: exited [WebSocket closed]
WCThread: Started a new WCThread
Sessione valida, utente loggato
WCThread: Started a new WCThread
Sessione valida, utente loggato
WCThread: Started a new WCThread
Sessione valida, utente loggato
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
Sessione valida, utente loggato
WCThread: Started a new WCThread
WCThread: exited [WebSocket closed]
WCThread: exited [WebSocket closed]
Sessione valida, utente loggato
WCThread: Started a new WCThread
Sessione valida, utente loggato
WCThread: Started a new WCThread
04:09:21: Errore: impossibile aprire il file '/usr/local/share/amule/webserver/p hp-default/dyn_1D7E87A05ACEA442E727B0EA42928F3C.png' (errore 2: Nessun file o di rectory)
CFileImage: failed to open /usr/local/share/amule/webserver/php-default/dyn_1D7E 87A05ACEA442E727B0EA42928F3C.png
Sessione valida, utente loggato
Segmentation fault


hope this can help
thanx
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Amuleweb crashes often
« Reply #2 on: June 17, 2006, 01:31:23 PM »

Regarding the error message: Have you installed libgd and pibpng?

The segmentation fault seems not to be connected to this, it happened for me as well while just clicking through the windows.

Code: [Select]
This is amuleweb 2.1.3

Creating client...
Succeeded! Connection established to aMule 2.1.3
[...lots of not needed lines...]
WCThread: Started a new WCThread
Processing request [original]: amuleweb-main-kad.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-kad.php
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
Session ok, logged in
Segmentation fault

I'll try to get a gdb-backtrace.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Amuleweb crashes often
« Reply #3 on: June 17, 2006, 01:51:47 PM »

Code: [Select]
[...]
WCThread: Started a new WCThread
Processing request [original]: amuleweb-main-kad.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-kad.php
WCThread: exited [WebSocket closed]
[Thread -1284867152 (zombie) exited]
[Thread -1268081744 (zombie) exited]
[New Thread -1268081744 (LWP 13265)]
WCThread: Started a new WCThread
Session ok, logged in

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1268081744 (LWP 13265)]
0x0805245a in ?? ()
(gdb) bt
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()
(gdb) bt full
#0  0x0805245a in ?? ()
No symbol table info available.
#1  0x00000006 in ?? ()
No symbol table info available.
#2  0x00000000 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 434 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 432 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 431 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 430 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 429 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
---Type to continue, or q to quit---
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 422 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 405 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 394 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 392 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

---Type to continue, or q to quit---
Thread 391 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 390 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 389 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 388 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 379 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
---Type to continue, or q to quit---
#2  0x00000000 in ?? ()

Thread 368 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 364 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 347 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 325 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 307 (Thread -1268081744 (LWP 13265)):
---Type to continue, or q to quit---
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 287 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 274 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 272 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 248 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()
---Type to continue, or q to quit---

Thread 225 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 118 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 109 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 105 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 72 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
---Type to continue, or q to quit---
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 52 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 47 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 44 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 41 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

---Type to continue, or q to quit---
Thread 40 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 39 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 26 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 12 (Thread -1268081744 (LWP 13265)):
#0  0x0805245a in ?? ()
#1  0x00000006 in ?? ()
#2  0x00000000 in ?? ()

Thread 2 (Thread -1217627216 (LWP 12818)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c8a0c1 in select () from /lib/tls/i686/cmov/libc.so.6
---Type to continue, or q to quit---
#2  0xb7f50cec in GSocket::Select ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#3  0xb7f4c897 in wxSocketBase::_Wait ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#4  0xb7f4cba3 in wxSocketServer::WaitForAccept ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#5  0x08074978 in wxAppConsole::WakeUpIdle ()
#6  0xb7ed0f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7ed0fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f85341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c914ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1212396704 (LWP 12814)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c8256b in read () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7c270f8 in _IO_file_read () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7c25e7e in _IO_file_underflow () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7c2845b in _IO_default_uflow () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7c2824d in __uflow () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7c1d0b0 in _IO_getline_info () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7c1cfef in _IO_getline () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7c1bf19 in fgets () from /lib/tls/i686/cmov/libc.so.6
---Type to continue, or q to quit---
#9  0x08076265 in wxAppConsole::WakeUpIdle ()
#10 0x08078b75 in wxAppConsole::WakeUpIdle ()
#11 0x08076739 in wxAppConsole::WakeUpIdle ()
#12 0x0807217a in wxThreadHelperThread::~wxThreadHelperThread ()
#13 0xb7e7d1b4 in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#14 0xb7e7d26a in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#15 0x080720e6 in wxThreadHelperThread::~wxThreadHelperThread ()
#16 0xb7bdcea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#17 0x0804f0c1 in ?? ()
#0  0x0805245a in ?? ()
(gdb)

I think I should try it with debug enabled and optimize disabled.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Amuleweb crashes often
« Reply #4 on: June 17, 2006, 02:02:37 PM »

Code: [Select]
WCThread: Started a new WCThread
Processing request [original]: amuleweb-main-prefs.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-prefs.php
WCThread: exited [WebSocket closed]
[Thread -1243153488 (zombie) exited]
[New Thread -1243153488 (LWP 29719)]
WCThread: Started a new WCThread
Processing request [original]: amuleweb-main-kad.php
Session ok, logged in
Processing request [redirected]: amuleweb-main-kad.php
WCThread: exited [WebSocket closed]
[Thread -1243153488 (zombie) exited]
[New Thread -1268331600 (LWP 29720)]
WCThread: Started a new WCThread
Session ok, logged in

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1268331600 (LWP 29720)]
0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8, offx=6,
    offy=2) at WebServer.cpp:1568
1568                    png_bytep num_row = m_row_mask_ptrs[i];
(gdb) bt
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt full
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
        img_row = (
    png_bytep) 0xb76d5bc0 "\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001@\001\001"...
        num_row = (png_bytep) 0x8168448 ""
        i = 0
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
        m_scale_up = 1
        y_axis_max = 1104
        graph_color = 255
        maxval = 913
        m_scale_down = 6
        img_delta = 2
        prev_data = 134600131
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
---Type to continue, or q to quit---
    size=@0xb466c150) at WebServer.cpp:1518
No locals.
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
        img_size = 0
        img_data = (unsigned char *) 0xb466c2bc "ýT\032\bgE\213kXý\032\b"
        session = (const CSession *) 0x816c034
        imgName = { = {static npos = 4294967295,
    m_pchData = 0x81a69a4}, }
        img = (CAnyImage *) 0x8167b94
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
        url_ext = { = {static npos = 4294967295,
    m_pchData = 0x815fcac}, }
        is_post = false
        sURL = { = {static npos = 4294967295,
    m_pchData = 0x81a54d4}, }
        current_cookie = 0x81f2404 "SESSID"
        Data = {parsedURL = {m_path = { = {
        static npos = 4294967295, m_pchData = 0xb7eb456c}, },
---Type to continue, or q to quit---
    m_file = { = {static npos = 4294967295,
        m_pchData = 0x816c3bc}, },
    m_params = {<__gnu_norm::map,std::allocator > >> = {_M_t = {
          _M_impl = { > >> = {<__gnu_cxx::new_allocator > >> = {}, },
            _M_key_compare = {<> = {}, },
            _M_header = {_M_color = std::_S_red, _M_parent = 0x0,
              _M_left = 0xb466c244, _M_right = 0xb466c244},
            _M_node_count = 0}}}, <__gnu_debug::_Safe_sequence<__gnu_debug_def::map, std::allocator > > >> = {<__gnu_debug::_Safe_sequence_base> = {
          _M_iterators = 0x0, _M_const_iterators = 0x0,
          _M_version = 1}, }, }},
  sURL = { = {static npos = 4294967295,
      m_pchData = 0x81a54d4}, }, SessionID = 1804289383,
  pSocket = 0x81acb58}
        path = 0x81f2264 "/amule_stats_kad.png"
        sessid = 1804289383
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
        IsGet = true
        IsPost = false
---Type to continue, or q to quit---
        lock = {m_isOk = 168, m_mutex = @0xb7e924a0}
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
(gdb) thread apply all bt

Thread 66 (Thread -1268331600 (LWP 29720)):
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 62 (Thread -1268331600 (LWP 29720)):
---Type to continue, or q to quit---
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 58 (Thread -1268331600 (LWP 29720)):
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
---Type to continue, or q to quit---
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 34 (Thread -1268331600 (LWP 29720)):
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
---Type to continue, or q to quit---
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 28 (Thread -1268331600 (LWP 29720)):
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
---Type to continue, or q to quit---
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 12 (Thread -1268331600 (LWP 29720)):
#0  0x08053c24 in CNumImageMask::Apply (this=0xb768b008, image=0x8167bb8,
    offx=6, offy=2) at WebServer.cpp:1568
#1  0x08053f16 in CDynStatisticImage::DrawImage (this=0x8167b38)
    at WebServer.cpp:1467
#2  0x080541f9 in CDynStatisticImage::RequestData (this=0x8167b38,
    size=@0xb466c150) at WebServer.cpp:1518
#3  0x0805c0ff in CScriptWebServer::ProcessImgFileReq (this=0x814e398,
    Data=@0xb466c290) at WebServer.cpp:311
---Type to continue, or q to quit---
#4  0x0807ffa8 in CWebSocket::OnRequestReceived (this=0x81acb58,
    pHeader=0x81f2279 "HTTP/1.1\r\nHost: localhost:4711\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4\r\nAccept: image/png,*/*;q=0.5\r\nAccept-Language: en-"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:344
#5  0x08080648 in CWCThread::Entry (this=0x81acb48) at WebSocket.cpp:212
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1217877072 (LWP 29656)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c4d0c1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7f13cec in GSocket::Select ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#3  0xb7f0f897 in wxSocketBase::_Wait ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#4  0xb7f0fba3 in wxSocketServer::WaitForAccept ()
   from /usr/local/lib/libwx_baseu_net-2.6.so.0
#5  0x0807f29f in CWSThread::Entry (this=0x8169ff0) at WebSocket.cpp:74
#6  0xb7e93f2c in wxThreadInternal::PthreadStart ()
---Type to continue, or q to quit---
   from /usr/local/lib/libwx_baseu-2.6.so.0
#7  0xb7e93fa1 in wxPthreadStart () from /usr/local/lib/libwx_baseu-2.6.so.0
#8  0xb7f48341 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9  0xb7c544ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1212646560 (LWP 29652)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7c4556b in read () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7bea0f8 in _IO_file_read () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7be8e7e in _IO_file_underflow () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7beb45b in _IO_default_uflow () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7beb24d in __uflow () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7be00b0 in _IO_getline_info () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7bdffef in _IO_getline () from /lib/tls/i686/cmov/libc.so.6
#8  0xb7bdef19 in fgets () from /lib/tls/i686/cmov/libc.so.6
#9  0x0808156d in CaMuleExternalConnector::GetCommand (this=0x8137b40,
    prompt=@0xbfd79930, buffer=0xbfd79758 "\210\227ÿ\017rýý", buffer_size=256)
    at ../../../src/ExternalConnector.cpp:325
#10 0x08084fe5 in CaMuleExternalConnector::TextShell (this=0x8137b40,
    prompt=@0xbfd79930) at ../../../src/ExternalConnector.cpp:349
#11 0x08081b2b in CaMuleExternalConnector::ConnectAndRun (this=0x8137b40,
    ProgName=@0xbfd79930, ProgVersion=@0xbfd7992c)
    at ../../../src/ExternalConnector.cpp:433
---Type to continue, or q to quit---
#12 0x0807b83a in CamulewebApp::OnRun (this=0x8137b40) at WebInterface.cpp:69
#13 0xb7e401b4 in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#14 0xb7e4026a in wxEntry () from /usr/local/lib/libwx_baseu-2.6.so.0
#15 0x0807b77e in main (argc=1, argv=0xbfd79a34) at WebInterface.cpp:55
0x08053c24      1568                    png_bytep num_row = m_row_mask_ptrs[i];
(gdb)

I hope this helps. (Will now try out CVS)
Logged

lfroen

  • Guest
Re: Amuleweb crashes often
« Reply #5 on: June 18, 2006, 06:52:02 AM »

Do you have some browser accelerator (like fasterfox) installed? I suspect that reason for a crash is many simultaneous requests (for image) in the same time.
Can you reproduce the crash in predictable manner ?
Logged

ivano77

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Amuleweb crashes often
« Reply #6 on: June 21, 2006, 02:19:26 AM »

Yes! i had fasterfox and i removed
In fact now crashes after a while and not soon as before
i had again few "segmentation fault"
and the last was this one
------
------
*** imgrequest: /dyn_3D912F87E198930D70074462F93D5BA0.png
Sessione valida, utente loggato
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
**** imgrequest: /dyn_E62A7F1F9074043DFF7E723DBB6D8D51.png
Sessione valida, utente loggato
WCThread: exited [WebSocket closed]
WCThread: Started a new WCThread
Elaborazione richiesta [originale]:amuleweb-main-dload.php
Sessione valida, utente loggato
Elaborazione richiesta [rediretta]:amuleweb-main-dload.php
*** glibc detected *** double free or corruption (out): 0x0887dbe0 ***
Aborted

thanx again
Logged

lfroen

  • Guest
Re: Amuleweb crashes often
« Reply #7 on: June 21, 2006, 05:12:06 PM »

Have you tried to change template ? (To isolate a problem)
Logged

Speed47

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Amuleweb crashes often
« Reply #8 on: July 05, 2006, 01:29:04 PM »

I have the same sort of problem : amuleweb seems to crash randomly. I've attached gdb to it, here's the tail of gdb's output :

[New Thread 1429851040 (LWP 23853)]
[New Thread 1408871328 (LWP 23854)]
[New Thread 1356422048 (LWP 23855)]
[New Thread 1101278112 (LWP 23856)]
[New Thread 1111767968 (LWP 23857)]
[New Thread 1122257824 (LWP 23858)]
[New Thread 1147276192 (LWP 23859)]
[New Thread 1158642592 (LWP 23860)]
[New Thread 1169132448 (LWP 23861)]
[New Thread 1179622304 (LWP 23862)]
[New Thread 1190112160 (LWP 23863)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1190112160 (LWP 23863)]
0x080500b7 in ?? ()
(gdb) bt
#0  0x080500b7 in ?? ()
#1  0x0805036a in ?? ()
#2  0x08057b1a in ?? ()
#3  0x0806f28a in wxAppConsole::WakeUpIdle ()
#4  0x0806fb7b in wxAppConsole::WakeUpIdle ()
#5  0x4811e639 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#6  0x4811e6cd in wxPthreadStart () from /usr/lib/libwx_baseu-2.6.so.0
#7  0x439a240b in start_thread () from /lib/libpthread.so.0
#8  0x437e5b7e in clone () from /lib/libc.so.6
(gdb)

The different threads are probably, as you said, simultaneous requests for images (namely, the progression bars on the transfer tab). I don't have Fasterfox installed. I'll now try to refresh the page automatically and often, but after having disabled images in Firefox. We'll see if it crashes. If you want me to compile amuleweb from source with debugging symbols, to have a more clear output of gdb, just ask. Right now I have the FC5's packaged version installed, from the Livna repo (v2.1.3-1.lvn5)

[EDIT: smilies disabled to avoid trashing gdb's ouput]
« Last Edit: July 05, 2006, 01:29:46 PM by Speed47 »
Logged

lfroen

  • Guest
Re: Amuleweb crashes often
« Reply #9 on: July 05, 2006, 03:39:01 PM »

Quote
The different threads are probably, as you said, simultaneous requests for images
Did you reconfigured Firefox to do it ? By default, it will not issue simultaneous requests (AFAIK)
Logged

Speed47

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Amuleweb crashes often
« Reply #10 on: July 06, 2006, 11:19:50 AM »

Quote
Did you reconfigured Firefox to do it ? By default, it will not issue simultaneous requests (AFAIK)

I haven't changed anything regarding this on Firefox : I must have the default 1.5.0.4 behavior. I didn't know it wouldn't issue simultaneous requests... Then if it's not simultaneous requests, they're at least very close, which is not surprising as I'm connecting on the loopback interface, so this is quite fast. Here are a couple of parameters of my about:config in Firefox (which are the defaults), if it's of any interest to you :

Code: [Select]
network.http.max-connections=24
network.http.max-connections-per-server=8
network.http.max-persistent-connections-per-proxy=4
network.http.max-persistent-connections-per-server=2

And about the test without images : I couldn't make amuleweb crash, even refreshing each second for several hours. Only one thread is created each time (the webpage itself).
So it must definitely have something to do with the mass-thread creation (when images are activated in the browser).
Logged

lfroen

  • Guest
Re: Amuleweb crashes often
« Reply #11 on: July 06, 2006, 04:07:23 PM »

This is what causing FF to issue (or not) next request BEFORE previous complete.

Code: [Select]
network.http.pipelining=false
Any way, backtrace log with debug info would be helpful. Without debug info it confirms that some problem exists, but give very little hint about where it is.
Logged

Speed47

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Amuleweb crashes often
« Reply #12 on: July 06, 2006, 08:34:44 PM »

Quote
Code: [Select]
network.http.pipelining=false

I can confirm this is set to false on my installation too.

Quote
Any way, backtrace log with debug info would be helpful. Without debug info it confirms that some problem exists, but give very little hint about where it is.

That's exactly what I offered to do on my first post !
I'll do that and keep you informed.  :)
Logged

lfroen

  • Guest
Re: Amuleweb crashes often
« Reply #13 on: July 12, 2006, 09:41:59 PM »

Quote
That's exactly what I offered to do on my first post !

I must be sleeping when writing that. I'm debugging the problem now; thanx for report.
Logged