aMule Forum

English => Backtraces => Topic started by: Mr Faber on April 20, 2005, 08:45:19 PM

Title: amuled CVS 20050419
Post by: Mr Faber on April 20, 2005, 08:45:19 PM
Amuled CVS 20050419 crashes without any user interaction. I use wxWidgets 2.5.5 with unicode support.

Code: [Select]
(gdb) bt
#0  0x00002aaaab63ac49 in raise () from /lib/libc.so.6
#1  0x00002aaaab63c14e in abort () from /lib/libc.so.6
#2  0x00002aaaab673b84 in malloc_usable_size () from /lib/libc.so.6
#3  0x00002aaaab674646 in free () from /lib/libc.so.6
#4  0x00002aaaaaf69aa5 in GAddress_destroy (address=0x2aaaae3d6730)
    at ./src/unix/gsocket.cpp:1588
#5  0x00002aaaaaf6a26b in GSocket::SetPeer(_GAddress*) (this=0x162e750,
    address=0x2aaaaeb97ea0) at ./src/unix/gsocket.cpp:384
#6  0x00002aaaaaf66d29 in wxDatagramSocket::SendTo(wxSockAddress&, void const*, unsigned) (this=0x162e510, addr=@0x909, buf=0x2aaaae5e4f40, nBytes=17)
    at sckaddr.h:41
#7  0x00000000004b35a3 in CDatagramSocketProxy::SendTo(wxIPaddress&, void const*, unsigned) (this=0x162e510, addr=@0x427fdbc0, buf=0x2aaaae5e4f40, nBytes=17)
    at Proxy.cpp:1412
#8  0x000000000043825d in CClientUDPSocket::SendTo(char*, int, unsigned, unsigned short) (this=0x162e510, lpBuf=0x2aaaae5e4f40 "Å\221V", nBufLen=17,
    dwIP=3960420436, nPort=22) at ClientUDPSocket.cpp:271
#9  0x0000000000438442 in CClientUDPSocket::SendPacket(CPacket*, unsigned, unsigned short) (this=0x162e510, packet=0x2aaaaeb871f0, dwIP=3960420436, nPort=22)
    at ClientUDPSocket.cpp:305
#10 0x000000000043870d in CClientUDPSocket::ProcessPacket(char*, unsigned short, unsigned char, unsigned, unsigned short) (this=0x427fdc80,
    packet=0x2aaaaeb871f0 "\017", size=15, opcode=255 'ÿ', host=3960420436,
    port=22) at ClientUDPSocket.cpp:181
#11 0x0000000000438ba1 in CClientUDPSocket::OnReceive(int) (this=0x162e510)
    at ClientUDPSocket.cpp:101
#12 0x000000000043831f in CClientUDPSocket::Entry() (this=0x162e510)
    at ClientUDPSocket.cpp:322
#13 0x00002aaaaadbafac in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0x162e6f0) at ./src/unix/threadpsx.cpp:763
#14 0x00002aaaaabc70b1 in start_thread () from /lib/libpthread.so.0
#15 0x00002aaaab6c2263 in clone () from /lib/libc.so.6
(gdb) bt full
#0  0x00002aaaab63ac49 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaab63c14e in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00002aaaab673b84 in malloc_usable_size () from /lib/libc.so.6
No symbol table info available.
#3  0x00002aaaab674646 in free () from /lib/libc.so.6
No symbol table info available.
#4  0x00002aaaaaf69aa5 in GAddress_destroy (address=0x2aaaae3d6730)
    at ./src/unix/gsocket.cpp:1588
__PRETTY_FUNCTION__ = "void GAddress_destroy(GAddress*)"
#5  0x00002aaaaaf6a26b in GSocket::SetPeer(_GAddress*) (this=0x162e750,
    address=0x2aaaaeb97ea0) at ./src/unix/gsocket.cpp:384
__PRETTY_FUNCTION__ = "GSocketError GSocket::SetPeer(GAddress*)"
#6  0x00002aaaaaf66d29 in wxDatagramSocket::SendTo(wxSockAddress&, void const*, unsigned) (this=0x162e510, addr=@0x909, buf=0x2aaaae5e4f40, nBytes=17)
    at sckaddr.h:41
No locals.
#7  0x00000000004b35a3 in CDatagramSocketProxy::SendTo(wxIPaddress&, void const*, unsigned) (this=0x162e510, addr=@0x427fdbc0, buf=0x2aaaae5e4f40, nBytes=17)
    at Proxy.cpp:1412
No locals.
#8  0x000000000043825d in CClientUDPSocket::SendTo(char*, int, unsigned, unsigned short) (this=0x162e510, lpBuf=0x2aaaae5e4f40 "Å\221V", nBufLen=17,
    dwIP=3960420436, nPort=22) at ClientUDPSocket.cpp:271
addr = { = { = { = { = {_vptr.wxObject = 0x521910, static ms_classInfo = {
            m_className = 0x2aaaaade8900, m_objectSize = 16,
            m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
            static sm_first = 0x0, m_next = 0x2aaaaaf42120,
            static sm_classTable = 0x8e7010}, m_refData = 0x0},
        static ms_classInfo = {m_className = 0x2aaaaaf6cf50,
          m_objectSize = 24, m_objectConstructor = 0,
          m_baseInfo1 = 0x2aaaaaf420e0, m_baseInfo2 = 0x0,
          static sm_first = 0x0, m_next = 0x2aaaab076a00,
          static sm_classTable = 0x8e7010}, m_address = 0x2aaaaeb97ea0},
      static ms_classInfo = {m_className = 0x2aaaaaf6cf88, m_objectSize = 24,
        m_objectConstructor = 0, m_baseInfo1 = 0x2aaaab076980,
        m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0x2aaaab076980,
        static sm_classTable = 0x8e7010}}, static ms_classInfo = {
      m_className = 0x2aaaaaf6cfb8, m_objectSize = 32,
      m_objectConstructor = 0x2aaaaaf616b0 ,
      m_baseInfo1 = 0x2aaaab076940, m_baseInfo2 = 0x0, static sm_first = 0x0,
      m_next = 0x2aaaab076940, static sm_classTable = 0x8e7010},
    m_origHostname = { = {static npos = 18446744073709551615,
        m_pchData = 0x2aaaaadead18}, }}, }
#9  0x0000000000438442 in CClientUDPSocket::SendPacket(CPacket*, unsigned, unsigned short) (this=0x162e510, packet=0x2aaaaeb871f0, dwIP=3960420436, nPort=22)
    at ClientUDPSocket.cpp:305
newpending = (UDPPack *) 0x2aaaae595a00
sendbuffer = 0x2aaaae5e4f40 "Å\221V"
#10 0x000000000043870d in CClientUDPSocket::ProcessPacket(char*, unsigned short, unsigned char, unsigned, unsigned short) (this=0x427fdc80,
    packet=0x2aaaaeb871f0 "\017", size=15, opcode=255 'ÿ', host=3960420436,
    port=22) at ClientUDPSocket.cpp:181
data_out = { = { = {_vptr.CFile = 0x54ded0,
      m_fd = -1, m_error = false, fFilePath = { = {
          static npos = 18446744073709551615,
          m_pchData = 0x2aaaaadead18}, }}, m_GrowBytes = 128,
    m_position = 0, m_BufferSize = 0, m_FileSize = 0, m_delete = false,
    m_buffer = 0x0}, = {
    _vptr.CFileDataIO = 0x54dfe8}, }
data_in = { = { = {_vptr.CFile = 0x54ded0, m_fd = -1,
      m_error = false, fFilePath = { = {
          static npos = 18446744073709551615,
          m_pchData = 0x2aaaaadead18}, }}, m_GrowBytes = 0,
    m_position = 31, m_BufferSize = 31, m_FileSize = 31, m_delete = false,
    m_buffer = 0x427fddb2 "\213n\001\021\024Ê\vÓ\221œ/ÿ_2"}, = {
    _vptr.CFileDataIO = 0x54dfe8}, }
reqfilehash = "\213n\001\021\024Ê\vÓ\221œ/ÿ_2\000æ"
reqfile = (class CKnownFile *) 0x1c6a560
sender = (CUpDownClient *) 0x1633cf0
#11 0x0000000000438ba1 in CClientUDPSocket::OnReceive(int) (this=0x162e510)
    at ClientUDPSocket.cpp:101
buffer = "Å\220\213n\001\021\024Ê\vÓ\221œ/ÿ_2\000æV\000\021\200A\000\000@\200\000À*01\000\001\026", '\0' , "_f«ªª*\000\000\000\000\000\000\000\000\000\000P+\203«ª*\000\000\230)@\000\000\000\000\000²!«ªª*", '\0' , "u\032i\t\002", '\0' , "ºLŒªª*\000\000è;Œªª*\000\000š\036Œªª*\000\000\v\000\000\000\000\000\000\000 '\203«ª*\000\000P+\203«ª*\000\000\200î\177B\000\000\000\000\000\225ôªª*\000\000Š\213\a\000\000\000\000\000õ\017õªª*\000\000\000\000\000\000\000\000\000\000HCôª"...
addr = { = { = { = { = {_vptr.wxObject = 0x521910, static ms_classInfo = {
            m_className = 0x2aaaaade8900, m_objectSize = 16,
            m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
            static sm_first = 0x0, m_next = 0x2aaaaaf42120,
            static sm_classTable = 0x8e7010}, m_refData = 0x0},
        static ms_classInfo = {m_className = 0x2aaaaaf6cf50,
          m_objectSize = 24, m_objectConstructor = 0,
          m_baseInfo1 = 0x2aaaaaf420e0, m_baseInfo2 = 0x0,
          static sm_first = 0x0, m_next = 0x2aaaab076a00,
          static sm_classTable = 0x8e7010}, m_address = 0x2aaaae717110},
      static ms_classInfo = {m_className = 0x2aaaaaf6cf88, m_objectSize = 24,
        m_objectConstructor = 0, m_baseInfo1 = 0x2aaaab076980,
        m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0x2aaaab076980,
        static sm_classTable = 0x8e7010}}, static ms_classInfo = {
      m_className = 0x2aaaaaf6cfb8, m_objectSize = 32,
      m_objectConstructor = 0x2aaaaaf616b0 ,
      m_baseInfo1 = 0x2aaaab076940, m_baseInfo2 = 0x0, static sm_first = 0x0,
      m_next = 0x2aaaab076940, static sm_classTable = 0x8e7010},
    m_origHostname = { = {static npos = 18446744073709551615,
        m_pchData = 0x2aaaaadead18}, }}, }
length = 33
#12 0x000000000043831f in CClientUDPSocket::Entry() (this=0x162e510)
    at ClientUDPSocket.cpp:322
No locals.
#13 0x00002aaaaadbafac in wxThreadInternal::PthreadStart(wxThread*) (
    thread=0x162e6f0) at ./src/unix/threadpsx.cpp:763
pthread = (wxThreadInternal *) 0x162e8c0
rc = 0
dontRunAtAll = false
#14 0x00002aaaaabc70b1 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#15 0x00002aaaab6c2263 in clone () from /lib/libc.so.6
No symbol table info available.

cu
Mr Faber
Title: Re: amuled CVS 20050419
Post by: lfroen on April 21, 2005, 05:23:42 AM
There's some known bug in udp socket for daemon (someone please correct me what is it exactly about). So if it's crashing on you here - disable UDP. In addition Xaignar is testing additional fix for udp thread.
Title: Re: amuled CVS 20050419
Post by: Xaignar on April 21, 2005, 02:05:47 PM
I only got to run amuled for around an hour yesterday, but the fix seemed to work without problems. I'm heading out now, but I'll let amuled run in the mean time and see if it keeps going.