aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: free(): invalid pointer  (Read 2226 times)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
free(): invalid pointer
« on: June 19, 2005, 11:57:37 AM »

I've been consistently having this crash on CVS code. Unfortunately, I could not figure why this is happening.

Code: [Select]
Error in CClientUDPSocket: 2
*** glibc detected *** free(): invalid pointer: 0x009baa03 ***

[2]+  Abandon                 (core dumped) LANG=en_US.UTF-8 LD_LIBRARY_PATH=/usr/local/wxWidgets-cvsu/lib/ verb-cvsu/src/amule
(gdb) bt
#0  0x001a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x001e17d5 in raise () from /lib/tls/libc.so.6
#2  0x001e3149 in abort () from /lib/tls/libc.so.6
#3  0x0021527a in __libc_message () from /lib/tls/libc.so.6
#4  0x0021babf in _int_free () from /lib/tls/libc.so.6
#5  0x0021be3a in free () from /lib/tls/libc.so.6
#6  0xb7a465f9 in GAddress_destroy (address=0xb4e00510) at ./src/unix/gsocket.cpp:1592
#7  0xb7a3a39c in ~wxSockAddress (this=0xb75671a0) at ./src/common/sckaddr.cpp:84
#8  0xb7a3a6ac in ~wxIPaddress (this=0xb75671a0) at ./src/common/sckaddr.cpp:120
#9  0xb7a3a8c8 in ~wxIPV4address (this=0xb75671a0) at ./src/common/sckaddr.cpp:138
#10 0x08082116 in ~amuleIPV4Address (this=0xb75671a0) at ServerUDPSocket.cpp:63
#11 0x080cd2c9 in CClientUDPSocket::SendTo (this=0x9201dc0, lpBuf=0xb4e004a0 "Å\220ë4î51\231á(x\230\237\005Ä&\2309L",
    nBufLen=32, dwIP=1616490324, nPort=4672) at ClientUDPSocket.cpp:337
#12 0x080cd05e in CClientUDPSocket::SendControlData (this=0x9201dc0, maxNumberOfBytesToSend=22)
    at ClientUDPSocket.cpp:288
#13 0x0825a148 in UploadBandwidthThrottler::Entry (this=0x91794b8) at UploadBandwidthThrottler.cpp:453
#14 0xb7986f09 in wxThreadInternal::PthreadStart (thread=0x91794b8) at ./src/unix/threadpsx.cpp:763
#15 0xb7986dc2 in wxPthreadStart (ptr=0x91794b8) at ./src/unix/threadpsx.cpp:715
#16 0x00401341 in start_thread () from /lib/tls/libpthread.so.0
#17 0x00280fee in clone () from /lib/tls/libc.so.6
(gdb) bt full
#0  0x001a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x001e17d5 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x001e3149 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x0021527a in __libc_message () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x0021babf in _int_free () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x0021be3a in free () from /lib/tls/libc.so.6
No symbol table info available.
#6  0xb7a465f9 in GAddress_destroy (address=0xb4e00510) at ./src/unix/gsocket.cpp:1592
        __PRETTY_FUNCTION__ = "void GAddress_destroy(GAddress*)"
#7  0xb7a3a39c in ~wxSockAddress (this=0xb75671a0) at ./src/common/sckaddr.cpp:84
No locals.
#8  0xb7a3a6ac in ~wxIPaddress (this=0xb75671a0) at ./src/common/sckaddr.cpp:120
No locals.
#9  0xb7a3a8c8 in ~wxIPV4address (this=0xb75671a0) at ./src/common/sckaddr.cpp:138
No locals.
#10 0x08082116 in ~amuleIPV4Address (this=0xb75671a0) at ServerUDPSocket.cpp:63
No locals.
#11 0x080cd2c9 in CClientUDPSocket::SendTo (this=0x9201dc0, lpBuf=0xb4e004a0 "Å\220ë4î51\231á(x\230\237\005Ä&\2309L",
    nBufLen=32, dwIP=1616490324, nPort=4672) at ClientUDPSocket.cpp:337
        error = 2
        addr = { = { = { = { = {_vptr.wxObject = 0xb7a533a8,
          static ms_classInfo = {m_className = 0xb79bb458, m_objectSize = 8, m_objectConstructor = 0,
            m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0xb7a1b9ac,
            static sm_classTable = 0x8646008}, m_refData = 0x0}, static ms_classInfo = {m_className = 0xb7a48eb0,
          m_objectSize = 12, m_objectConstructor = 0, m_baseInfo1 = 0xb7a1b970, m_baseInfo2 = 0x0,
          static sm_first = 0x0, m_next = 0xb7a53f20, static sm_classTable = 0x8646008}, m_address = 0xb4e00510},
      static ms_classInfo = {m_className = 0xb7a48ee8, m_objectSize = 12, m_objectConstructor = 0,
        m_baseInfo1 = 0xb7a53eb8, m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0xb7a53eb8,
        static sm_classTable = 0x8646008}}, static ms_classInfo = {m_className = 0xb7a48f18, m_objectSize = 16,
      m_objectConstructor = 0xb7a3a06c , m_baseInfo1 = 0xb7a53ed0, m_baseInfo2 = 0x0,
      static sm_first = 0x0, m_next = 0xb7a53ed0, static sm_classTable = 0x8646008},
    m_origHostname = { = {static npos = 4294967295,
        m_pchData = 0xb79bf518}, }}, }
#12 0x080cd05e in CClientUDPSocket::SendControlData (this=0x9201dc0, maxNumberOfBytesToSend=22)
    at ClientUDPSocket.cpp:288
        sendbuffer = 0xb4e004a0 "Å\220ë4î51\231á(x\230\237\005Ä&\2309L"
        cur_packet = {packet = 0xab22ea8, dwTime = 2470952283, dwIP = 1616490324, nPort = 4672}
        lock = {m_isOk = true, m_mutex = @0x9201f04}
        sentBytes = 0
        returnVal = {success = false, sentBytesStandardPackets = 0, sentBytesControlPackets = 0}
#13 0x0825a148 in UploadBandwidthThrottler::Entry (this=0x91794b8) at UploadBandwidthThrottler.cpp:453
        socketSentBytes = {success = false, sentBytesStandardPackets = 0, sentBytesControlPackets = 0}
        lastSpentBytes = 0
        socket = (class ThrottledControlSocket *) 0x9201ee0
        spentBytes = 0
        spentOverhead = 0
        maxSlot = 2
        timeSinceLastLoop = 16
        minFragSize = 1300
        doubleSendSize = 2600
        bytesToSpend = 22
        TIME_BETWEEN_UPLOAD_LOOPS = 1
        sleepTime = 14
        thisLoopTick = 2470952461
        realBytesToSpend = 22055
        lastTickReachedBandwidth = 2470952445
        lastLoopTick = 2470952461
        allowedDataRate = 7168
        rememberedSlotCounter = 2
#14 0xb7986f09 in wxThreadInternal::PthreadStart (thread=0x91794b8) at ./src/unix/threadpsx.cpp:763
        pthread = (wxThreadInternal *) 0x9176130
        rc = 0
        dontRunAtAll = false
#15 0xb7986dc2 in wxPthreadStart (ptr=0x91794b8) at ./src/unix/threadpsx.cpp:715
No locals.
#16 0x00401341 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#17 0x00280fee in clone () from /lib/tls/libc.so.6
No symbol table info available.
(gdb)
Logged

bathat

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: free(): invalid pointer
« Reply #1 on: July 12, 2005, 08:34:15 AM »

I get the same error after amule has been left running for hours.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: free(): invalid pointer
« Reply #2 on: July 12, 2005, 09:08:35 AM »

its mem corruption, but only in cvs...

so if you dont want crashes use 2.0.3 :)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

bathat

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: free(): invalid pointer
« Reply #3 on: July 13, 2005, 01:35:48 AM »

Crash on exit has ceased, thanks.
Logged