aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Yet another amuleweb crash  (Read 2633 times)

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Yet another amuleweb crash
« on: June 20, 2008, 09:44:31 AM »

Another backtrace:
aMule is still original 2.2.1 (no cvs)
I was sharing an ubuntu iso, and some people was uploading it (I could see from the upload list)
While this peers were uploading, i deleted this iso file from the drive, and then i refreshed the shared files list from the web interface, then, web interface stopped responding.
This is the error and the backtraces:



Code: [Select]
(gdb) run --amule-config-file=/home/bigboss/.aMule/amule.conf
Starting program: /usr/bin/amuleweb --amule-config-file=/home/bigboss/.aMule/amule.conf
[Thread debugging using libthread_db enabled]
[New Thread 0xb7a1d6c0 (LWP 5146)]
PHP Warning: Default parameters are not implemented yet
PHP Warning: Default parameters are not implemented yet
PHP Warning: Default parameters are not implemented yet
PHP Warning: Default parameters are not implemented yet

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7a1d6c0 (LWP 5146)]
0x080641a4 in wxStringBase::c_str (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:527
527       const wxChar* c_str() const { return m_pchData; }



=======================================================================
(gdb) bt
#0  0x080641a4 in wxStringBase::c_str (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:527
#1  0x080641fb in wxString::operator wchar_t const* (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:832
#2  0x080ba6fd in amule_upload_file_prop_get (ptr=0x81ff370,
    prop_name=0x8212528 "name", result=0xbf9a09f4) at php_amule_lib.cpp:901
#3  0x080b0d38 in php_expr_eval (expr=0x82016c8, result=0xbf9a09f4)
    at php_syntree.cpp:1470
#4  0x080b1002 in php_execute (node=0x81e95f0, result=0x0)
    at php_syntree.cpp:1823
#5  0x080b132b in php_execute (node=0x820ffa0, result=0xbf9a0afc)
    at php_syntree.cpp:1901
#6  0x080c3152 in CPhPLibContext::Execute (this=0x81e4ad8, buf=0xbf9a0b90)
    at php_core_lib.cpp:543
#7  0x080c339a in CPhpFilter (this=0xbf9a0bc3, server=0x8188328,
    sess=0x818228c,
    file=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    buff=0xbf9a0b90) at php_core_lib.cpp:620
#8  0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
    filename=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    sess=0x818228c, size=@0xbf9a0cf8) at WebServer.cpp:1796
#9  0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
    Data=@0xbf9a0db4) at WebServer.cpp:1917
---Type <return> to continue, or q <return> to quit---
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81ffbc0,
    pHeader=0x8207ddb "HTTP/1.1\r\nHost: hidden.ip.for.security.reasons:4711\r\nUser-Agent                                                                             : Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9) Gecko/2008052906 Firef                                                                             ox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:222
#11 0x0808fffa in CWebSocket::OnInput (this=0x81ffbc0) at WebSocket.cpp:115
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
    event=@0x81825b8) at WebServer.cpp:317
#13 0xb7dc80e1 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7e6fb88 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb7e6fce8 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb7e6fe4f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#17 0xb7e70380 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7dc8a7f in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#19 0x0808cf11 in CamulewebApp::TextShell (this=0x8173440)
    at WebInterface.cpp:655
#20 0x0809350d in CaMuleExternalConnector::ConnectAndRun (this=0x8173440,
---Type <return> to continue, or q <return> to quit---
    ProgName=@0xbf9a1100, ProgVersion=@0xbf9a10fc)
    at ../../../src/ExternalConnector.cpp:413
#21 0x0808c270 in CamulewebApp::OnRun (this=0x8173440) at WebInterface.cpp:360
#22 0xb7e0405a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#23 0xb7e04107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#24 0x0808c356 in main (argc=Cannot access memory at address 0x19
) at WebInterface.cpp:333

=======================================================================

(gdb) bt full
#0  0x080641a4 in wxStringBase::c_str (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:527
No locals.
#1  0x080641fb in wxString::operator wchar_t const* (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:832
No locals.
#2  0x080ba6fd in amule_upload_file_prop_get (ptr=0x81ff370,
    prop_name=0x8212528 "name", result=0xbf9a09f4) at php_amule_lib.cpp:901
        sharedfile = (SharedFile *) 0x0
        obj = (UploadFile *) 0x81ff370
#3  0x080b0d38 in php_expr_eval (expr=0x82016c8, result=0xbf9a09f4)
    at php_syntree.cpp:1470
        result_val_right = {type = PHP_VAL_NONE, {
    int_val = 13806360320895888671, float_val = -0.025434732905563636,
    str_val = 0x80c2d1f "ÉÃ\220U\211åS\203ìd\213E\b\215UÀ\211D$\004\211\024$èE9", ptr_val = 0x80c2d1f, obj_val = {inst_ptr = 0x80c2d1f,
      class_name = 0xbf9a0b90 "Ð^\037\bÈ\025 \b"}}}
        result_val_left = {type = PHP_VAL_NONE, {int_val = 585044588178079476,
    float_val = 1.4431301731873071e-269, str_val = 0x81e7ef4 "14",
    ptr_val = 0x81e7ef4, obj_val = {inst_ptr = 0x81e7ef4,
      class_name = 0x81e7ef4 "14"}}}
        lval_node = (PHP_VAR_NODE *) 0x8212a58
        si = (PHP_SCOPE_ITEM *) 0x82011b8
---Type <return> to continue, or q <return> to quit---
#4  0x080b1002 in php_execute (node=0x81e95f0, result=0x0)
    at php_syntree.cpp:1823
        curr = (PHP_EXP_NODE *) 0x820f4e8
        cond_result = {type = PHP_VAL_STRING, {int_val = 4294967296,
    float_val = 2.1219957909652723e-314, str_val = 0x0, ptr_val = 0x0,
    obj_val = {inst_ptr = 0x0, class_name = 0x1 <Address 0x1 out of bounds>}}}
        curr_exec_result = 0
#5  0x080b132b in php_execute (node=0x820ffa0, result=0xbf9a0afc)
    at php_syntree.cpp:1901
        curr_value = (PHP_VALUE_NODE *) 0x81e7f00
        elems = (PHP_VAR_NODE *) 0x81eac78
        array = (._146 *) 0x820fe08
        i_key = (PHP_SCOPE_ITEM *) 0x0
        i_val = (PHP_SCOPE_ITEM *) 0x8203248
        cond_result = {type = PHP_VAL_NONE, {int_val = 585231556558192640,
    float_val = 1.4745636389144315e-269, str_val = 0x0, ptr_val = 0x0,
    obj_val = {inst_ptr = 0x0, class_name = 0x81f2900 ""}}}
        curr_exec_result = 0
#6  0x080c3152 in CPhPLibContext::Execute (this=0x81e4ad8, buf=0xbf9a0b90)
    at php_core_lib.cpp:543
        val = {type = 136314424, {int_val = 136318472,
    float_val = 6.7350273908771883e-316, str_val = 0x8200e08 "\001",
    ptr_val = 0x8200e08, obj_val = {inst_ptr = 0x8200e08, class_name = 0x0}}}
---Type <return> to continue, or q <return> to quit---
#7  0x080c339a in CPhpFilter (this=0xbf9a0bc3, server=0x8188328,
    sess=0x818228c,
    file=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    buff=0xbf9a0b90) at php_core_lib.cpp:620
No locals.
#8  0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
    filename=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    sess=0x818228c, size=@0xbf9a0cf8) at WebServer.cpp:1796
        f = (FILE *) 0x81892d8
        buffer = {
  m_buf_list = {<std::__norm::list<char*,std::allocator<char*> >> = {<std::__norm::_List_base<char*,std::allocator<char*> >> = {
        _M_impl = {<std::allocator<std::__norm::_List_node<char*> >> = {<__gnu_cxx::new_allocator<std::__norm::_List_node<char*> >> = {<No data fields>}, <No data fields>}, _M_node = {_M_next = 0x81f5ed0,
            _M_prev = 0x82015c8}}}, <No data fields>}, <__gnu_debug::_Safe_sequence<std::__debug::list<char*, std::allocator<char*> > >> = {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0, _M_const_iterators = 0x0,
        _M_version = 1}, <No data fields>}, <No data fields>},
  m_total_length = 17714, m_alloc_size = 1024,
  m_curr_buf = 0x8204838 "ar</acronym></td><td valign=top class=\"up-line\">36.82KB&nbsp;/&nbsp;0 bytes</td><td valign=top class=\"up-line\">143 bytes/s</td></tr>\n<tr><td valign=top class=\"up-line-left\"><acronym title=\"http://emul"..., ---Type <return> to continue, or q <return> to quit---
m_buf_ptr = 0x820496a "", m_curr_buf_left = 718}
        buf = 0x81ee7d4 "/"
#9  0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
    Data=@0xbf9a0db4) at WebServer.cpp:1917
        lock = {m_isOk = true, m_mutex = @0x8188354}
        httpOutLen = -1080423160
        httpOut = 0x0
        filename = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x81e9cc4}, <No data fields>}
        session = (CSession *) 0x818228c
        req_file = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x81ee7d4}, <No data fields>}
        isUseGzip = 234
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81ffbc0,
    pHeader=0x8207ddb "HTTP/1.1\r\nHost: hidden.ip.for.security.reasons:4711\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:222
        url_ext = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x81e6524}, <No data fields>}
        is_post = false
        path = 0x8207dcc "/downloads.php"
        sURL = {<wxStringBase> = {static npos = 4294967295,
---Type <return> to continue, or q <return> to quit---
    m_pchData = 0x81eea74}, <No data fields>}
        sessid = 1714636915
        current_cookie = 0x8207fa8 "amuleweb_session_id=1714636915\r\n\r\n"
        Data = {parsedURL = {m_path = {<wxStringBase> = {
        static npos = 4294967295, m_pchData = 0xb7e91b98}, <No data fields>},
    m_file = {<wxStringBase> = {static npos = 4294967295,
        m_pchData = 0x81e8314}, <No data fields>},
    m_params = {<std::__norm::map<wxString,wxString,std::less<wxString>,std::allocator<std::pair<const wxString, wxString> > >> = {_M_t = {
          _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const wxString, wxString> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const wxString, wxString> > >> = {<No data fields>}, <No data fields>},
            _M_key_compare = {<std::binary_function<wxString,wxString,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
              _M_parent = 0x0, _M_left = 0xbf9a0e30, _M_right = 0xbf9a0e30},
            _M_node_count = 0}}}, <__gnu_debug::_Safe_sequence<std::__debug::map<wxString, wxString, std::less<wxString>, std::allocator<std::pair<const wxString, wxString> > > >> = {<__gnu_debug::_Safe_sequence_base> = {
          _M_iterators = 0x0, _M_const_iterators = 0x0,
          _M_version = 1}, <No data fields>}, <No data fields>}},
  sURL = {<wxStringBase> = {static npos = 4294967295,
      m_pchData = 0x81eea74}, <No data fields>}, SessionID = 1714636915,
  pSocket = 0x81ffbc0}
---Type <return> to continue, or q <return> to quit---
        sFile = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x81e8314}, <No data fields>}
#11 0x0808fffa in CWebSocket::OnInput (this=0x81ffbc0) at WebSocket.cpp:115
No locals.
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
    event=@0x81825b8) at WebServer.cpp:317
        socket = (CWebSocket *) 0x81ffbc0
#13 0xb7dc80e1 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#14 0xb7e6fb88 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#15 0xb7e6fce8 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#16 0xb7e6fe4f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#17 0xb7e70380 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#18 0xb7dc8a7f in wxAppConsole::ProcessPendingEvents ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#19 0x0808cf11 in CamulewebApp::TextShell (this=0x8173440)
    at WebInterface.cpp:655
No locals.
#20 0x0809350d in CaMuleExternalConnector::ConnectAndRun (this=0x8173440,
    ProgName=@0xbf9a1100, ProgVersion=@0xbf9a10fc)
    at ../../../src/ExternalConnector.cpp:413
        appName = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x8191754}, <No data fields>}
#21 0x0808c270 in CamulewebApp::OnRun (this=0x8173440) at WebInterface.cpp:360
No locals.
#22 0xb7e0405a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#23 0xb7e04107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#24 0x0808c356 in main (argc=Cannot access memory at address 0x19
) at WebInterface.cpp:333
No locals.

=======================================================================

(gdb) thread apply all bt

Thread 1 (Thread 0xb7a1d6c0 (LWP 5146)):
#0  0x080641a4 in wxStringBase::c_str (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:527
#1  0x080641fb in wxString::operator wchar_t const* (this=0x0)
    at /usr/include/wx-2.8/wx/string.h:832
#2  0x080ba6fd in amule_upload_file_prop_get (ptr=0x81ff370,
    prop_name=0x8212528 "name", result=0xbf9a09f4) at php_amule_lib.cpp:901
#3  0x080b0d38 in php_expr_eval (expr=0x82016c8, result=0xbf9a09f4)
    at php_syntree.cpp:1470
#4  0x080b1002 in php_execute (node=0x81e95f0, result=0x0)
    at php_syntree.cpp:1823
#5  0x080b132b in php_execute (node=0x820ffa0, result=0xbf9a0afc)
    at php_syntree.cpp:1901
#6  0x080c3152 in CPhPLibContext::Execute (this=0x81e4ad8, buf=0xbf9a0b90)
    at php_core_lib.cpp:543
#7  0x080c339a in CPhpFilter (this=0xbf9a0bc3, server=0x8188328,
    sess=0x818228c,
    file=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    buff=0xbf9a0b90) at php_core_lib.cpp:620
#8  0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
    filename=0x81e3990 "/usr/share/amule/webserver/chicane/downloads.php",
    sess=0x818228c, size=@0xbf9a0cf8) at WebServer.cpp:1796
---Type <return> to continue, or q <return> to quit---
#9  0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
    Data=@0xbf9a0db4) at WebServer.cpp:1917
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81ffbc0,
    pHeader=0x8207ddb "HTTP/1.1\r\nHost: hidden.ip.for.security.reasons:4711\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0"...,
    pData=0x0, dwDataLen=0) at WebSocket.cpp:222
#11 0x0808fffa in CWebSocket::OnInput (this=0x81ffbc0) at WebSocket.cpp:115
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
    event=@0x81825b8) at WebServer.cpp:317
#13 0xb7dc80e1 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7e6fb88 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb7e6fce8 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb7e6fe4f in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#17 0xb7e70380 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7dc8a7f in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#19 0x0808cf11 in CamulewebApp::TextShell (this=0x8173440)
---Type <return> to continue, or q <return> to quit---
    at WebInterface.cpp:655
#20 0x0809350d in CaMuleExternalConnector::ConnectAndRun (this=0x8173440,
    ProgName=@0xbf9a1100, ProgVersion=@0xbf9a10fc)
    at ../../../src/ExternalConnector.cpp:413
#21 0x0808c270 in CamulewebApp::OnRun (this=0x8173440) at WebInterface.cpp:360
#22 0xb7e0405a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#23 0xb7e04107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#24 0x0808c356 in main (argc=Cannot access memory at address 0x19
) at WebInterface.cpp:333


I hope this helps.....

Cheers!!
Logged