aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: assert "m_iQueuedCount" failed  (Read 4079 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
assert "m_iQueuedCount" failed
« on: May 06, 2005, 12:00:32 PM »

Assertion failed. Backtrace follows:
[Debug] 01:38:59 AM: Launching: addr2line -C -f -s -e /proc/31921/exe 0x81b68f3 0x807cdf1 0x2121cc 0x212148 0x813a250 0x8246c85 0x8143b2d 0x814c9aa 0x811359b 0x814c05b 0x81412d7 0x211b08 0x2b1769 0x2b0704 0x2b197f 0x2b1624 0x211a7a 0x827eed 0x5b9b5a 0x5b67bb 0x5b8242 0x5b84ef 0xfd2f97 0x847d67 0x8d7755 0x8d78c1 0x24ef64 0x24f0a7 0x8081243 0xcebe23 0x806edad

[Debug] 01:39:08 AM: KnownFile.cpp(191): assert "m_iQueuedCount" failed.

Call stack:
[05] wxStackWalker::Walk(unsigned int)
[06] 0x00212493
[07] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[08] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] CamuleApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)   /home/mroberto/programs/amule/cvswork/verb-cvsu/src/amule.cpp:1355
[10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[12] CKnownFile::RemoveUploadingClient(CUpDownClient*)  /home/mroberto/programs/amule/cvswork/verb-cvsu/src/KnownFile.cpp:191
[13] CUpDownClient::SetUploadFileID(CKnownFile*)        /home/mroberto/programs/amule/cvswork/verb-cvsu/src/UploadClient.cpp:526
[14] CClientReqSocket::ProcessPacket(char const*, unsigned int, unsigned char)  /home/mroberto/programs/amule/cvswork/verb-cvsu/src/ListenSocket.cpp:631
[15] CClientReqSocket::PacketReceived(CPacket*) /home/mroberto/programs/amule/cvswork/verb-cvsu/src/ListenSocket.cpp:1841
[16] CEMSocket::OnReceive(int)                  /home/mroberto/programs/amule/cvswork/verb-cvsu/src/EMSocket.cpp:265
[17] CClientReqSocket::OnReceive(int)           /home/mroberto/programs/amule/cvswork/verb-cvsu/src/ListenSocket.cpp:1742
[18] CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&)    /home/mroberto/programs/amule/cvswork/verb-cvsu/src/ListenSocket.cpp:89
[19] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const
[20] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[21] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[22] wxEvtHandler::ProcessEvent(wxEvent&)
[23] wxEvtHandler::ProcessPendingEvents()
[24] wxAppConsole::ProcessPendingEvents()
[25] 0x00827eed
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: assert "m_iQueuedCount" failed
« Reply #1 on: May 06, 2005, 12:05:13 PM »

Code: [Select]
(gdb) bt
#0  0x001a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00407624 in raise () from /lib/tls/libpthread.so.0
#2  0x00212115 in wxTrap () at ./src/common/appbase.cpp:600
#3  0x00212171 in wxOnAssert (szFile=0x82cfb0c, nLine=191, szCond=0x82cfbd8, szMsg=0x0) at ./src/common/appbase.cpp:628
#4  0x00212148 in wxAssert (cond=0, szFile=0x82cfb0c, nLine=191, szCond=0x82cfbd8, szMsg=0x0)
    at ./src/common/appbase.cpp:613
#5  0x0813a250 in CKnownFile::RemoveUploadingClient (this=0xa2efba0, client=0xb8165c8) at KnownFile.cpp:191
#6  0x08246c85 in CUpDownClient::SetUploadFileID (this=0xb8165c8, newreqfile=0x0) at UploadClient.cpp:526
#7  0x080910bc in ~CUpDownClient (this=0xb8165c8) at BaseClient.cpp:265
#8  0x080ba422 in CClientList::Process (this=0xa16e130) at ClientList.cpp:606
#9  0x0807d1ee in CamuleApp::OnCoreTimer (this=0xa0a7c88) at amule.cpp:1459
#10 0x00211b08 in wxAppConsole::HandleEvent (this=0xa0a7c88, handler=0xa0a7c88, func=
      {__pfn = 0x807d0ba , __delta = 0}, event=@0xbff063a0)
    at ./src/common/appbase.cpp:325
#11 0x002b1769 in wxEvtHandler::ProcessEventIfMatches (entry=@0x83d39e0, handler=0xa0a7c88, event=@0xbff063a0)
    at ./src/common/event.cpp:1185
#12 0x002b0704 in wxEventHashTable::HandleEvent (this=0x83d3960, event=@0xbff063a0, self=0xa0a7c88)
    at ./src/common/event.cpp:867
#13 0x002b197f in wxEvtHandler::ProcessEvent (this=0xa0a7c88, event=@0xbff063a0) at ./src/common/event.cpp:1247
#14 0x0094f709 in wxTimerBase::Notify (this=0xad25be0) at ./src/common/timercmn.cpp:61
#15 0x0085302f in timeout_callback (data=0xad25be0) at ./src/gtk/timer.cpp:48
#16 0x005b9368 in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#17 0x005b67bb in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x005b8242 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#19 0x005b84ef in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#20 0x00f68aa5 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x00000000 in ?? ()
Code: [Select]
(gdb) bt full
#0  0x001a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00407624 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x00212115 in wxTrap () at ./src/common/appbase.cpp:600
No locals.
#3  0x00212171 in wxOnAssert (szFile=0x82cfb0c, nLine=191, szCond=0x82cfbd8, szMsg=0x0) at ./src/common/appbase.cpp:628
        s_bInAssert = true
#4  0x00212148 in wxAssert (cond=0, szFile=0x82cfb0c, nLine=191, szCond=0x82cfbd8, szMsg=0x0)
    at ./src/common/appbase.cpp:613
No locals.
#5  0x0813a250 in CKnownFile::RemoveUploadingClient (this=0xa2efba0, client=0xb8165c8) at KnownFile.cpp:191
No locals.
#6  0x08246c85 in CUpDownClient::SetUploadFileID (this=0xb8165c8, newreqfile=0x0) at UploadClient.cpp:526
        oldreqfile = (class CKnownFile *) 0xa2efba0
#7  0x080910bc in ~CUpDownClient (this=0xb8165c8) at BaseClient.cpp:265
No locals.
#8  0x080ba422 in CClientList::Process (this=0xa16e130) at ClientList.cpp:606
        toremove = (CUpDownClient *) 0xb8165c8
        cur_tick = 2957854635
#9  0x0807d1ee in CamuleApp::OnCoreTimer (this=0xa0a7c88) at amule.cpp:1459
        msPrevSave = 1382619
        msPrevKnownMet = 0
        msPrev1 = 1400072
        msPrev5 = 1399273
        msPrevHist = 1400000
        msPrevOS = 1399977
        msCur = 1400072
#10 0x00211b08 in wxAppConsole::HandleEvent (this=0xa0a7c88, handler=0xa0a7c88, func=
      {__pfn = 0x807d0ba , __delta = 0}, event=@0xbff063a0)
    at ./src/common/appbase.cpp:325
No locals.
#11 0x002b1769 in wxEvtHandler::ProcessEventIfMatches (entry=@0x83d39e0, handler=0xa0a7c88, event=@0xbff063a0)
    at ./src/common/event.cpp:1185
        tableId1 = 6128
        tableId2 = -1
#12 0x002b0704 in wxEventHashTable::HandleEvent (this=0x83d3960, event=@0xbff063a0, self=0xa0a7c88)
    at ./src/common/event.cpp:867
        n = 1
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0xa89cd2c: { = {m_nSize = 2,
    m_nCount = 2, m_pItems = 0xa86fd70}, }
        count = 2
        eventType = 10085
        eTTnode = (wxEventHashTable::EventTypeTable * const) 0xa89cd28
#13 0x002b197f in wxEvtHandler::ProcessEvent (this=0xa0a7c88, event=@0xbff063a0) at ./src/common/event.cpp:1247
No locals.
#14 0x0094f709 in wxTimerBase::Notify (this=0xad25be0) at ./src/common/timercmn.cpp:61
        event = { = { = {_vptr.wxObject = 0x83d15c8, static ms_classInfo = {m_className = 0x2e10b8,
        m_objectSize = 8, m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x0,
        m_next = 0x3414a8, static sm_classTable = 0xa079008}, m_refData = 0x0}, m_eventObject = 0xad25be0,
    m_eventType = 10085, m_timeStamp = 0, m_id = 6128, m_callbackUserData = 0x0, m_propagationLevel = 0,
    m_skipped = false, m_isCommandEvent = false, static ms_classInfo = {m_className = 0x2f44a4, m_objectSize = 36,
      m_objectConstructor = 0, m_baseInfo1 = 0x34146c, m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0x3417d8,
      static sm_classTable = 0xa079008}}, m_interval = 100, static ms_classInfo = {m_className = 0x9d7484,
    m_objectSize = 40, m_objectConstructor = 0x94f524 , m_baseInfo1 = 0x3417f0,
    m_baseInfo2 = 0x0, static sm_first = 0x0, m_next = 0xa782c8, static sm_classTable = 0xa079008}}
#15 0x0085302f in timeout_callback (data=0xad25be0) at ./src/gtk/timer.cpp:48
        timer = (wxTimer *) 0xad25be0
#16 0x005b9368 in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0x005b67bb in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#18 0x005b8242 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#19 0x005b84ef in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0x00f68aa5 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#21 0x00000000 in ?? ()
No symbol table info available.
Code: [Select]
(gdb) frame 5
#5  0x0813a250 in CKnownFile::RemoveUploadingClient (this=0xa2efba0, client=0xb8165c8) at KnownFile.cpp:191
191             wxASSERT(m_iQueuedCount); // There must be at least one client.
(gdb) l
186             m_ClientUploadList.insert(client);
187     }
188
189     void CKnownFile::RemoveUploadingClient(CUpDownClient* client){
190
191             wxASSERT(m_iQueuedCount); // There must be at least one client.
192
193             if (m_iQueuedCount) {
194                     m_iQueuedCount--;
195             }
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: assert "m_iQueuedCount" failed
« Reply #2 on: May 06, 2005, 07:05:36 PM »

Poke Kry, this is caused by a recent change of his. ;)
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: assert "m_iQueuedCount" failed
« Reply #3 on: May 07, 2005, 06:23:01 AM »

Well, aMule does not run more than 5 minutes for me :( reminds me of the times of RSB... Guess I will have to do something, but I'm still too busy here. Maybe this weekend if it rains...

Cheers!
Logged

lfroen

  • Guest
Re: assert "m_iQueuedCount" failed
« Reply #4 on: May 07, 2005, 12:03:51 PM »

Same thing here. Kry ?!
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: assert "m_iQueuedCount" failed
« Reply #5 on: May 09, 2005, 11:38:23 AM »

I think it's getting worse... Now it does not print the stack anymore. And by the way, who had the idea of printing the addr2line command? I don't see the need of it, it's just spamming the console.

Cheers!

====================== WARNING ===================
Double-removal of a client from a knownfile. Backtrace:
[Debug] 05:11:05 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x813a9c4 0x82472d1 0x8144435 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0x973eed 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19
====================== WARNING ===================
Double-removal of a client from a knownfile. Backtrace:
[Debug] 05:13:45 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x813a9c4 0x82472d1 0x8144435 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0x973eed 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19
====================== WARNING ===================
Double-removal of a client from a knownfile. Backtrace:
[Debug] 06:12:43 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x813a9c4 0x82472d1 0x8144435 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0xa23cd9 0x467b10 0x507991 0x50692c 0x507ba7 0xa23b53 0x974044 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19
====================== WARNING ===================
Double-removal of a client from a knownfile. Backtrace:
[Debug] 06:16:11 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x813a9c4 0x82472d1 0x8143b41 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0x973eed 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19
====================== WARNING ===================
Double-removal of a client from a knownfile. Backtrace:
[Debug] 06:16:15 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x813a9c4 0x82472d1 0x8143b41 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0xa23cd9 0x467b10 0x507991 0x50692c 0x507ba7 0xa23b53 0x974044 0x739cb5a 0x73997bb 0x739b242 0x739b728 0xf4267d 0x973e54 0x50acee 0x96b0e4 0x50c297 0x50b2df 0x50a80d 0x50a8a4 0x81b7ace 0x813a9c4 0x82472d1 0x8143b41 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0x973eed 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19

Assertion failed. Backtrace follows:
[Debug] 06:16:15 AM: Launching: addr2line -C -f -s -e /proc/14999/exe 0x81b71fb 0x807d031 0x4681d4 0x468150 0x973e03 0x50acee 0x96b0e4 0x50c297 0x50b2df 0x50a80d 0x50a8a4 0x81b7ace 0x813a9c4 0x82472d1 0x8143b41 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c 0x467a82 0xa23cd9 0x467b10 0x507991 0x50692c 0x507ba7 0xa23b53 0x974044 0x739cb5a 0x73997bb 0x739b242 0x739b728 0xf4267d 0x973e54 0x50acee 0x96b0e4 0x50c297 0x50b2df 0x50a80d 0x50a8a4 0x81b7ace 0x813a9c4 0x82472d1 0x8143b41 0x814d2b2 0x8113ccb 0x814c963 0x8141bdf 0x467b10 0x507991 0x50692c 0x507ba7 0x50784c0x467a82 0x973eed 0x739cb5a 0x73997bb 0x739b242 0x739b4ef 0xf42f97 0x993d67 0xa23755 0xa238c1 0x4a4fdc 0x4a511f 0x8081973 0xbdae23 0x806ee19

[1]+  Trace/breakpoint trap   (core dumped) LANG=en_US.UTF-8 LD_LIBRARY_PATH=/usr/local/wxWidgets-cvsu/lib/ verb-cvsu/src/amule
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: assert "m_iQueuedCount" failed
« Reply #6 on: May 09, 2005, 01:54:55 PM »

Quote
Originally posted by Xaignar
Poke Kry, this is caused by a recent change of his. ;)


No. I just added a sanity check, and it triggered. The point is to know why.

And BTW, who was the smartass that used addr2line for this?
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: assert "m_iQueuedCount" failed
« Reply #7 on: May 10, 2005, 04:39:33 AM »

Kry,

addr2line is in the code since the first time I changed the backtrace code to demangle c++ names. And this means before rc8. How it got repeatedly called by is another story... It used to work nice.

BTW, the assert still triggers, so, as you said in another post, we are in trouble. :)

Cheers.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: assert "m_iQueuedCount" failed
« Reply #8 on: May 10, 2005, 05:59:01 AM »

Might be a good moment to rollback to backtrace() :P

Yes, it's a serious problem. list has data (as a matter of fact, it has the source we want to delete) but the count is 0. That's BAD.
Logged