aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: GetSecureIdentState assert  (Read 2867 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
GetSecureIdentState assert
« on: August 27, 2004, 02:48:06 PM »

Fear not, this is from an assert :) My question is: do we need this assert? What is that supposed to mean? What mistake must we look for?

Code: [Select]
(gdb) bt
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00d78e1b in raise () from /lib/tls/libpthread.so.0
#2  0x004b479d in wxTrap() () at src/common/appbase.cpp:569
#3  0x002d554a in wxGUIAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x98e50d8, msg=@0xbfefdd20)
    at src/common/appcmn.cpp:533
#4  0x004b4bac in ShowAssertDialog (szFile=0x82de40e "updownclient.h", nLine=253,
    szCond=0x82de3ff "SecIdentSupRec", szMsg=0x0, traits=0x98e50d8) at src/common/appbase.cpp:735
#5  0x004b452f in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x98b2090,
    file=0x82de40e "updownclient.h", line=253, cond=0x82de3ff "SecIdentSupRec", msg=0x0)
    at src/common/appbase.cpp:438
#6  0x00235357 in wxApp::OnAssert(char const*, int, char const*, char const*) (this=0x98b2090,
    file=0x82de40e "updownclient.h", line=253, cond=0x82de3ff "SecIdentSupRec", msg=0x0) at src/gtk/app.cpp:664
#7  0x004b4854 in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x82de40e "updownclient.h",
    nLine=253, szCond=0x82de3ff "SecIdentSupRec", szMsg=0x0) at src/common/appbase.cpp:615
#8  0x004b47d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x82de40e "updownclient.h", nLine=253, szCond=0x82de3ff "SecIdentSupRec", szMsg=0x0)
    at src/common/appbase.cpp:582
#9  0x08126bf3 in CUpDownClient::GetSecureIdentState() (this=0xa5a39a0) at updownclient.h:253
#10 0x08122923 in CClientReqSocket::ProcessExtPacket(char const*, unsigned, unsigned char) (this=0xbc0bc30,
    packet=0xb57fea8 "\001Fd", size=5, opcode=135 '\207') at ListenSocket.cpp:1520
#11 0x081244f0 in CClientReqSocket::PacketReceived(Packet*) (this=0xbc0bc30, packet=0xb9d4980)
    at ListenSocket.cpp:1979
#12 0x0817724f in CEMSocket::OnReceive(int) (this=0xbc0bc30, nErrorCode=0) at EMSocket.cpp:261
#13 0x081245c4 in CClientReqSocket::OnReceive(int) (this=0xbc0bc30, nErrorCode=0) at ListenSocket.cpp:1997
#14 0x0812467e in CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (this=0xbc17d48,
    event=@0xbc54578) at ListenSocket.cpp:2020
#15 0x004b4230 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (
    this=0x98b2090, handler=0xbc17d48, func=
      {__pfn = 0x81245ca , __delta = 0},
    event=@0xbc54578) at src/common/appbase.cpp:305
#16 0x00552229 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (
    entry=@0x8388720, handler=0xbc17d48, event=@0xbc54578) at src/common/event.cpp:1169
...
(gdb) frame 9
#9  0x08126bf3 in CUpDownClient::GetSecureIdentState() (this=0xa5a39a0) at updownclient.h:253
253                             wxASSERT(SecIdentSupRec);
(gdb) l
248                             if (!SecIdentSupRec) {
249                                     printf("\nWrong Tags on SecIdentState packet!!\n");
250                                     printf("%s\n",unicode2char(GetClientFullInfo()));
251                                     printf("User Disconnected.\n");
252                             }
253                             wxASSERT(SecIdentSupRec);
254                     }
255                     return m_SecureIdentState;
256             }
257             void            SendSecIdentStatePacket();
(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: GetSecureIdentState assert
« Reply #1 on: August 27, 2004, 09:03:42 PM »

Sorry, now I see I had already posted this: http://www.amule.org/amule/thread.php?threadid=3293&sid=

I am getting old... :)

Anyway, we should do something about that, maybe when Xaignar gets home he might come with a solution ;)

Cheers!
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: GetSecureIdentState assert
« Reply #2 on: August 28, 2004, 08:11:30 PM »

As I've already told you, I see no reason for that assert ;)
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: GetSecureIdentState assert
« Reply #3 on: August 29, 2004, 06:41:34 PM »

Ok, i have commented it.
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: GetSecureIdentState assert
« Reply #4 on: September 22, 2004, 02:18:43 AM »

Oh-oh,

We still get this, and worse, backtrace shows a completely corrupted stack.

updownclient.h(270): assert "SecIdentSupRec" failed.
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.

Wrong Tags on SecIdentState packet!!
Client http://Www.LioNetwork.Net [lh.2y.net] on IP XX.XX.XXX.XXX port 4662 using eMule
User Disconnected.
[Debug] 06:50:19 PM: updownclient.h(270): assert "SecIdentSupRec" failed.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: GetSecureIdentState assert
« Reply #5 on: September 22, 2004, 10:49:17 AM »

Damnit, so we do have memory corruption or bad pointer handling somewhere. =/
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: GetSecureIdentState assert
« Reply #6 on: September 22, 2004, 04:27:20 PM »

I told you.
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: GetSecureIdentState assert
« Reply #7 on: September 23, 2004, 01:42:43 PM »

Ok folks, now I have a nice backtrace of it. Please, lets fix this shit. :P I will keep the core and sources for a while if you want any info.

HashNotDone
Hasher: Creating new thread.
Hasher: Starting to hash file: 261.part
Hasher: Finished hashing file: 261.part
HashDone
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: Suspending uploads of file.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: Resuming uploads of file.
Hasher: No non-busy files on queue, stopping thread.
Hasher: A thread has died.
AICH sync thread running...
        Opened known2.met...
        Masterhash for known files loaded...
        Total 1 files to hash (from 395)...
        AICH hashing XXXXXX XXXX XXXXXX XXXX XXXXXX XXXXX XXXXXX XXXX XXXXX XXX.zip
        -> 0 files to hash...
        AICH done...
AICH thread dying...
Aggressive client banned (score: 10): PiD (shareaza.com) --  -- Shareaza v0.30
Aggressive client banned (score: 12): mike5643 (shareaza.com) --  -- Shareaza v0.30

Wrong Tags on SecIdentState packet!!
Client frankparker on IP XXX.XX.XX.XXX port 4662 using eMule
User Disconnected.
[Debug] 06:32:57 AM: updownclient.h(270): assert "SecIdentSupRec" failed.

Code: [Select]
002d87a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x002d87a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00c611a5 in raise () from /lib/tls/libpthread.so.0
#2  0x0017863d in wxTrap () at src/common/appbase.cpp:569
#3  0x00636752 in wxGUIAppTraitsBase::ShowAssertDialog (this=0xa51bca8, msg=@0xfeeb2400)
    at src/common/appcmn.cpp:533
#4  0x00178a4c in ShowAssertDialog (szFile=0x8361b22 "updownclient.h", nLine=270,
    szCond=0x8361b13 "SecIdentSupRec", szMsg=0x0, traits=0xa51bca8) at src/common/appbase.cpp:735
#5  0x001783cf in wxAppConsole::OnAssert (this=0xa4de1b0, file=0x8361b22 "updownclient.h", line=270,
    cond=0x8361b13 "SecIdentSupRec", msg=0x0) at src/common/appbase.cpp:438
#6  0x0059484f in wxApp::OnAssert (this=0xa4de1b0, file=0x8361b22 "updownclient.h", line=270,
    cond=0x8361b13 "SecIdentSupRec", msg=0x0) at src/gtk/app.cpp:664
#7  0x001786f4 in wxOnAssert (szFile=0x8361b22 "updownclient.h", nLine=270, szCond=0x8361b13 "SecIdentSupRec",
    szMsg=0x0) at src/common/appbase.cpp:615
#8  0x00178670 in wxAssert (cond=0, szFile=0x8361b22 "updownclient.h", nLine=270,
    szCond=0x8361b13 "SecIdentSupRec", szMsg=0x0) at src/common/appbase.cpp:582
#9  0x0817026b in CUpDownClient::GetSecureIdentState (this=0x10990980) at updownclient.h:270
#10 0x0816b7ae in CClientReqSocket::ProcessExtPacket (this=0x108eadc0, packet=0x10731f30 "\001Ú\t", size=5,
    opcode=135 '\207') at ListenSocket.cpp:1549
#11 0x0816d9d1 in CClientReqSocket::PacketReceived (this=0x108eadc0, packet=0xf344200) at ListenSocket.cpp:2024
#12 0x0817353b in CEMSocket::OnReceive (this=0x108eadc0, nErrorCode=0) at EMSocket.cpp:261
#13 0x0816daa4 in CClientReqSocket::OnReceive (this=0x108eadc0, nErrorCode=0) at ListenSocket.cpp:2042
#14 0x0816dbe2 in CClientReqSocketHandler::ClientReqSocketHandler (this=0x1085f208, event=@0x10914a48)
    at ListenSocket.cpp:2117
#15 0x001780d0 in wxAppConsole::HandleEvent (this=0xa4de1b0, handler=0x1085f208, func=
      {__pfn = 0x816db2e , __delta = 0},
    event=@0x10914a48) at src/common/appbase.cpp:305
#16 0x002162b9 in wxEvtHandler::ProcessEventIfMatches (entry=@0x84380a0, handler=0x1085f208, event=@0x10914a48)
    at src/common/event.cpp:1169
#17 0x00215246 in wxEventHashTable::HandleEvent (this=0x8438078, event=@0x10914a48, self=0x1085f208)
    at src/common/event.cpp:837
#18 0x002164cc in wxEvtHandler::ProcessEvent (this=0x1085f208, event=@0x10914a48) at src/common/event.cpp:1231
#19 0x0021618d in wxEvtHandler::ProcessPendingEvents (this=0x1085f208) at src/common/event.cpp:1122
#20 0x00178036 in wxAppConsole::ProcessPendingEvents (this=0xa4de1b0) at src/common/appbase.cpp:278
#21 0x00593ccf in wxapp_pending_callback () at src/gtk/app.cpp:201
#22 0x007d51f3 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#23 0x007d1e4a in g_main_depth () from /usr/lib/libglib-2.0.so.0
#24 0x007d2f28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x007d3260 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x007d38a3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0x05dc9c33 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x005af4e6 in wxEventLoop::Run (this=0xaf10140) at src/gtk/evtloop.cpp:82
#29 0x00635fdb in wxAppBase::MainLoop (this=0xa4de1b0) at src/common/appcmn.cpp:262
#30 0x00636147 in wxAppBase::OnRun (this=0xa4de1b0) at src/common/appcmn.cpp:330
#31 0x001ba8b7 in wxEntry (argc=@0xfeeb2cf0, argv=0xfeeb2d74) at src/common/init.cpp:410
#32 0x082dd295 in main (argc=1, argv=0xfeeb2d74) at amule.cpp:176
(gdb) bt full
#0  0x002d87a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00c611a5 in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x0017863d in wxTrap () at src/common/appbase.cpp:569
No locals.
#3  0x00636752 in wxGUIAppTraitsBase::ShowAssertDialog (this=0xa51bca8, msg=@0xfeeb2400)
    at src/common/appcmn.cpp:533
        msgDlg = { = {static npos = 4294967195,
    m_pchData = 0xcfe1804 "updownclient.h(270): assert \"SecIdentSupRec\" failed.\nDo you want to stop the program?\nYou can also choose [Cancel] to suppress further warnings."}, }
#4  0x00178a4c in ShowAssertDialog (szFile=0x8361b22 "updownclient.h", nLine=270,
    szCond=0x8361b13 "SecIdentSupRec", szMsg=0x0, traits=0xa51bca8) at src/common/appbase.cpp:735
        s_bNoAsserts = false
        msg = { = {static npos = 4294967195,
    m_pchData = 0x108dabdc "updownclient.h(270): assert \"SecIdentSupRec\" failed."}, }
#5  0x001783cf in wxAppConsole::OnAssert (this=0xa4de1b0, file=0x8361b22 "updownclient.h", line=270,
    cond=0x8361b13 "SecIdentSupRec", msg=0x0) at src/common/appbase.cpp:438
No locals.
#6  0x0059484f in wxApp::OnAssert (this=0xa4de1b0, file=0x8361b22 "updownclient.h", line=270,
    cond=0x8361b13 "SecIdentSupRec", msg=0x0) at src/gtk/app.cpp:664
No locals.
#7  0x001786f4 in wxOnAssert (szFile=0x8361b22 "updownclient.h", nLine=270, szCond=0x8361b13 "SecIdentSupRec",
    szMsg=0x0) at src/common/appbase.cpp:615
        s_bInAssert = true
#8  0x00178670 in wxAssert (cond=0, szFile=0x8361b22 "updownclient.h", nLine=270,
    szCond=0x8361b13 "SecIdentSupRec", szMsg=0x0) at src/common/appbase.cpp:582
No locals.
#9  0x0817026b in CUpDownClient::GetSecureIdentState (this=0x10990980) at updownclient.h:270
No locals.
#10 0x0816b7ae in CClientReqSocket::ProcessExtPacket (this=0x108eadc0, packet=0x10731f30 "\001Ú\t", size=5,
    opcode=135 '\207') at ListenSocket.cpp:1549
        SecureIdentState = 25
#11 0x0816d9d1 in CClientReqSocket::PacketReceived (this=0x108eadc0, packet=0xf344200) at ListenSocket.cpp:2024
        bResult = 8
        uRawSize = 5
#12 0x0817353b in CEMSocket::OnReceive (this=0x108eadc0, nErrorCode=0) at EMSocket.cpp:261
        bPacketResult = 10
        toCopy = 5
        GlobalReadBuffer = "5ô;\200#îäp÷\205U\002\237Þ}HªÝúÑ\026÷þ®\237×]¿", 'ÿ' , "ú\230\000âÎ\020B\000\002\024½;\213\222*6\236Ëã\226éå\22400dc\000\025\000\000\000\000\001¶[\210\034\nh{Þ/8é¾/é\023¤í\017Î\213Î\vj\036\021F\036X¦ô\016\201\177°\220À*Ð*\006\026¼h\005\030n2Ð\025\003\vG\001\216\234y\220¢\021¸ì%\031L\fFPDüyÑÐj\026÷R\017\rBÎàËç\006a\177ä\036\032\213\003!\236*Þð´\t\004\237¤\0030¸$\020ÿ\rE-\037qð.\005à\203î{\\>Y-J\005\024\201ø"...
        readMax = 2000000
        ret = 108
        rptr = 0x843814b "\002\237Þ}HªÝúÑ\026÷þ®\237×]¿", 'ÿ' , "ú\230"
        rend = 0x84381ac "À*Ð*\006\026¼h\005\030n2Ð\025\003\vG\001\216\234y\220¢\021¸ì%\031L\fFPDüyÑÐj\026÷R\017\rBÎàËç\006a\177ä\036\032\213\003!\236*Þð´\t\004\237¤\0030¸$\020ÿ\rE-\037qð.\005à\203î{\\>Y-J\005\024\201øJ>}Îx,¸ ð«±ØÙ°SqÒrö\2033¥àø\237ý\237¦Gi\036x°&\036\234\022·]÷R\a#\035os\206\213³®®î¯ºn\233¤á\211´\210ÉÂÇ\231\nî\f×ÏiÆ-Áv\236ç\003á\"²\004n{áã\031\002"
#13 0x0816daa4 in CClientReqSocket::OnReceive (this=0x108eadc0, nErrorCode=0) at ListenSocket.cpp:2042
No locals.
#14 0x0816dbe2 in CClientReqSocketHandler::ClientReqSocketHandler (this=0x1085f208, event=@0x10914a48)
    at ListenSocket.cpp:2117
No locals.
#15 0x001780d0 in wxAppConsole::HandleEvent (this=0xa4de1b0, handler=0x1085f208, func=
      {__pfn = 0x816db2e , __delta = 0},
    event=@0x10914a48) at src/common/appbase.cpp:305
No locals.
#16 0x002162b9 in wxEvtHandler::ProcessEventIfMatches (entry=@0x84380a0, handler=0x1085f208, event=@0x10914a48)
    at src/common/event.cpp:1169
        tableId1 = 6123
        tableId2 = -1
#17 0x00215246 in wxEventHashTable::HandleEvent (this=0x8438078, event=@0x10914a48, self=0x1085f208)
    at src/common/event.cpp:837
        n = 0
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0xafc33f4: { = {m_nSize = 1,
    m_nCount = 1, m_pItems = 0xaeebf38}, }
        count = 1
        eventType = 10002
        eTTnode = (wxEventHashTable::EventTypeTable * const) 0xafc33f0
#18 0x002164cc in wxEvtHandler::ProcessEvent (this=0x1085f208, event=@0x10914a48) at src/common/event.cpp:1231
No locals.
#19 0x0021618d in wxEvtHandler::ProcessPendingEvents (this=0x1085f208) at src/common/event.cpp:1122
        event = (wxEvent *) 0x10914a48
        node = (class wxObjectListNode *) 0xf344200
#20 0x00178036 in wxAppConsole::ProcessPendingEvents (this=0xa4de1b0) at src/common/appbase.cpp:278
        handler = (wxEvtHandler *) 0x1085f208
        node = (class wxObjectListNode *) 0xc68ad98
#21 0x00593ccf in wxapp_pending_callback () at src/gtk/app.cpp:201
No locals.
#22 0x007d51f3 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0x007d1e4a in g_main_depth () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0x007d2f28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0x007d3260 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0x007d38a3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#27 0x05dc9c33 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#28 0x005af4e6 in wxEventLoop::Run (this=0xaf10140) at src/gtk/evtloop.cpp:82
        oldLoop = (wxEventLoop *) 0x0
        exitcode = 6514948
#29 0x00635fdb in wxAppBase::MainLoop (this=0xa4de1b0) at src/common/appcmn.cpp:262
        mainLoop = { = {m_ptr = 0xaf10140}, m_pp = 0xa4de1f0, m_pOld = 0x0}
#30 0x00636147 in wxAppBase::OnRun (this=0xa4de1b0) at src/common/appcmn.cpp:330
No locals.
#31 0x001ba8b7 in wxEntry (argc=@0xfeeb2cf0, argv=0xfeeb2d74) at src/common/init.cpp:410
        callOnExit = {}
        cleanupOnExit = {}
#32 0x082dd295 in main (argc=1, argv=0xfeeb2d74) at amule.cpp:176
No locals.
Logged