aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051119 Amulegui crashes on search  (Read 2506 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
20051119 Amulegui crashes on search
« on: November 19, 2005, 02:12:56 PM »

Well, title says it all, hit search and go to start, do not collect your files.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1089727520 (LWP 22802)]
0x0816d9b9 in CECTag::GetTagLen() const (this=0x0) at ECPacket.cpp:579
579             uint32 length = m_dataLen;
(gdb) bt
#0  0x0816d9b9 in CECTag::GetTagLen() const (this=0x0) at ECPacket.cpp:579
#1  0x0816d9fd in CECTag::GetTagLen() const (this=0x82fa998)
    at ECPacket.cpp:581
#2  0x0816d9fd in CECTag::GetTagLen() const (this=0xbfffe6e0)
    at ECPacket.cpp:581
#3  0x08173cf9 in CECPacket::GetPacketLength() const (this=0xbfffe6e0)
    at ECPacket.h:232
#4  0x08172dae in CECSocket::WritePacket(std::pair)
    (this=0x82e1cb0, packet={first = 0xbfffe6e0, second = 0})
    at ECSocket.cpp:1167
#5  0x08171a02 in CECSocket::DoSendPacket() (this=0x82e1cb0)
    at ECSocket.cpp:686
#6  0x0816f0e1 in CECSocketHandler::SocketHandler(wxSocketEvent&) (
    this=0x8281100, event=@0x85a0e40) at ECSocket.cpp:213
#7  0x4021d14d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_gtk2-2.6.so.0
#8  0x402c3604 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_gtk2-2.6.so.0
#9  0x402c2aa9 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#10 0x402c3772 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#11 0x402c3555 in wxEvtHandler::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#12 0x4021d0c6 in wxAppConsole::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#13 0x402ed298 in wxApp::WakeUpIdle() () from /usr/lib/libwx_gtk2-2.6.so.0
#14 0x40d89110 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
#15 0x00000003 in ?? ()
#16 0x4086be5d in poll () from /lib/tls/libc.so.6
Previous frame inner to this frame (corrupt stack?)

(gdb) bt full
#0  0x0816d9b9 in CECTag::GetTagLen() const (this=0x0) at ECPacket.cpp:579
        length = 0
#1  0x0816d9fd in CECTag::GetTagLen() const (this=0x82fa998)
    at ECPacket.cpp:581
        i = 0
        length = 2166720
#2  0x0816d9fd in CECTag::GetTagLen() const (this=0xbfffe6e0)
    at ECPacket.cpp:581
        i = 0
        length = 1086430784
#3  0x08173cf9 in CECPacket::GetPacketLength() const (this=0xbfffe6e0)
    at ECPacket.h:232
No locals.
#4  0x08172dae in CECSocket::WritePacket(std::pair)
    (this=0x82e1cb0, packet={first = 0xbfffe6e0, second = 0})
    at ECSocket.cpp:1167
        flags = 32
#5  0x08171a02 in CECSocket::DoSendPacket() (this=0x82e1cb0)
    at ECSocket.cpp:686
        this_packet = {first = 0xbfffe6e0, second = 0}
#6  0x0816f0e1 in CECSocketHandler::SocketHandler(wxSocketEvent&) (
    this=0x8281100, event=@0x85a0e40) at ECSocket.cpp:213
        socket = (CECSocket *) 0x82e1cb0
#7  0x4021d14d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#8  0x402c3604 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#9  0x402c2aa9 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#10 0x402c3772 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#11 0x402c3555 in wxEvtHandler::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#12 0x4021d0c6 in wxAppConsole::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#13 0x402ed298 in wxApp::WakeUpIdle() () from /usr/lib/libwx_gtk2-2.6.so.0
No symbol table info available.
#14 0x40d89110 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0x00000003 in ?? ()
No symbol table info available.
#16 0x4086be5d in poll () from /lib/tls/libc.so.6
No symbol table info available.

(gdb) thread apply all bt

Thread 1 (Thread 1089727520 (LWP 22802)):
#0  0x0816d9b9 in CECTag::GetTagLen() const (this=0x0) at ECPacket.cpp:579
#1  0x0816d9fd in CECTag::GetTagLen() const (this=0x82fa998)
    at ECPacket.cpp:581
#2  0x0816d9fd in CECTag::GetTagLen() const (this=0xbfffe6e0)
    at ECPacket.cpp:581
#3  0x08173cf9 in CECPacket::GetPacketLength() const (this=0xbfffe6e0)
    at ECPacket.h:232
#4  0x08172dae in CECSocket::WritePacket(std::pair)
    (this=0x82e1cb0, packet={first = 0xbfffe6e0, second = 0})
    at ECSocket.cpp:1167
#5  0x08171a02 in CECSocket::DoSendPacket() (this=0x82e1cb0)
    at ECSocket.cpp:686
#6  0x0816f0e1 in CECSocketHandler::SocketHandler(wxSocketEvent&) (
    this=0x8281100, event=@0x85a0e40) at ECSocket.cpp:213
#7  0x4021d14d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_gtk2-2.6.so.0
#8  0x402c3604 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_gtk2-2.6.so.0
#9  0x402c2aa9 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#10 0x402c3772 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#11 0x402c3555 in wxEvtHandler::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#12 0x4021d0c6 in wxAppConsole::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk2-2.6.so.0
#13 0x402ed298 in wxApp::WakeUpIdle() () from /usr/lib/libwx_gtk2-2.6.so.0
#14 0x40d89110 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
#15 0x00000003 in ?? ()
#16 0x4086be5d in poll () from /lib/tls/libc.so.6

Amuled seems unaffected by this, also search via webserver is no problem. Haven't tried the monolith yet, but will soon.

(PS. Can somebody please take a look at flushing the daemon logs when it is running detached, please, please, please?)
Logged
A waste is a terrible thing to mind.

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 20051119 Amulegui crashes on search
« Reply #1 on: November 19, 2005, 02:59:09 PM »

easy one
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: 20051119 Amulegui crashes on search
« Reply #2 on: November 20, 2005, 01:40:54 PM »

Fixed.
Logged
concordia cum veritate

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: 20051119 Amulegui crashes on search
« Reply #3 on: November 20, 2005, 01:58:50 PM »

Yea, it's been a while since we get a NULL pointer in aMule code... Recent backtraces only show memory corruption. :(
Logged