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 in GetSecureIdentState  (Read 1887 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 in GetSecureIdentState
« on: August 19, 2004, 01:00:29 PM »

This is an assert, while doing nothing. The one responsible, please raise your right hand! :)

Code: [Select]
(gdb) bt
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00754e1b in raise () from /lib/tls/libpthread.so.0
#2  0x00cf079d in wxTrap() () at src/common/appbase.cpp:569
#3  0x0046054a in wxGUIAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x94c7d50, msg=@0xbff77200)
    at src/common/appcmn.cpp:533
#4  0x00cf0bac in ShowAssertDialog (szFile=0x82e4f2e "updownclient.h", nLine=253,
    szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0, traits=0x94c7d50) at src/common/appbase.cpp:735
#5  0x00cf052f in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x9494d08,
    file=0x82e4f2e "updownclient.h", line=253, cond=0x82e4f1f "SecIdentSupRec", msg=0x0)
    at src/common/appbase.cpp:438
#6  0x003c0357 in wxApp::OnAssert(char const*, int, char const*, char const*) (this=0x9494d08,
    file=0x82e4f2e "updownclient.h", line=253, cond=0x82e4f1f "SecIdentSupRec", msg=0x0) at src/gtk/app.cpp:664
#7  0x00cf0854 in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x82e4f2e "updownclient.h",
    nLine=253, szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0) at src/common/appbase.cpp:615
#8  0x00cf07d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x82e4f2e "updownclient.h", nLine=253, szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0)
    at src/common/appbase.cpp:582
#9  0x08125581 in CUpDownClient::GetSecureIdentState() (this=0xc0d6aa8) at updownclient.h:253
#10 0x0812123f in CClientReqSocket::ProcessExtPacket(char const*, unsigned, unsigned char) (this=0xbefe7e0,
    packet=0xb402798 "\001\025\025", size=5, opcode=135 '\207') at ListenSocket.cpp:1519
#11 0x08122e70 in CClientReqSocket::PacketReceived(Packet*) (this=0xbefe7e0, packet=0xa85ffd0)
    at ListenSocket.cpp:1978
#12 0x08175bdf in CEMSocket::OnReceive(int) (this=0xbefe7e0, nErrorCode=0) at EMSocket.cpp:261
#13 0x08122f44 in CClientReqSocket::OnReceive(int) (this=0xbefe7e0, nErrorCode=0) at ListenSocket.cpp:1996
#14 0x08122ffe in CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (this=0xb10f8a0,
    event=@0xba0f1f8) at ListenSocket.cpp:2019
#15 0x00cf0230 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (
    this=0x9494d08, handler=0xb10f8a0, func=
      {__pfn = 0x8122f4a , __delta = 0},
    event=@0xba0f1f8) at src/common/appbase.cpp:305
#16 0x00d8e229 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (
    entry=@0x838fae0, handler=0xb10f8a0, event=@0xba0f1f8) at src/common/event.cpp:1169
#17 0x00d8d1b6 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x838fab4, event=@0xba0f1f8,
    self=0xb10f8a0) at src/common/event.cpp:837
#18 0x00d8e43c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xb10f8a0, event=@0xba0f1f8)
    at src/common/event.cpp:1231
#19 0x00d8e0fd in wxEvtHandler::ProcessPendingEvents() (this=0xb10f8a0) at src/common/event.cpp:1122
#20 0x00cf0196 in wxAppConsole::ProcessPendingEvents() (this=0x9494d08) at src/common/appbase.cpp:278
#21 0x003bf7d7 in wxapp_pending_callback () at src/gtk/app.cpp:201
#22 0x0668cb33 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
#23 0x06689fdd in unblock_source () from /usr/lib/libglib-2.0.so.0
#24 0x0668afd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x0668b2ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x0668b9cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0x0624c39f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x09e51590 in ?? ()
#29 0xbff77af4 in ?? ()
#30 0xbff77afc in ?? ()
#31 0xbff77988 in ?? ()
#32 0x09e51590 in ?? ()
(gdb) bt full
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x00754e1b in raise () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0x00cf079d in wxTrap() () at src/common/appbase.cpp:569
No locals.
#3  0x0046054a in wxGUIAppTraitsBase::ShowAssertDialog(wxString const&) (this=0x94c7d50, msg=@0xbff77200)
    at src/common/appcmn.cpp:533
        msgDlg = { = {static npos = 4294967195,
    m_pchData = 0xbcd4a7c "updownclient.h(253): assert \"SecIdentSupRec\" failed.\nDo you want to stop the program?\nYou can also choose [Cancel] to suppress further warnings."}, }
#4  0x00cf0bac in ShowAssertDialog (szFile=0x82e4f2e "updownclient.h", nLine=253,
    szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0, traits=0x94c7d50) at src/common/appbase.cpp:735
        s_bNoAsserts = false
        msg = { = {static npos = 4294967195,
    m_pchData = 0xc0c2314 "updownclient.h(253): assert \"SecIdentSupRec\" failed."}, }
#5  0x00cf052f in wxAppConsole::OnAssert(char const*, int, char const*, char const*) (this=0x9494d08,
    file=0x82e4f2e "updownclient.h", line=253, cond=0x82e4f1f "SecIdentSupRec", msg=0x0)
    at src/common/appbase.cpp:438
No locals.
#6  0x003c0357 in wxApp::OnAssert(char const*, int, char const*, char const*) (this=0x9494d08,
    file=0x82e4f2e "updownclient.h", line=253, cond=0x82e4f1f "SecIdentSupRec", msg=0x0) at src/gtk/app.cpp:664
No locals.
#7  0x00cf0854 in wxOnAssert(char const*, int, char const*, char const*) (szFile=0x82e4f2e "updownclient.h",
    nLine=253, szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0) at src/common/appbase.cpp:615
        s_bInAssert = true
#8  0x00cf07d0 in wxAssert(int, char const*, int, char const*, char const*) (cond=0,
    szFile=0x82e4f2e "updownclient.h", nLine=253, szCond=0x82e4f1f "SecIdentSupRec", szMsg=0x0)
    at src/common/appbase.cpp:582
No locals.
#9  0x08125581 in CUpDownClient::GetSecureIdentState() (this=0xc0d6aa8) at updownclient.h:253
No locals.
#10 0x0812123f in CClientReqSocket::ProcessExtPacket(char const*, unsigned, unsigned char) (this=0xbefe7e0,
    packet=0xb402798 "\001\025\025", size=5, opcode=135 '\207') at ListenSocket.cpp:1519
No locals.
#11 0x08122e70 in CClientReqSocket::PacketReceived(Packet*) (this=0xbefe7e0, packet=0xa85ffd0)
    at ListenSocket.cpp:1978
        bResult = 8
        uRawSize = 5
#12 0x08175bdf in CEMSocket::OnReceive(int) (this=0xbefe7e0, nErrorCode=0) at EMSocket.cpp:261
        bPacketResult = 9
        toCopy = 5
        GlobalReadBuffer = "˲\001\202Q3\222\224ËÚê\200#\000v\000pMä°\204¸\021\216P\rß\2250\vIE¬å^@\nðùI\204Ô%®\210\006\000\006$Âjr8nßõY\n!õ\027\233£\235ÑÞd\202N\231i\035ϼî\215\204Û\000\030\206à3øª¢ÀB\005»\036»@\fK\000?=\177jHJú²mî\000~\005\000-\eÕ°ð7t\0001\0016Éë\000\037Üà\vÒ\006\006\213u\035t\000\e\220Æu\017]\2110»`+\217½à\r@@Rî\200\005àQ¿>ç\000?\r\003#U\225n\001\b\024!\220û!ÖkY\206\027jMÉö \200j\b\005DÐ@Ö\000fL\001\000"...
        readMax = 2000000
        ret = 11
        rptr = 0x838ffeb "\200#"
        rend = 0x838ffeb "\200#"
#13 0x08122f44 in CClientReqSocket::OnReceive(int) (this=0xbefe7e0, nErrorCode=0) at ListenSocket.cpp:1996
No locals.
#14 0x08122ffe in CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (this=0xb10f8a0,
    event=@0xba0f1f8) at ListenSocket.cpp:2019
No locals.
#15 0x00cf0230 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (
    this=0x9494d08, handler=0xb10f8a0, func=
      {__pfn = 0x8122f4a , __delta = 0},
    event=@0xba0f1f8) at src/common/appbase.cpp:305
No locals.
#16 0x00d8e229 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (
    entry=@0x838fae0, handler=0xb10f8a0, event=@0xba0f1f8) at src/common/event.cpp:1169
        tableId1 = 6123
        tableId2 = -1
#17 0x00d8d1b6 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0x838fab4, event=@0xba0f1f8,
    self=0xb10f8a0) at src/common/event.cpp:837
        n = 0
        eventEntryTable = (const wxEventTableEntryPointerArray &) @0x9dc23b4: { = {
    m_nSize = 1, m_nCount = 1, m_pItems = 0x9db7318}, }
        count = 1
        eventType = 10002
        eTTnode = (EventTypeTable * const) 0x9dc23b0
#18 0x00d8e43c in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xb10f8a0, event=@0xba0f1f8)
    at src/common/event.cpp:1231
No locals.
#19 0x00d8e0fd in wxEvtHandler::ProcessPendingEvents() (this=0xb10f8a0) at src/common/event.cpp:1122
        event = (wxEvent *) 0xba0f1f8
        node = (class wxObjectListNode *) 0xa85ffd0
#20 0x00cf0196 in wxAppConsole::ProcessPendingEvents() (this=0x9494d08) at src/common/appbase.cpp:278
        handler = (wxEvtHandler *) 0xb10f8a0
        node = (class wxObjectListNode *) 0xa799388
#21 0x003bf7d7 in wxapp_pending_callback () at src/gtk/app.cpp:201
No locals.
#22 0x0668cb33 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0x06689fdd in unblock_source () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0x0668afd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0x0668b2ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0x0668b9cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#27 0x0624c39f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#28 0x09e51590 in ?? ()
No symbol table info available.
#29 0xbff77af4 in ?? ()
No symbol table info available.
#30 0xbff77afc in ?? ()
No symbol table info available.
#31 0xbff77988 in ?? ()
No symbol table info available.
#32 0x09e51590 in ?? ()
No symbol table info available.
(gdb) frame 9
#9  0x08125581 in CUpDownClient::GetSecureIdentState() (this=0xc0d6aa8) 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

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Assert in GetSecureIdentState
« Reply #1 on: August 19, 2004, 01:24:24 PM »

Lol, this is one of those rather silly asserts if I recall corectly. The function is this:
Code: [Select]
uint8 GetSecureIdentState() {
if (m_SecureIdentState != IS_UNAVAILABLE) {
if (!SecIdentSupRec) {
printf("\nWrong Tags on SecIdentState packet!!\n");
printf("%s\n",unicode2char(GetClientFullInfo()));
printf("User Disconnected.\n");
}
wxASSERT(SecIdentSupRec);
}
return m_SecureIdentState;
}

I cant really see any immediate need for this, however it might be worth looking into. ;)
Logged