aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 9732  (Read 2827 times)

gav616

  • Guest
9732
« on: August 03, 2009, 10:40:41 AM »

PKGBUILD
Code: [Select]
pkgname=amule-remote-svn
pkgver=9732
pkgrel=1
arch=i686
license=GPL
depends=(wxgtk gd binutils geoip)
makedepends=crypto++
conflicts=(amule amule-remote amule-remote-cvs)
source=(http://amule.sourceforge.net/tarballs/aMule-SVN-r${pkgver}.tar.bz2 amule.conf amuled)
options=(!strip !docs)

unset CFLAGS
unset CXXFLAGS

build() {
 cd ${srcdir}/aMule-SVN-r${pkgver}
  
 ./configure --prefix=/usr \
--disable-monolithic \
--enable-amule-daemon \
--disable-amulecmd \
--disable-webserver \
--enable-amule-gui \
--disable-cas \
--disable-wxcas \
--disable-ed2k \
--disable-alc \
--disable-alcc \
--disable-upnp \
--disable-xas \
--enable-geoip \
--enable-mmap \
--disable-nls \
--enable-debug \
--disable-optimize

 make || return 1
 make DESTDIR=${pkgdir}/ install || return 1

 install -D -m755 ${startdir}/amuled ${pkgdir}/etc/rc.d/amuled
 install -D -m644 ${startdir}/amule.conf ${pkgdir}/etc/conf.d/amule.conf
}

(gdb) bt
Code: [Select]
#0  0x080d460f in _Bit_const_iterator (this=0xbfb49a90, __x=@0x2c000124)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:280
#1  0x080d6494 in std::__norm::vector<bool, std::allocator<bool> >::end (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:618
#2  0x0822bfd8 in std::__norm::vector<bool, std::allocator<bool> >::empty (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:676
#3  0x08229073 in CKnownFile::UpdatePartsInfo (this=0xab14598) at KnownFile.cpp:1192
#4  0x081b72e7 in CUpDownClient::ProcessExtendedInfo (this=0xbfda7d0, data=0xbfb49cdc,
    tempreqfile=0xab14598) at UploadClient.cpp:501
#5  0x080c1819 in CClientUDPSocket::ProcessPacket (this=0xa35f4a0,
    packet=0xbfb49f36 "�l#\212F?\211s\204@\027\204�\027^b�", size=51, opcode=144 '\220',
    host=3303185241, port=61211) at ClientUDPSocket.cpp:203
#6  0x080c0922 in CClientUDPSocket::OnPacketReceived (this=0xa35f4a0, ip=3303185241, port=61211,
    buffer=0xbfb49f2c "!��`\220�_\004�\220�l#\212F?\211s\204@\027\204�\027^b�", length=61)
    at ClientUDPSocket.cpp:94
#7  0x0815f2ac in CMuleUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0) at MuleUDPSocket.cpp:183
#8  0x080c083c in CClientUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0)
    at ClientUDPSocket.cpp:69
#9  0x0806aad9 in CamuleApp::UDPSocketHandler (this=0x9e7bfe8, event=@0xc325ed0) at amule.cpp:2215
#10 0xb7ec9ebf in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#11 0xb7f67999 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb7f68a34 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#13 0xb7f68b33 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7f67e29 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#15 0xb7eca209 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x08057715 in CamuleDaemonApp::OnRun (this=0x9e7bfe8) at amuled.cpp:661
#17 0xb7f0382a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7f03a07 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0x08055ce9 in main (argc=1, argv=0xbfb4e3e4) at amuled.cpp:170

(gdb) bt full
Code: [Select]
#0  0x080d460f in _Bit_const_iterator (this=0xbfb49a90, __x=@0x2c000124)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:280
No locals.
#1  0x080d6494 in std::__norm::vector<bool, std::allocator<bool> >::end (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:618
No locals.
#2  0x0822bfd8 in std::__norm::vector<bool, std::allocator<bool> >::empty (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:676
No locals.
#3  0x08229073 in CKnownFile::UpdatePartsInfo (this=0xab14598) at KnownFile.cpp:1192
        count = {<std::__norm::vector<short unsigned int, std::allocator<short unsigned int> >> = {<std::__norm::_Vector_base<short unsigned int, std::allocator<short unsigned int> >> = {
      _M_impl = {<std::allocator<short unsigned int>> = {<__gnu_cxx::new_allocator<short unsigned int>> = {<No data fields>}, <No data fields>}, _M_start = 0xc262238, _M_finish = 0xc262244,
        _M_end_of_storage = 0xc262244}}, <No data fields>}, <__gnu_debug::_Safe_sequence<std::__debug::vector<short unsigned int, std::allocator<short unsigned int> > >> = {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0, _M_const_iterators = 0x0, _M_version = 2}, <No data fields>},
  _M_guaranteed_capacity = 6}
        it = {<__gnu_debug::_Safe_iterator_base> = {_M_sequence = 0xab14640, _M_version = 1,
    _M_prior = 0x0, _M_next = 0x0}, _M_current = {_M_node = 0xc0638a9}}
        n = 134739275
        partcount = 242
        flag = true
#4  0x081b72e7 in CUpDownClient::ProcessExtendedInfo (this=0xbfda7d0, data=0xbfb49cdc,
---Type <return> to continue, or q <return> to quit---
    tempreqfile=0xab14598) at UploadClient.cpp:501
        nCompleteCountLast = 0
        nCompleteCountNew = 6
        nED2KUpPartCount = 242
#5  0x080c1819 in CClientUDPSocket::ProcessPacket (this=0xa35f4a0,
    packet=0xbfb49f36 "�l#\212F?\211s\204@\027\204�\027^b�", size=51, opcode=144 '\220',
    host=3303185241, port=61211) at ClientUDPSocket.cpp:203
        data_out = {<CFileDataIO> = {_vptr.CFileDataIO = 0x0}, m_growthRate = 759955712,
  m_position = 700578859, m_BufferSize = 3458868764, m_fileSize = 2673397550, m_delete = 123,
  m_readonly = 53, m_buffer = 0x33627d18 <Address 0x33627d18 out of bounds>}
        response = (CPacket *) 0xb7d41c00
        bSenderMultipleIpUnknown = false
        data_in = {<CFileDataIO> = {_vptr.CFileDataIO = 0x8490d08}, m_growthRate = 0,
  m_position = 51, m_BufferSize = 51, m_fileSize = 51, m_delete = false, m_readonly = false,
  m_buffer = 0xbfb49f36 "�l#\212F?\211s\204@\027\204�\027^b�"}
        reqfilehash = {m_hash = "�l#\212F?\211s\204@\027\204�\027^b"}
        reqfile = (class CKnownFile *) 0xab14598
        sender = (CUpDownClient *) 0xbfda7d0
#6  0x080c0922 in CClientUDPSocket::OnPacketReceived (this=0xa35f4a0, ip=3303185241, port=61211,
    buffer=0xbfb49f2c "!��`\220�_\004�\220�l#\212F?\211s\204@\027\204�\027^b�", length=61)
    at ClientUDPSocket.cpp:94
        receiverVerifyKey = 0
        senderVerifyKey = 0
        packetLen = 53
---Type <return> to continue, or q <return> to quit---
        protocol = 197 '�'
        opcode = 144 '\220'
        decryptedBuffer = (uint8_t *) 0xbfb49f34 "�\220�l#\212F?\211s\204@\027\204�\027^b�"
#7  0x0815f2ac in CMuleUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0) at MuleUDPSocket.cpp:183
        buffer = "!��`\220�_\004�\220�l#\212F?\211s\204@\027\204�\027^b�\000�\2333$qTM\202\210�\001A\032 {�\216�!M\a/\000\b\0011\tF# \002\006\000�\231�\231�\234 �\222�\225�\234�\237 - �\220�\222�\223ת �\224ש�\236ש �\225�\224�\231ר�\227 - ס�\231נ�\222�\234 �\227�\223ש!! 2008.mp3\003\001\000\002p\023E\000\t\001\000\025\001\002\001\000\003\005\000Audio\t\001\000Ӽ\t\001\000���\203� 尼氣 �\232��\226.ra\003\001\000\002��E"...
        length = 61
        addr = <incomplete type>
        error = false
        lastError = 0
        ip = 3303185241
        port = 61211
#8  0x080c083c in CClientUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0)
    at ClientUDPSocket.cpp:69
No locals.
#9  0x0806aad9 in CamuleApp::UDPSocketHandler (this=0x9e7bfe8, event=@0xc325ed0) at amule.cpp:2215
        socket = (class CMuleUDPSocket *) 0xa35f4a0
#10 0xb7ec9ebf in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#11 0xb7f67999 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#12 0xb7f68a34 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#13 0xb7f68b33 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#14 0xb7f67e29 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#15 0xb7eca209 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#16 0x08057715 in CamuleDaemonApp::OnRun (this=0x9e7bfe8) at amuled.cpp:661
        ERROR_BUFFER_LEN = 256
        errorBuffer = "\000\000\000\000~d�;�\t|@�\td\000\000\000�Z�\\\000\000\000\000\000\000\000�ᴿLⴿ\031\000\000\000Lⴿ�ᴿ��\006\bLⴿ|@�\t�ᴿy\210\005\b�;�\t\234�H\b�ᴿ}�\006\bLⴿ|@�\t\bⴿS\211\005\b�;�\t\000\000\000\000(ⴿ\234\213\177\b8�`\b\000\000\000\000(ⴿW\212\005\bLⴿLⴿ8ⴿ\234\213\177\b8�`\b\000\000\000\000Xⴿ\025�+\bLⴿLⴿXⴿ�K&\b,O�\t\000\000\000\000�\006�\t�;�\t"...
        msg = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x9e845ec}, <No data fields>}
        ret = 0
#17 0xb7f0382a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#18 0xb7f03a07 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#19 0x08055ce9 in main (argc=1, argv=0xbfb4e3e4) at amuled.cpp:170
No locals.

(gdb) thread apply all bt

Code: [Select]
Thread 5 (Thread 0xb58ffb70 (LWP 3302)):
#0  0xb803a424 in __kernel_vsyscall ()
#1  0xb801aef2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7f64e94 in wxConditionInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7f64eef in wxCondition::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7f660e4 in wxSemaphoreInternal::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#5  0xb7f6616f in wxSemaphore::WaitTimeout () from /usr/lib/libwx_baseu-2.8.so.0
#6  0x0805cdb2 in CTimerThread::Entry (this=0x9ea42b0) at Timer.cpp:64
#7  0xb7f670d8 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb7f6713d in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb801668c in start_thread () from /lib/libpthread.so.0
#10 0xb7ccde2e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb7248b70 (LWP 3300)):
#0  0xb803a424 in __kernel_vsyscall ()
#1  0xb801e2c6 in nanosleep () from /lib/libpthread.so.0
#2  0xb7f6caf8 in wxMicroSleep () from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb7f6cb21 in wxMilliSleep () from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb7f64cdd in wxThread::Sleep () from /usr/lib/libwx_baseu-2.8.so.0
#5  0x081a9737 in UploadBandwidthThrottler::Entry (this=0xa35fee0)
    at UploadBandwidthThrottler.cpp:320
#6  0xb7f670d8 in wxThreadInternal::PthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
#7  0xb7f6713d in wxPthreadStart () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#8  0xb801668c in start_thread () from /lib/libpthread.so.0
#9  0xb7ccde2e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7bfa6d0 (LWP 3295)):
#0  0x080d460f in _Bit_const_iterator (this=0xbfb49a90, __x=@0x2c000124)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:280
#1  0x080d6494 in std::__norm::vector<bool, std::allocator<bool> >::end (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:618
#2  0x0822bfd8 in std::__norm::vector<bool, std::allocator<bool> >::empty (this=0x2c00011c)
    at /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../include/c++/4.4.1/bits/stl_bvector.h:676
#3  0x08229073 in CKnownFile::UpdatePartsInfo (this=0xab14598) at KnownFile.cpp:1192
#4  0x081b72e7 in CUpDownClient::ProcessExtendedInfo (this=0xbfda7d0, data=0xbfb49cdc,
    tempreqfile=0xab14598) at UploadClient.cpp:501
#5  0x080c1819 in CClientUDPSocket::ProcessPacket (this=0xa35f4a0,
    packet=0xbfb49f36 "�l#\212F?\211s\204@\027\204�\027^b�", size=51, opcode=144 '\220',
    host=3303185241, port=61211) at ClientUDPSocket.cpp:203
#6  0x080c0922 in CClientUDPSocket::OnPacketReceived (this=0xa35f4a0, ip=3303185241, port=61211,
    buffer=0xbfb49f2c "!��`\220�_\004�\220�l#\212F?\211s\204@\027\204�\027^b�", length=61)
    at ClientUDPSocket.cpp:94
#7  0x0815f2ac in CMuleUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0) at MuleUDPSocket.cpp:183
#8  0x080c083c in CClientUDPSocket::OnReceive (this=0xa35f4a0, errorCode=0)
    at ClientUDPSocket.cpp:69
#9  0x0806aad9 in CamuleApp::UDPSocketHandler (this=0x9e7bfe8, event=@0xc325ed0) at amule.cpp:2215
#10 0xb7ec9ebf in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#11 0xb7f67999 in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.8.so.0
#12 0xb7f68a34 in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.8.so.0
#13 0xb7f68b33 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb7f67e29 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb7eca209 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x08057715 in CamuleDaemonApp::OnRun (this=0x9e7bfe8) at amuled.cpp:661
#17 0xb7f0382a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#18 0xb7f03a07 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#19 0x08055ce9 in main (argc=1, argv=0xbfb4e3e4) at amuled.cpp:170

(gdb) detach
Code: [Select]
Detaching from program: /usr/bin/amuled, process 3295

--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMuled SVN using wxGTK2 v2.8.10 (Snapshot: rev. 9732)
Running on: Linux 2.6.30-ARCH i686

(gdb) [2] CamuleApp::OnFatalException() in amule.cpp:1308
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0xb7f6c346]
[4] CFileAreaSigHandler::Handler(int, siginfo*, void*) in FileArea.cpp:121
[5] ?? in [0xb803a40c]
[6] _Bit_const_iterator in stl_bvector.h:280
[7] std::__norm::vector<bool, std::allocator<bool> >::end() const in stl_bvector.h:618
[8] std::__norm::vector<bool, std::allocator<bool> >::empty() const in stl_bvector.h:676
[9] CKnownFile::UpdatePartsInfo() in KnownFile.cpp:1192
[10] CUpDownClient::ProcessExtendedInfo(CMemFile const*, CKnownFile*) in UploadClient.cpp:506
[11] CClientUDPSocket::ProcessPacket(unsigned char*, unsigned short, unsigned char, unsigned int, unsigned short) in ClientUDPSocket.cpp:203
[12] CClientUDPSocket::OnPacketReceived(unsigned int, unsigned short, unsigned char*, unsigned int) in ClientUDPSocket.cpp:95
[13] CMuleUDPSocket::OnReceive(int) in MuleUDPSocket.cpp:183
[14] CClientUDPSocket::OnReceive(int) in ClientUDPSocket.cpp:72
[15] CamuleApp::UDPSocketHandler(wxSocketEvent&) in amule.cpp:2216
[16] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.8.so.0[0xb7ec9ebf]
[17] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7f67999]
[18] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0xb7f68a34]
[19] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0xb7f68b33]
[20] wxEvtHandler::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0xb7f67e29]
[21] wxAppConsole::ProcessPendingEvents() in /usr/lib/libwx_baseu-2.8.so.0[0xb7eca209]
[22] CamuleDaemonApp::OnRun() in amuled.cpp:662
[23] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0xb7f0382a]
[24] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0xb7f03a07]
[25] main in amuled.cpp:170
[26] __libc_start_main in /lib/libc.so.6[0xb7c16a36]
[27] _start in :0

BTW, is there tips for getting better backtraces?....do the devs recommend building wxgtk with debug enabled and optimized disabled for instance?

I'am asking because i see the " ( )  " fields, and in the backtraces wiki its says that these should be filled out...
« Last Edit: August 03, 2009, 11:08:18 AM by gav616 »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: 9732
« Reply #1 on: August 03, 2009, 11:44:22 PM »

Your backtrace is perfect.  :)

About your problem: one-timer or do you get it more often? Any information in the logfile prior to the event that might give a clue?
Looks like a member of the KnowFile's m_ClientUploadList got corrupted (or invalidated) so the runtime chokes on the bitvector.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

gav616

  • Guest
Re: 9732
« Reply #2 on: August 04, 2009, 10:55:20 AM »

one time crash this, nothing in the log either (from what I can see, it looks normal)

although, I do remember having to rehash all my shares on starting up that build.

ohh, and next time, I'll post the  initial error gdb gives.
« Last Edit: August 04, 2009, 10:58:06 AM by gav616 »
Logged