aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: crashed while watching downloads via webserver  (Read 1847 times)

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
crashed while watching downloads via webserver
« on: January 19, 2005, 09:21:29 PM »

Amule-cvs.20050117 running on Debian Sid for two days, crashed when I added a download (via VNC) and then wanted to take a look at the transfers tab on the webinterface (to give somebody else the link). This seems reproducable, at least it has already happened before to me...

Code: [Select]
[New Thread 1150286768 (LWP 4109)]
[Thread 1150286768 (zombie) exited]
CPartFile::CPartFile(CSearchFile*): ignored tag 0x15=207
CPartFile::CPartFile(CSearchFile*): ignored tag 0x30=165
CPartFile::CPartFile(CSearchFile*): ignored tag 0xD4=128
CPartFile::CPartFile(CSearchFile*): ignored tag 0xD5="div3"
CPartFile::CPartFile(CSearchFile*): ignored tag 0xD3=1807

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1087491872 (LWP 11304)]
0x081c20ca in CList::GetCount (this=0x134)
    at CTypedPtrList.h:97
97                      return count;
(gdb)

Code: [Select]
(gdb) bt
#0  0x081c20ca in CList::GetCount (this=0x134)
    at CTypedPtrList.h:97
#1  0x081bdbf7 in CPartFile_Encoder::Encode (this=0x862a724, parent=0xbffff330)
    at ExternalConn.cpp:1246
#2  0x081b838b in Get_EC_Response_GetDownloadQueue (request=0x9add8a8,
    encoders=@0x8c1bcec) at ExternalConn.cpp:401
#3  0x081bedf6 in ExternalConn::ProcessRequest2 (this=0x8993e80,
    request=0x9add8a8, enc_map=@0x8c1bcec) at ExternalConn.cpp:1417
#4  0x081b6541 in ExternalConn::OnSocketEvent (this=0x8993e80,
    event=@0x93041e0) at ExternalConn.cpp:186
#5  0x405e1148 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_base-2.5.so.3
#6  0x4068b140 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_base-2.5.so.3
#7  0x4068a59f in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_base-2.5.so.3
#8  0x4068b2e0 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_base-2.5.so.3
#9  0x4068b06c in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.5.so.3
#10 0x405e10b6 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.5.so.3
#11 0x402d08ea in wxapp_pending_callback ()
   from /usr/lib/libwx_gtk_core-2.5.so.3
#12 0x409cdfa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#13 0x409cd03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#14 0x409cd4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x409cd724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#16 0x408d925f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#17 0x402e9f18 in wxEventLoop::Run () from /usr/lib/libwx_gtk_core-2.5.so.3
#18 0x4037a4c3 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk_core-2.5.so.3
#19 0x4037a62a in wxAppBase::OnRun () from /usr/lib/libwx_gtk_core-2.5.so.3
#20 0x40624bb3 in wxEntry () from /usr/lib/libwx_base-2.5.so.3
#21 0x082d22b8 in main (argc=1, argv=0xbffffab4) at amule-gui.cpp:161
(gdb)

Code: [Select]
(gdb) bt full
#0  0x081c20ca in CList::GetCount (this=0x134)
    at CTypedPtrList.h:97
No locals.
#1  0x081bdbf7 in CPartFile_Encoder::Encode (this=0x862a724, parent=0xbffff330)
    at ExternalConn.cpp:1246
        gap_list_size = 136057899
        curr_pos = {m_ptr = 0xbffff298}
        gap_buff_ptr = (uint32 *) 0x0
        gap_enc_size = 140683024
        gap_enc_data = (const unsigned char *) 0x1

        part_enc_size = 26
        part_enc_data = (const unsigned char *) 0x96dc480 "ØT°\tŸá\210\003\023"
        tagdata = (unsigned char *) 0x0
        etag = (class CECTag *) 0x2
#2  0x081b838b in Get_EC_Response_GetDownloadQueue (request=0x9add8a8,
    encoders=@0x8c1bcec) at ExternalConn.cpp:401
        cur_file = (class CPartFile *) 0x9f2ddd0
        filetag = { = {m_error = 0, m_tagData = 0x94a8cf8,
    m_tagName = 19, m_tagCount = 6, m_dataLen = 16, m_dynamic = true,
    m_listSize = 16, m_tagList = 0x9c09498}, }
        enc = (CPartFile_Encoder &) @0x862a724: {m_enc_data = {
    m_part_status = {m_buff = 0x9b054f0 "h&Í@h&Í@",
      m_enc_buff = 0x9b05500 "h&Í@h&Í@", m_use_diff = false, m_len = 0,
      m_enc_len = 0}, m_gap_status = {m_buff = 0x9b05510 "h&Í@h&Í@PÓ5õ\021",
      m_enc_buff = 0x9b05520 "h&Í@h&Í@°è+\2001", m_use_diff = false,
      m_len = 0, m_enc_len = 0}}, static m_gap_buffer = 0x85c5dd0,
  static m_gap_buffer_size = 128, m_file = 0x0}
        i = 2
        response = (class CECPacket *) 0x9ebd868
        detail_level = EC_DETAIL_UPDATE
        queryitems = {
  _M_t = { >> = {, true>> = {
        _M_header = 0x8d599d0}, }, _M_node_count = 0,
---Type to continue, or q to quit---
    _M_key_compare = {> = {}, }}}
#3  0x081bedf6 in ExternalConn::ProcessRequest2 (this=0x8993e80,
    request=0x9add8a8, enc_map=@0x8c1bcec) at ExternalConn.cpp:1417
        response = (class CECPacket *) 0x0
#4  0x081b6541 in ExternalConn::OnSocketEvent (this=0x8993e80,
    event=@0x93041e0) at ExternalConn.cpp:186
        sock = (struct wxSocketBase *) 0x8b12740
        request = (class CECPacket *) 0x9add8a8
        response = (class CECPacket *) 0x0
#5  0x405e1148 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#6  0x4068b140 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#7  0x4068a59f in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#8  0x4068b2e0 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#9  0x4068b06c in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#10 0x405e10b6 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#11 0x402d08ea in wxapp_pending_callback ()
   from /usr/lib/libwx_gtk_core-2.5.so.3
No symbol table info available.
#12 0x409cdfa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#13 0x409cd03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
---Type to continue, or q to quit---
No symbol table info available.
#14 0x409cd4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x409cd724 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x408d925f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#17 0x402e9f18 in wxEventLoop::Run () from /usr/lib/libwx_gtk_core-2.5.so.3
No symbol table info available.
#18 0x4037a4c3 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk_core-2.5.so.3
No symbol table info available.
#19 0x4037a62a in wxAppBase::OnRun () from /usr/lib/libwx_gtk_core-2.5.so.3
No symbol table info available.
#20 0x40624bb3 in wxEntry () from /usr/lib/libwx_base-2.5.so.3
No symbol table info available.
#21 0x082d22b8 in main (argc=1, argv=0xbffffab4) at amule-gui.cpp:161
No locals.
(gdb)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

lfroen

  • Guest
Re: crashed while watching downloads via webserver
« Reply #1 on: January 20, 2005, 07:52:43 AM »

Quote
This seems reproducable

So please, tell me how to reprodce it :)

Quote
#0  0x081c20ca in CList::GetCount (this=0x134)
    at CTypedPtrList.h:97

Code coming from:

Code: [Select]
int gap_list_size = m_file->gaplist.GetCount();
this=0x134 - memory corruption ? Or file has been deleted/not-yet-initialized ?
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: crashed while watching downloads via webserver
« Reply #2 on: January 20, 2005, 10:19:13 PM »

Start a new download via GUI, then take a look at the transfer tab in the webserver - crash. At least this works for me... :))
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.