aMule Forum
English => Backtraces => Topic started by: GrayFox.i0n on June 19, 2008, 01:28:10 PM
-
Coming from thread http://forum.amule.org/index.php?topic=15286.0
I think i finally know how to generate backtraces... check this out:
(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 0xb7a8f6c0 (LWP 4743)]
PHP Warning: Default parameters are not implemented yet
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7a8f6c0 (LWP 4743)]
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; }
============================ bt:
(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=0x81b03e8,
prop_name=0x81bd1f8 "name", result=0xbff07764) at php_amule_lib.cpp:901
#3 0x080b0d38 in php_expr_eval (expr=0x81be1d8, result=0xbff07764)
at php_syntree.cpp:1470
#4 0x080b1002 in php_execute (node=0x81e5898, result=0x0)
at php_syntree.cpp:1823
#5 0x080b132b in php_execute (node=0x81e6228, result=0xbff0786c)
at php_syntree.cpp:1901
#6 0x080c3152 in CPhPLibContext::Execute (this=0x81bb1a8, buf=0xbff07900)
at php_core_lib.cpp:543
#7 0x080c339a in CPhpFilter (this=0xbff07933, server=0x8188328,
sess=0x818212c,
file=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
buff=0xbff07900) at php_core_lib.cpp:620
#8 0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
filename=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
sess=0x818212c, size=@0xbff07a68) at WebServer.cpp:1796
#9 0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
Data=@0xbff07b24) at WebServer.cpp:1917
---Type <return> to continue, or q <return> to quit---
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81d6640,
pHeader=0x81b840c "HTTP/1.1\r\nHost: hided.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=0x81d6640) at WebSocket.cpp:115
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
event=@0x81d25e8) at WebServer.cpp:317
#13 0xb7e3a0e1 in wxAppConsole::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7ee1b88 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb7ee1ce8 in wxEventHashTable::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb7ee1e4f in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#17 0xb7ee2380 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7e3aa7f 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=@0xbff07e70, ProgVersion=@0xbff07e6c)
at ../../../src/ExternalConnector.cpp:413
#21 0x0808c270 in CamulewebApp::OnRun (this=0x8173440) at WebInterface.cpp:360
#22 0xb7e7605a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#23 0xb7e76107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#24 0x0808c356 in main (argc=Cannot access memory at address 0x0
) at WebInterface.cpp:333
============================ bt full:
(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=0x81b03e8,
prop_name=0x81bd1f8 "name", result=0xbff07764) at php_amule_lib.cpp:901
sharedfile = (SharedFile *) 0x0
obj = (UploadFile *) 0x81b03e8
#3 0x080b0d38 in php_expr_eval (expr=0x81be1d8, result=0xbff07764)
at php_syntree.cpp:1470
result_val_right = {type = PHP_VAL_NONE, {
int_val = 13830687496696769823, float_val = -1.0295410456045102,
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 = 0xbff07900 "\230æ\033\bØ¥\034\b"}}}
result_val_left = {type = PHP_VAL_NONE, {int_val = 584355400545733668,
float_val = 1.32726268902882e-269, str_val = 0x81c0c24 "0",
ptr_val = 0x81c0c24, obj_val = {inst_ptr = 0x81c0c24,
class_name = 0x81c0c24 "0"}}}
lval_node = (PHP_VAR_NODE *) 0x81aee98
si = (PHP_SCOPE_ITEM *) 0x81bd368
---Type <return> to continue, or q <return> to quit---
#4 0x080b1002 in php_execute (node=0x81e5898, result=0x0)
at php_syntree.cpp:1823
curr = (PHP_EXP_NODE *) 0x81be1f8
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=0x81e6228, result=0xbff0786c)
at php_syntree.cpp:1901
curr_value = (PHP_VALUE_NODE *) 0x81c0ab8
elems = (PHP_VAR_NODE *) 0x81c1610
array = (._146 *) 0x81b53f8
i_key = (PHP_SCOPE_ITEM *) 0x0
i_val = (PHP_SCOPE_ITEM *) 0x81be688
cond_result = {type = PHP_VAL_NONE, {int_val = 584252200935489536,
float_val = 1.3099125819695508e-269, str_val = 0x0, ptr_val = 0x0,
obj_val = {inst_ptr = 0x0, class_name = 0x81bae48 ""}}}
curr_exec_result = 0
#6 0x080c3152 in CPhPLibContext::Execute (this=0x81bb1a8, buf=0xbff07900)
at php_core_lib.cpp:543
val = {type = 136129096, {int_val = 136129032,
float_val = 6.7256678112823718e-316, str_val = 0x81d2a08 "\001",
ptr_val = 0x81d2a08, obj_val = {inst_ptr = 0x81d2a08, class_name = 0x0}}}
---Type <return> to continue, or q <return> to quit---
#7 0x080c339a in CPhpFilter (this=0xbff07933, server=0x8188328,
sess=0x818212c,
file=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
buff=0xbff07900) at php_core_lib.cpp:620
No locals.
#8 0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
filename=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
sess=0x818212c, size=@0xbff07a68) at WebServer.cpp:1796
f = (FILE *) 0x81bb040
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 = 0x81be698,
_M_prev = 0x81ca5d8}}}, <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 = 10018, m_alloc_size = 1024,
m_curr_buf = 0x81bb510 "</a></td>\n <td valign=middle class=\"down-header\"><b>Sources</b></td>\n <td valign=middle class=\"down-header\"><a href=\"downloads.php?sort=prio\"><b>Priority</b></a></td>\n <td valign=middle class=\"down-he"...---Type <return> to continue, or q <return> to quit---
, m_buf_ptr = 0x81bb832 "", m_curr_buf_left = 222}
buf = 0x81c1634 "/"
#9 0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
Data=@0xbff07b24) at WebServer.cpp:1917
lock = {m_isOk = true, m_mutex = @0x8188354}
httpOutLen = -1074759048
httpOut = 0x0
filename = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0x81d960c}, <No data fields>}
session = (CSession *) 0x818212c
req_file = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0x81c1634}, <No data fields>}
isUseGzip = 13
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81d6640,
pHeader=0x81b840c "HTTP/1.1\r\nHost: hided.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 = 0x81d31ac}, <No data fields>}
is_post = false
path = 0x81b83cc "/downloads.php?cmd=cancel&file=C2070DB80B6CB8D26883EDFCD39BAAF6"
---Type <return> to continue, or q <return> to quit---
sURL = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0x81c0d84}, <No data fields>}
sessid = 1804289383
current_cookie = 0x81b85d1 "amuleweb_session_id=1804289383\r\n\r\n"
Data = {parsedURL = {m_path = {<wxStringBase> = {
static npos = 4294967295, m_pchData = 0xb7f03b98}, <No data fields>},
m_file = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0x81de47c}, <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 = 0x81d7118, _M_left = 0x81d7118,
_M_right = 0x819a138},
_M_node_count = 2}}}, <__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,
---Type <return> to continue, or q <return> to quit---
m_pchData = 0x81c0d84}, <No data fields>}, SessionID = 1804289383,
pSocket = 0x81d6640}
sFile = {<wxStringBase> = {static npos = 4294967295,
m_pchData = 0x81de47c}, <No data fields>}
#11 0x0808fffa in CWebSocket::OnInput (this=0x81d6640) at WebSocket.cpp:115
No locals.
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
event=@0x81d25e8) at WebServer.cpp:317
socket = (CWebSocket *) 0x81d6640
#13 0xb7e3a0e1 in wxAppConsole::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#14 0xb7ee1b88 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#15 0xb7ee1ce8 in wxEventHashTable::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#16 0xb7ee1e4f in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#17 0xb7ee2380 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#18 0xb7e3aa7f in wxAppConsole::ProcessPendingEvents ()
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=@0xbff07e70, ProgVersion=@0xbff07e6c)
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 0xb7e7605a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#23 0xb7e76107 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 0x0
) at WebInterface.cpp:333
No locals.
============================ thread apply all bt:
(gdb) thread apply all bt
Thread 1 (Thread 0xb7a8f6c0 (LWP 4743)):
#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=0x81b03e8,
prop_name=0x81bd1f8 "name", result=0xbff07764) at php_amule_lib.cpp:901
#3 0x080b0d38 in php_expr_eval (expr=0x81be1d8, result=0xbff07764)
at php_syntree.cpp:1470
#4 0x080b1002 in php_execute (node=0x81e5898, result=0x0)
at php_syntree.cpp:1823
#5 0x080b132b in php_execute (node=0x81e6228, result=0xbff0786c)
at php_syntree.cpp:1901
#6 0x080c3152 in CPhPLibContext::Execute (this=0x81bb1a8, buf=0xbff07900)
at php_core_lib.cpp:543
#7 0x080c339a in CPhpFilter (this=0xbff07933, server=0x8188328,
sess=0x818212c,
file=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
buff=0xbff07900) at php_core_lib.cpp:620
#8 0x0805726b in CScriptWebServer::ProcessPhpRequest (this=0x8188328,
filename=0x81cb408 "/usr/share/amule/webserver/chicane/downloads.php",
sess=0x818212c, size=@0xbff07a68) at WebServer.cpp:1796
---Type <return> to continue, or q <return> to quit---
#9 0x0805db12 in CScriptWebServer::ProcessURL (this=0x8188328,
Data=@0xbff07b24) at WebServer.cpp:1917
#10 0x0808fa14 in CWebSocket::OnRequestReceived (this=0x81d6640,
pHeader=0x81b840c "HTTP/1.1\r\nHost: hided.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=0x81d6640) at WebSocket.cpp:115
#12 0x0805fae7 in CWebServerBase::OnWebSocketEvent (this=0x8188328,
event=@0x81d25e8) at WebServer.cpp:317
#13 0xb7e3a0e1 in wxAppConsole::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7ee1b88 in wxEvtHandler::ProcessEventIfMatches ()
from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb7ee1ce8 in wxEventHashTable::HandleEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb7ee1e4f in wxEvtHandler::ProcessEvent ()
from /usr/lib/libwx_baseu-2.8.so.0
#17 0xb7ee2380 in wxEvtHandler::ProcessPendingEvents ()
from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7e3aa7f 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=@0xbff07e70, ProgVersion=@0xbff07e6c)
at ../../../src/ExternalConnector.cpp:413
#21 0x0808c270 in CamulewebApp::OnRun (this=0x8173440) at WebInterface.cpp:360
#22 0xb7e7605a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#23 0xb7e76107 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#24 0x0808c356 in main (argc=Cannot access memory at address 0x0
) at WebInterface.cpp:333
aMule version: 2.2.1 original, not CVS...... bug, as i said, already existed in the previous CVS before 2.2.x was released.
I will compile new CVS from next week on and try to catch more bugs
I hope this helps!!!!!
-
I was downloading the last OpenSuSe iso and suddenly i decided to cancel the download.
That was the only download in my queue, and something like 10 people was uploading from me that same file.
Suddenly i decided to cancel the download ;) and ... guess what?: Amuleweb crashed again...
This time i didnt do it intentionally, i was not looking for a crash (actually i didnt expected it to crash), and it actually did.
Sorry, no backtrace :(, but i can intentionally cause the crash anytime i think....
If you think would be any useful, i will make it happen and report the backtrace.....
Cheers!!
-
Thanks for your reports, they are much appreciated!
Does this only happen when someone is downloading from you or does this happen every time you cancel a download?
Cheers!
-
Only happens when that file is in use: I.E.: when im sharing it and someone is uploading from it........... while i delete it...
-
Only happens when that file is in use: I.E.: when im sharing it and someone is uploading from it........... while i delete it...
Oh ... that may explain the problem. I see fix already committed.
-
The fix is not still commited, is it?
I tryed it with today's cvs and still crashes when deleting a file on queue being uploaded in the same time...