aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20050218 amued crash after some time (~1h)  (Read 4351 times)

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
20050218 amued crash after some time (~1h)
« on: February 20, 2005, 01:53:10 AM »

Code: [Select]
(gdb) bt
#0  0xb7a601b1 in kill () from /lib/libc.so.6
#1  0xb7f919c1 in pthread_kill () from /lib/libpthread.so.0
#2  0xb7f91ccb in raise () from /lib/libpthread.so.0
#3  0xb7e5554d in wxTrap () at src/common/appbase.cpp:569
#4  0xb7e55812 in DoShowAssertDialog (msg=@0xbfffea30) at src/common/appbase.cpp:672
#5  0xb7e55489 in wxAppTraitsBase::ShowAssertDialog (this=0x8437680, msg=@0xbfffea30)
    at src/common/appbase.cpp:518
#6  0xb7e5542d in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x8437680, msg=@0xbfffea30)
    at src/common/appbase.cpp:483
#7  0xb7e5595c in ShowAssertDialog (szFile=0xb7f35700, nLine=1182, szCond=0xb7f356c0,
    szMsg=0xb7f37300, traits=0x8437680) at src/common/appbase.cpp:735
#8  0xb7e552d9 in wxAppConsole::OnAssert (this=0x8435df8, file=0xb7f35700, line=1182,
    cond=0xb7f356c0, msg=0xb7f37300) at src/common/appbase.cpp:438
#9  0xb7e55604 in wxOnAssert (szFile=0xb7f35700, nLine=1182,
szCond=0xb7f356c0, szMsg=0xb7f37300)
    at src/common/appbase.cpp:615
#10 0xb7e55580 in wxAssert (cond=0, szFile=0xb7f35700, nLine=1182, szCond=0xb7f356c0,
    szMsg=0xb7f37300) at src/common/appbase.cpp:582
#11 0xb7ef3b61 in wxThread::Run (this=0x85b6fa8) at src/unix/threadpsx.cpp:1181
#12 0x080d7ed5 in CListenSocket::StartListening (this=0x85b6f40) at ListenSocket.cpp:2407
#13 0x0814f293 in CamuleApp::ReinitializeNetwork (this=0x8435df8, msg=0xbfffee10) at amule.cpp:811
#14 0x0814e879 in CamuleApp::OnInit (this=0x8435df8) at amule.cpp:692
#15 0x08154e92 in wxAppConsole::CallOnInit (this=0x8435df8) at app.h:87
#16 0xb7e9911e in wxEntry (argc=@0xbffff2f0, argv=0x840d470) at src/common/init.cpp:394
#17 0xb7e9926d in wxEntry (argc=@0xbffff2f0, argv=0xbffff334) at src/common/init.cpp:457
#18 0x08157a39 in main (argc=2, argv=0xbffff334) at amuled.cpp:129
Code: [Select]
(gdb) bt full
#0  0xb7a601b1 in kill () from /lib/libc.so.6
No symbol table info available.
#1  0xb7f919c1 in pthread_kill () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb7f91ccb in raise () from /lib/libpthread.so.0
No symbol table info available.
#3  0xb7e5554d in wxTrap () at src/common/appbase.cpp:569
No locals.
#4  0xb7e55812 in DoShowAssertDialog (msg=@0xbfffea30) at src/common/appbase.cpp:672
No locals.
#5  0xb7e55489 in wxAppTraitsBase::ShowAssertDialog (this=0x8437680, msg=@0xbfffea30)
    at src/common/appbase.cpp:518
No locals.
#6  0xb7e5542d in wxConsoleAppTraitsBase::ShowAssertDialog (this=0x8437680, msg=@0xbfffea30)
    at src/common/appbase.cpp:483
No locals.
#7  0xb7e5595c in ShowAssertDialog (szFile=0xb7f35700, nLine=1182, szCond=0xb7f356c0,
    szMsg=0xb7f37300, traits=0x8437680) at src/common/appbase.cpp:735
        s_bNoAsserts = false
        msg = { = {static npos = 4294967195, m_pchData = 0x85c7fac}, }
#8  0xb7e552d9 in wxAppConsole::OnAssert (this=0x8435df8, file=0xb7f35700, line=1182,
    cond=0xb7f356c0, msg=0xb7f37300) at src/common/appbase.cpp:438
No locals.
#9  0xb7e55604 in wxOnAssert (szFile=0xb7f35700, nLine=1182, szCond=0xb7f356c0, szMsg=0xb7f37300)
    at src/common/appbase.cpp:615
        s_bInAssert = true
#10 0xb7e55580 in wxAssert (cond=0, szFile=0xb7f35700, nLine=1182, szCond=0xb7f356c0,
    szMsg=0xb7f37300) at src/common/appbase.cpp:582
No locals.
#11 0xb7ef3b61 in wxThread::Run (this=0x85b6fa8) at src/unix/threadpsx.cpp:1181
        lock = {m_critsect = @0x85b6fb0}
#12 0x080d7ed5 in CListenSocket::StartListening (this=0x85b6f40) at ListenSocket.cpp:2407
No locals.
#13 0x0814f293 in CamuleApp::ReinitializeNetwork (this=0x8435df8, msg=0xbfffee10) at amule.cpp:811
        ok = true
        firstTime = false
        myaddr = { = { = { = { = {
          _vptr.wxObject = 0x81a2608, static ms_classInfo = {m_className = 0xb7f27f40,
            m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0,
            static sm_first = 0x8222520, m_next = 0xb7f87ba8, static sm_classTable = 0x840c050},
          m_refData = 0x0}, static ms_classInfo = {m_className = 0xb7de1b60, m_objectSize = 12,
          m_objectConstructor = 0, m_baseInfo1 = 0xb7f87b6c, m_baseInfo2 = 0x0,
          static sm_first = 0x8222520, m_next = 0xb7deb7a0, static sm_classTable = 0x840c050},
        m_address = 0x85c2e58}, static ms_classInfo = {m_className = 0xb7de1ba0, m_objectSize = 12,
        m_objectConstructor = 0, m_baseInfo1 = 0xb7deb738, m_baseInfo2 = 0x0,
        static sm_first = 0x8222520, m_next = 0xb7deb738, static sm_classTable = 0x840c050}},
    static ms_classInfo = {m_className = 0xb7de1be0, m_objectSize = 16,
      m_objectConstructor = 0xb7dd2b44 , m_baseInfo1 = 0xb7deb750,
      m_baseInfo2 = 0x0, static sm_first = 0x8222520, m_next = 0xb7deb750,
      static sm_classTable = 0x840c050}, m_origHostname = { = {
        static npos = 4294967195, m_pchData = 0xb7f2c6a8}, }}, }
        ip = { = {static npos = 4294967195, m_pchData = 0x85a5444}, }
#14 0x0814e879 in CamuleApp::OnInit (this=0x8435df8) at amule.cpp:692
        cmdline = {m_data = 0x8436200}
        geometry_enabled = false
        geom_string = { = {static npos = 4294967195,
    m_pchData = 0xb7f2c6a8}, }
        server = { = {static npos = 4294967195,
    m_pchData = 0x84374dc}, }
        host = { = {static npos = 4294967195,
    m_pchData = 0x843747c}, }
        IPC = { = {static npos = 4294967195, m_pchData = 0x843757c}, }
        client = (class wxTCPClient *) 0x8436248
        conn = (class wxConnectionBase *) 0x0
        lMulePrefDir = { = {static npos = 4294967195,
    m_pchData = 0x843795c}, }
        xMulePrefDir = { = {static npos = 4294967195,
    m_pchData = 0x84379bc}, }
        vfile = { = {_vptr.wxTextBuffer = 0x8222258,
    static typeDefault = wxTextFileType_Unix, m_strBufferName = { = {
        static npos = 4294967195, m_pchData = 0x844c274}, },
    m_aTypes = { = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0}, },
    m_aLines = {m_nSize = 0, m_nCount = 0, m_pItems = 0x0, m_autoSort = false}, m_nCurLine = 0,
    m_isOpened = false}, m_file = {m_fd = -1, m_error = false}}
        newMule = { = {static npos = 4294967195,
    m_pchData = 0x844c13c}, }
        msg = { = {static npos = 4294967195, m_pchData = 0x85c5b2c}, }
        ok = true
#15 0x08154e92 in wxAppConsole::CallOnInit (this=0x8435df8) at app.h:87
No locals.
#16 0xb7e9911e in wxEntry (argc=@0xbffff2f0, argv=0x840d470) at src/common/init.cpp:394
        callOnExit = {}
        cleanupOnExit = {}
#17 0xb7e9926d in wxEntry (argc=@0xbffff2f0, argv=0xbffff334) at src/common/init.cpp:457
No locals.
#18 0x08157a39 in main (argc=2, argv=0xbffff334) at amuled.cpp:129
No locals.
Logged

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: 20050218 amued crash after some time (~1h)
« Reply #1 on: February 20, 2005, 02:01:38 AM »

Sorry, I've got lost with cores. I think it wasn't after an hour but just aftesr startup.
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: 20050218 amued crash after some time (~1h)
« Reply #2 on: February 20, 2005, 12:47:31 PM »

alandar,

There was an assertion when the daemon started to run, didn't it print a message? Maybe the program stopped at gdb, but you should continue it so that you can see what happened. Try it again, this crash happened at program startup, should be easy to reproduce. When the program stops in gdb, type continue to see if it shows any message.

In case you are post processing a core file, include the crash messages in your backtraces.

Cheers!
Logged

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: 20050218 amued crash after some time (~1h)
« Reply #3 on: February 20, 2005, 03:14:03 PM »

Well there was something... amuled loaded files from Temp directory then there was something about error when openin port for external connections, and yes, there was something about assertion failed... but I don't recall message.
I can't reproduce the crash becouse after reboot amuled works stable for over 10h. Next time i'll include assertion messages.
Logged

alandar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: 20050218 amued crash after some time (~1h)
« Reply #4 on: February 20, 2005, 07:40:33 PM »

I forgot to check amuled.log. Assertion errors were there.
Code: [Select]
src/unix/utilsunx.cpp(251): assert "wxThread::
IsMain()" failed: wxExecute() can be called only from the main thread [in child thread]              
10:13:48 PM: Debug: src/unix/threadpsx.cpp(1182): assert "wxAssertFailure" failed: must call wxThread
::Create() first
It have to be one of them or both.
Amuled just appends logs so I can't tell.
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: 20050218 amued crash after some time (~1h)
« Reply #5 on: February 20, 2005, 09:55:36 PM »

Great! Thank you very much! This will probably solve the issue of locking with high cpu usage. But unfortunately still does not solve the crash issue.
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: 20050218 amued crash after some time (~1h)
« Reply #6 on: February 20, 2005, 11:48:50 PM »

alandar,

Code to address the locking with high CPU issue has been committed to CVS. Please get a new tarball tomorrow to continue testing.

Cheers!
Logged