aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [amuled 2.1.3 SIGTRAP] Can you help me with this?  (Read 4894 times)

genox

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
[amuled 2.1.3 SIGTRAP] Can you help me with this?
« on: March 02, 2007, 03:37:11 PM »

Hello everybody,
I got amuled 2.1.3 on wxbase-2.8, everythings works fine, exept this (it runs less than 40mins)
Is there any workaround (eg. from CVS) available for this?
Many thanks :)

Here follows the stack trace:
Code: [Select]
[Debug] Generating a stack trace... please waitkademlia/kademlia/../kademlia/Tag.h(85): assert "0" failed in GetInt().

Call stack:
[00] 0xb7d835f4
[01] wxAppConsole::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)
[02] wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)
[03] Kademlia::CTag::GetInt() const             kademlia/kademlia/../kademlia/Tag.h:85
[04] Kademlia::CKademliaUDPListener::processPublishRequest(unsigned char const*, unsigned int, unsigned int, unsigned short)kademlia/net/KademliaUDPListener.cpp:845
[05] Kademlia::CKademliaUDPListener::processPacket(unsigned char const*, unsigned int, unsigned int, unsigned short)    kademlia/net/KademliaUDPListener.cpp:192
[06] Kademlia::CKademlia::processPacket(unsigned char const*, unsigned int, unsigned int, unsigned short)       kademlia/kademlia/Kademlia.cpp:337
[07] CClientUDPSocket::OnPacketReceived(amuleIPV4Address&, unsigned char*, unsigned int)        /root/aMule-2.1.3/src/ClientUDPSocket.cpp:99
[08] CMuleUDPSocket::OnReceive(int)             /root/aMule-2.1.3/src/MuleUDPSocket.cpp:171
[09] CClientUDPSocket::OnReceive(int)           /root/aMule-2.1.3/src/ClientUDPSocket.cpp:69
[10] CamuleApp::UDPSocketHandler(wxSocketEvent&)        /root/aMule-2.1.3/src/amule.cpp:2023
[11] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const
[12] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[13] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[14] wxEvtHandler::ProcessEvent(wxEvent&)
[15] wxEvtHandler::ProcessPendingEvents()
[16] wxAppConsole::ProcessPendingEvents()
[17] CamuleDaemonApp::OnRun()                   /root/aMule-2.1.3/src/amuled.cpp:458

Trace/breakpoint trap (core dumped)

And the BT

Code: [Select]
(gdb) bt full
#0  0xb7f9135b in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0xb7d543fe in wxTrap () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#2  0xb7d54459 in ?? () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#3  0xb7d548ca in wxAppTraitsBase::ShowAssertDialog ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#4  0xb7d5494c in wxConsoleAppTraitsBase::ShowAssertDialog ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#5  0xb7d545f4 in ?? () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#6  0xb7d5481a in wxAppConsole::OnAssertFailure ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#7  0xb7d54715 in wxOnAssert () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#8  0x08195914 in Kademlia::CTag::GetInt (this=0x8afc648)
    at kademlia/io/../kademlia/Tag.h:85
        __FUNCTION__ = "GetInt"
#9  0x081b2640 in Kademlia::CKademliaUDPListener::processPublishRequest (
---Type <return> to continue, or q <return> to quit---
    this=0x88a1640, packetData=0xbff5bca6 "n%`G!�s\233h\"\025d�Q�\f\001",
    lenPacket=139, ip=31657053, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:845
        tag = (class Kademlia::CTag *) 0x8afc648
        target = {m_data = {1998149294, 2797915602, 2769125097, 488192711}}
        entry = (Kademlia::CEntry *) 0x8b9a8f0
        indexed = (class Kademlia::CIndexed *) 0x88a1200
        bio = {<Kademlia::CDataIO> = {_vptr.CDataIO = 0x83352f0},
  m_bReadOnly = true, m_buffer = 0xbff5bd0f "\t\001", m_available = 34,
  m_used = 105}
        file = {m_data = {1197483374, 2608056865, 1679106664, 212750783}}
        distance = {m_data = {358681, 355207962, 3091183931, 3909670879}}
        strInfo = {<wxStringBase> = {static npos = 4294967295,
    m_pchData = 0x8b9acfc}, <No data fields>}
        count = 1
        flag = false
        load = 0 '\0'
        __FUNCTION__ = "processPublishRequest"
#10 0x081b76e2 in Kademlia::CKademliaUDPListener::processPacket (
    this=0x88a1640, data=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001",
    lenData=141, ip=31657053, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:191
        curCon = true
---Type <return> to continue, or q <return> to quit---
        opcode = 64 '@'
        packetData = (const byte *) 0xbff5bca6 "n%`G!�s\233h\"\025d�Q�\f\001"
        lenPacket = 139
#11 0x08182646 in Kademlia::CKademlia::processPacket (
    data=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001", lenData=141,
    ip=31657053, port=1756) at kademlia/kademlia/Kademlia.cpp:328
No locals.
#12 0x080b44ec in CClientUDPSocket::OnPacketReceived (this=0x88a1e30,
    addr=@0xbff5dcac, buffer=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001",
    length=141) at ClientUDPSocket.cpp:89
        protocol = 164 '�'
        opcode = 64 '@'
        ip = 1561125633
        port = 1756
        __FUNCTION__ = "OnPacketReceived"
#13 0x0812b3f9 in CMuleUDPSocket::OnReceive (this=0x88a1e30, errorCode=0)
    at MuleUDPSocket.cpp:171
        buffer = "�@n%`G!�s\233h\"\025d�Q�\f\001\000�V\031w��Ħ�~\r��:\031\035\a\002\001\000\0013\000[ITA-FULL] I corti.iso(aldo giovanni e giacomo).iso\n\001\000\002\b\000��\021\001\000\000\000\t\001\000\025\t\b\001\0009PF\t\001\000A\001\002\001\000\003\003\000Pro\002\001\000\004\003\000iso%.9N��)\212\204�\033���A�\033\236\211��<$\213A\f�\227F\206A.\225f�Y\214\f�\230�c%�!O(\203q\v\214�\003\220&9\215Ң"...
---Type <return> to continue, or q <return> to quit---
        addr = {<> = {<No data fields>}, <No data fields>}
        length = 141
        error = false
        lastError = 0
#14 0x080b49e8 in CClientUDPSocket::OnReceive (this=0x88a1e30, errorCode=0)
    at ClientUDPSocket.cpp:66
No locals.
#15 0x0806546b in CamuleApp::UDPSocketHandler (this=0x85c3ea0,
    event=@0x8bb08a0) at amule.cpp:2022
        socket = (class CMuleUDPSocket *) 0x88a1e30
        __FUNCTION__ = "UDPSocketHandler"
#16 0xb7d542f9 in wxAppConsole::HandleEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#17 0xb7e0d1f8 in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#18 0xb7e0ef22 in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#19 0xb7e0f085 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#20 0xb7e0da4e in wxEvtHandler::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#21 0xb7d5536f in wxAppConsole::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#22 0x0805b4bb in CamuleDaemonApp::OnRun (this=0x85c3ea0) at amuled.cpp:457
No locals.
#23 0xb7d9b30c in wxEntry () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#24 0xb7d9b3d4 in wxEntry () from /usr/local/lib/libwx_baseud-2.8.so.0
No symbol table info available.
#25 0x0805b518 in main (argc=Cannot access memory at address 0x4c91
) at amuled.cpp:132
No locals.
(gdb)

And on all threads:

Code: [Select]
(gdb) thread apply all bt

Thread 4 (Thread -1230763088 (LWP 19610)):
#0  0xb7f8dd72 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/tls/libpthread.so.0
#1  0xb7e08f0d in wxConditionInternal::WaitTimeout ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#2  0xb7e08ff2 in wxCondition::WaitTimeout ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#3  0xb7e09e31 in wxSemaphoreInternal::WaitTimeout ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#4  0xb7e09f1a in wxSemaphore::WaitTimeout ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#5  0x0805dc78 in CTimerThread::Entry (this=0x88a7ad8) at Timer.cpp:66
#6  0xb7e0b1d4 in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#7  0xb7e0b31d in wxPthreadStart () from /usr/local/lib/libwx_baseud-2.8.so.0
#8  0xb7f8b20e in start_thread () from /lib/tls/libpthread.so.0
#9  0xb7b730de in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1213985872 (LWP 19608)):
#0  0xb7f9099c in ?? () from /lib/tls/libpthread.so.0
#1  0xb7e14bfd in wxMicroSleep () from /usr/local/lib/libwx_baseud-2.8.so.0
#2  0xb7e14c27 in wxMilliSleep () from /usr/local/lib/libwx_baseud-2.8.so.0
---Type <return> to continue, or q <return> to quit---
#3  0xb7e08b8d in wxThread::Sleep () from /usr/local/lib/libwx_baseud-2.8.so.0
#4  0x081693bc in UploadBandwidthThrottler::Entry (this=0x88a2318)
    at UploadBandwidthThrottler.cpp:370
#5  0xb7e0b1d4 in wxThreadInternal::PthreadStart ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#6  0xb7e0b31d in wxPthreadStart () from /usr/local/lib/libwx_baseud-2.8.so.0
#7  0xb7f8b20e in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7b730de in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1213577536 (LWP 19601)):
#0  0xb7f9135b in raise () from /lib/tls/libpthread.so.0
#1  0xb7d543fe in wxTrap () from /usr/local/lib/libwx_baseud-2.8.so.0
#2  0xb7d54459 in ?? () from /usr/local/lib/libwx_baseud-2.8.so.0
#3  0xb7d548ca in wxAppTraitsBase::ShowAssertDialog ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#4  0xb7d5494c in wxConsoleAppTraitsBase::ShowAssertDialog ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#5  0xb7d545f4 in ?? () from /usr/local/lib/libwx_baseud-2.8.so.0
#6  0xb7d5481a in wxAppConsole::OnAssertFailure ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#7  0xb7d54715 in wxOnAssert () from /usr/local/lib/libwx_baseud-2.8.so.0
#8  0x08195914 in Kademlia::CTag::GetInt (this=0x8afc648)
    at kademlia/io/../kademlia/Tag.h:85
---Type <return> to continue, or q <return> to quit---
#9  0x081b2640 in Kademlia::CKademliaUDPListener::processPublishRequest (
    this=0x88a1640, packetData=0xbff5bca6 "n%`G!�s\233h\"\025d�Q�\f\001",
    lenPacket=139, ip=31657053, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:845
#10 0x081b76e2 in Kademlia::CKademliaUDPListener::processPacket (
    this=0x88a1640, data=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001",
    lenData=141, ip=31657053, port=1756)
    at kademlia/net/KademliaUDPListener.cpp:191
#11 0x08182646 in Kademlia::CKademlia::processPacket (
    data=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001", lenData=141,
    ip=31657053, port=1756) at kademlia/kademlia/Kademlia.cpp:328
#12 0x080b44ec in CClientUDPSocket::OnPacketReceived (this=0x88a1e30,
    addr=@0xbff5dcac, buffer=0xbff5bca4 "�@n%`G!�s\233h\"\025d�Q�\f\001",
    length=141) at ClientUDPSocket.cpp:89
#13 0x0812b3f9 in CMuleUDPSocket::OnReceive (this=0x88a1e30, errorCode=0)
    at MuleUDPSocket.cpp:171
#14 0x080b49e8 in CClientUDPSocket::OnReceive (this=0x88a1e30, errorCode=0)
    at ClientUDPSocket.cpp:66
#15 0x0806546b in CamuleApp::UDPSocketHandler (this=0x85c3ea0,
    event=@0x8bb08a0) at amule.cpp:2022
#16 0xb7d542f9 in wxAppConsole::HandleEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#17 0xb7e0d1f8 in wxEvtHandler::ProcessEventIfMatches ()
---Type <return> to continue, or q <return> to quit---
   from /usr/local/lib/libwx_baseud-2.8.so.0
#18 0xb7e0ef22 in wxEventHashTable::HandleEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#19 0xb7e0f085 in wxEvtHandler::ProcessEvent ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#20 0xb7e0da4e in wxEvtHandler::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#21 0xb7d5536f in wxAppConsole::ProcessPendingEvents ()
   from /usr/local/lib/libwx_baseud-2.8.so.0
#22 0x0805b4bb in CamuleDaemonApp::OnRun (this=0x85c3ea0) at amuled.cpp:457
#23 0xb7d9b30c in wxEntry () from /usr/local/lib/libwx_baseud-2.8.so.0
#24 0xb7d9b3d4 in wxEntry () from /usr/local/lib/libwx_baseud-2.8.so.0
#25 0x0805b518 in main (argc=Cannot access memory at address 0x4c91
) at amuled.cpp:132
(gdb)
Logged

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: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #1 on: March 03, 2007, 12:55:29 AM »

Hi genox,

You have two options. The crash you got is an assertion. An assertion is a code the developers put inside the program to make it abort if a forbidden condition happens. Assertions are only enabled on debug builds. So, if you got an assertion, it means that you made a debug build. Your two options:

1) Compile aMule 2.1.3 without debug information. You will no longer get the assertion, but I don't know what will happen after it.
2) Compile the latest and greatest aMule CVS tarball ( http://www.hirnriss.net/?area=cvs ). Then you should enable the debug build, after all, it is an experimental code and we need feedback.

This particular assertion you got, if I recall correctly, has been taken care of already.

Cheers!
Logged

genox

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #2 on: March 03, 2007, 03:35:19 PM »

Thanks for your feedback :)

I'll try both of them, for two reasons:

1) I'm trying to get a totally bug-free aMule... your goal is mostly (IMAO) a full-featured mule, mine is a 300-days-uptime aMule in daemon+webserver flavour.

2) I guess you need some help to debug new upcoming stuff. I'll be happy to try the new CVS in a separated, monolithic, and GTK build.

My last will, if possible, is reading a doc (UML or whatever) to understand the code/classes structure. Maybe I'll be able to give you some help directly.

Cheers ;)
Logged

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: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #3 on: March 04, 2007, 02:41:28 AM »

My last will, if possible, is reading a doc (UML or whatever) to understand the code/classes structure. Maybe I'll be able to give you some help directly.
Hope it's not your last will :) but anyway, I cannot fullfill it. :( The documentation is the source code, and it can be rather difficult to read sometimes. Some parts of it are well documented, e.g., the external connections protocol.

Cheers!
Logged

genox

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #4 on: March 04, 2007, 03:05:04 PM »

Some parts of it are well documented, e.g., the external connections protocol.

lol I thought that... Kry is such a worthful dev, but so messy :) Ok, let's see what I can understand.
1K thanks for your tips.

Cheers :)
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #5 on: March 05, 2007, 02:21:30 AM »

Wait, what?

1) I didn't code all of this, I inherited messiness from xmule,lmule, and eMule
2) I didn't code EC, I coded the v1 and designed the v2, but not CODED it.
3) I put comments everywhere, bitches.
Logged

genox

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #6 on: March 05, 2007, 12:42:32 PM »

3) I put comments everywhere, bitches.

There's no need to flame man.
Just wrote you're messy, not bitch.

Anyway, keep having fun with your cut&paste job.

Cheers!
Logged

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: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #7 on: March 06, 2007, 11:45:07 AM »

Just as a side note, I meant no particular dev, and I include myself in the few documentation team.

I don't see the point of attacking Kry like that, and I don't like the direction this thread is going.

Thread closed.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #8 on: March 06, 2007, 03:33:05 PM »

- Thread opened -

I SAID BITCHES.

Dann it, people can't stand even the more ridiculous and undirected insults. jcoy is much better than this guy, I tell you.

- Thread reclosed -
Logged

jcoy

  • Newbie
  • Karma: 1
  • Offline Offline
  • Posts: 4
Re: [amuled 2.1.3 SIGTRAP] Can you help me with this?
« Reply #9 on: March 06, 2007, 04:35:41 PM »

 :) Thanks Kry, right back at you.  :)
Logged