aMule Forum

English => Backtraces => Topic started by: asamule on May 19, 2004, 05:01:06 AM

Title: crash when adding another directory to shared list:IsUpPartAvailable
Post by: asamule on May 19, 2004, 05:01:06 AM
This happened just after I added another directory to my shared list.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 26310)]
0x08147d4f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x89e5580, iPart=0) at updownclient.h:268
268             bool                    IsUpPartAvailable(uint16 iPart) {return ( (iPart >= m_nUpPartCount) || (!m_abyUpPartStatus) )? 0:m_abyUpPartStatus[iPart];}
(gdb) bt
#0  0x08147d4f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x89e5580, iPart=0) at updownclient.h:268
#1  0x081443fa in CKnownFile::NewAvailPartsInfo() (this=0x861d978) at KnownFile.cpp:183
#2  0x08213a14 in CUpDownClient::ProcessUpFileStatus(char*, unsigned) (this=0x8a02d40, packet=0x89556a0 "\027k\027!KE\222I´7_È»ð/ØL",
    size=30) at UploadClient.cpp:440
#3  0x080ca8f3 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0x8934f50,
    packet=0x89556a0 "\027k\027!KE\222I´7_È»ð/ØL", size=30, opcode=88 'X') at ListenSocket.cpp:303
#4  0x080cf0d5 in CClientReqSocket::PacketReceived(Packet*) (this=0x8934f50, packet=0x89555a8) at ListenSocket.cpp:1005
#5  0x080d2754 in CEMSocket::OnReceive(int) (this=0x8934f50, nErrorCode=0) at EMSocket.cpp:283
#6  0x080cf171 in CClientReqSocket::OnReceive(int) (this=0x8934f50, nErrorCode=0) at ListenSocket.cpp:1033
#7  0x082249d6 in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x85173c8, event=@0x88da9b0) at amuleDlg.cpp:419
#8  0x402ea667 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402ea483 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x402ea3c6 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402aabc1 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x40248f84 in wxWakeUpIdle() () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x40657fa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#14 0x4065703d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x406574f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#16 0x40657724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#17 0x4057dc3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#18 0x40249a79 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x402aaa47 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x4024a1db in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x0821d976 in main (argc=1, argv=0xbffffb94) at amule.cpp:115
(gdb) bt full
#0  0x08147d4f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x89e5580, iPart=0) at updownclient.h:268
No locals.
#1  0x081443fa in CKnownFile::NewAvailPartsInfo() (this=0x861d978) at KnownFile.cpp:183
        i = 0
        pos = 0x85e9fa8
        partcount = 76
        flag = true
        count = {<> = {}, }
        cur_src = (CUpDownClient *) 0x89e5580
        cur_count = 7
#2  0x08213a14 in CUpDownClient::ProcessUpFileStatus(char*, unsigned) (this=0x8a02d40, packet=0x89556a0 "\027k\027!KE\222I´7_È»ð/ØL",
    size=30) at UploadClient.cpp:440
        nCompleteCountLast = 0
        nCompleteCountNew = 3
        done = 76
        data = { = { = {_vptr.CFile = 0x8232d28, m_fd = -1, m_error = 45, fFilePath = },
    fBuffer = 0x89556a0 "\027k\027!KE\222I´7_È»ð/ØL", fLength = 45, fGrowBytes = 0, fPosition = 30, fBufferSize = 30, fFileSize = 30,
    deleteBuffer = 0}, }
        cfilehash = "\027k\027!KE\222I´7_È»ð/Ø"
        tempreqfile = (class CKnownFile *) 0x861d978
        nED2KUpPartCount = 76
#3  0x080ca8f3 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0x8934f50,
    packet=0x89556a0 "\027k\027!KE\222I´7_È»ð/ØL", size=30, opcode=88 'X') at ListenSocket.cpp:303
        reqfileid = "\027k\027!KE\222I´7_È»ð/Ø"
        reqfile = (class CKnownFile *) 0x861d978
        data = (CSafeMemFile *) 0x8955740
        packet = (Packet *) 0x1f
#4  0x080cf0d5 in CClientReqSocket::PacketReceived(Packet*) (this=0x8934f50, packet=0x89555a8) at ListenSocket.cpp:1005
No locals.
#5  0x080d2754 in CEMSocket::OnReceive(int) (this=0x8934f50, nErrorCode=0) at EMSocket.cpp:283
        toCopy = 30
        GlobalReadBuffer = "ã\037\0\0\0X\027k\027!KE\222I´7_È»ð/ØL\0\001\0\0\0\0\0\0\0\0\0\003\0´7_È»ð/ØZ\f\021<\0\0\0\003\001\0ù@\022\0\0\003\001\0ú\0262\023\004\003\001\0û\0ª\0\0Ãõôó5\022¼\036t_§\037\205|¡ã\021\0\0\0O(Q_ç\227¡\201¼\036t_§\037\205|¡hanblard4.4\003\001\0\205\006\0\0\0\003\001\0\206\001\0\0\0\003\001\0\204\003\0\0\0ÔÇ}$\220\037¹[\027Ñ\223ã\021\0\0\0O ç¼\221kÙ©6\232µ«¹[\027Ñ\223¿Ó÷b~\017G\005Zò¤¼öb±ý¡\020ã\021"...
        readMax = 2000000
        ret = 36
        rptr = 0x82a6504 "´7_È»ð/ØZ\f\021<"
        rend = 0x82a6504 "´7_È»ð/ØZ\f\021<"
#6  0x080cf171 in CClientReqSocket::OnReceive(int) (this=0x8934f50, nErrorCode=0) at ListenSocket.cpp:1033
No locals.
#7  0x082249d6 in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x85173c8, event=@0x88da9b0) at amuleDlg.cpp:419
        soc = (class CClientReqSocket *) 0x8934f50
        current_socket = (struct wxSocketBase *) 0x8934f50
#8  0x402ea667 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#9  0x402ea483 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#10 0x402ea3c6 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x402aabc1 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x40248f84 in wxWakeUpIdle() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x40657fa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x4065703d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x406574f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x40657724 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x4057dc3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#18 0x40249a79 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#19 0x402aaa47 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#20 0x4024a1db in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#21 0x0821d976 in main (argc=1, argv=0xbffffb94) at amule.cpp:115
No locals.
Title: Very similar
Post by: |fombuFC|² on May 19, 2004, 10:38:50 AM
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084972928 (LWP 12867)]
0x0817e2f7 in CUpDownClient::IsPartAvailable(unsigned short) (this=0xa712e30,
    iPart=0) at updownclient.h:281
281             inline bool             IsPartAvailable(uint16 iPart)   {return( (iPart >= m_nPartCount) || (!m_abyPartStatus) )? 0:m_abyPartStatus[iPart];}
(gdb) bt
#0  0x0817e2f7 in CUpDownClient::IsPartAvailable(unsigned short) (
    this=0xa712e30, iPart=0) at updownclient.h:281
#1  0x0822ac99 in CPartFile::UpdatePartsInfo() (this=0x9f89ba0)
    at PartFile.cpp:2026
#2  0x0817b611 in CUpDownClient::ProcessFileStatus(bool, CSafeMemFile*, CPartFile*) (this=0xa02a590, bUdpPacket=false, data=0xbfed7d00, file=0x9f89ba0)
    at DownloadClient.cpp:506
#3  0x08140b97 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0xa59ffe0, packet=0x9f84808 "\022?ó42ÅÑ]¶?q\234Ñ[Ët", size=19,
    opcode=80 'P') at ListenSocket.cpp:455
#4  0x08146506 in CClientReqSocket::PacketReceived(Packet*) (this=0xa59ffe0,
    packet=0xa4bcb38) at ListenSocket.cpp:1702
#5  0x0814a245 in CEMSocket::OnReceive(int) (this=0xa59ffe0, nErrorCode=0)
    at EMSocket.cpp:290
#6  0x0814665a in CClientReqSocket::OnReceive(int) (this=0xa59ffe0,
    nErrorCode=0) at ListenSocket.cpp:1729
#7  0x08295a27 in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x9babd88,
    event=@0xa64dc10) at amuleDlg.cpp:444
#8  0x00c063a5 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
#9  0x00c061d7 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
#10 0x00c0610f in wxEvtHandler::ProcessPendingEvents() ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_gtk-2.4.so
#11 0x00bcfd65 in wxAppBase::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk-2.4.so
#12 0x00b7bd0f in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so
#13 0x001264ef in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#14 0x0012535b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x00125846 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#16 0x00125af4 in g_main_run () from /usr/lib/libglib-1.2.so.0
#17 0x003416af in gtk_main () from /usr/lib/libgtk-1.2.so.0
#18 0x00b7c6d6 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so
#19 0x00bcfc28 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so
#20 0x00b7cda7 in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so
#21 0x0828e25a in main (argc=1, argv=0xbfed81e4) at amule.cpp:114
(gdb)
(gdb) bt full
#0  0x0817e2f7 in CUpDownClient::IsPartAvailable(unsigned short) (
    this=0xa712e30, iPart=0) at updownclient.h:281
No locals.
#1  0x0822ac99 in CPartFile::UpdatePartsInfo() (this=0x9f89ba0)
    at PartFile.cpp:2026
        i = 0
        pos = 0xa415050
        sl = 11
        partcount = 92
        flag = false
        count = {<> = {}, }
        cur_src = (CUpDownClient *) 0xa712e30
#2  0x0817b611 in CUpDownClient::ProcessFileStatus(bool, CSafeMemFile*, CPartFile*) (this=0xa02a590, bUdpPacket=false, data=0xbfed7d00, file=0x9f89ba0)
    at DownloadClient.cpp:506
        nED2KPartCount = 0
        bPartsNeeded = true
        iNeeded = 0
#3  0x08140b97 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0xa59ffe0, packet=0x9f84808 "\022?ó42ÅÑ]¶?q\234Ñ[Ët", size=19,
    opcode=80 'P') at ListenSocket.cpp:455
        data = { = { = {_vptr.CFile = 0x830f808, m_fd = -1,
      m_error = 56, fFilePath = },
---Type to continue, or q to quit---
    fBuffer = 0x9f84808 "\022?ó42ÅÑ]¶?q\234Ñ[Ët", fLength = 1, fGrowBytes = 0,
    fPosition = 18, fBufferSize = 19, fFileSize = 19,
    deleteBuffer = 0}, }
        cfilehash = "\022?ó42ÅÑ]¶?q\234Ñ[Ët"
        file = (class CPartFile *) 0x9f89ba0
#4  0x08146506 in CClientReqSocket::PacketReceived(Packet*) (this=0xa59ffe0,
    packet=0xa4bcb38) at ListenSocket.cpp:1702
        bResult = 10
        uRawSize = 19
#5  0x0814a245 in CEMSocket::OnReceive(int) (this=0xa59ffe0, nErrorCode=0)
    at EMSocket.cpp:290
        bPacketResult = true
        toCopy = 19
        GlobalReadBuffer = "ãa\000\000\000Y\022?ó42ÅÑ]¶?q\234Ñ[ËtN\000[?ßµ¿_¹Ì_Áö³ª] Jenna Loves Rocco - Jenna Jameson & Rocco Siffredi XXX DivX.aviã\024\000\000\000P\022?ó42ÅÑ]¶?q\234Ñ[Ët\000\000|³À\202\002áëÓÀRoâE\223zF\211)hà²ðã\003\1771\220QX?*2 7÷-Á? 4pHþ\203=\231\032ll\034\005\r\b\223Á?Ô±\b­g¯*È&¿p?-ÃJáåÉ"...
        readMax = 2000000
        ret = 127
        rptr = 0x83d5dbf "³À\202\002áëÓÀRoâE\223zF\211)hà²ðã\003\1771\220QX?*2 7÷-Á? 4pHþ\203=\231\032ll\034\005\r\b\223Á?Ô±\b­g¯*È&¿p?-ÃJáåÉ\201©/I\231B¡ÄÁì\207^Íâ'óƪóÚÉÀ\024i-7«?ZzÇv$\023ÓW\216+9Rã9Úc\231+\003\212û?\220àãC\":{\031ÁÙÆ/ïÓ\210`Pê6\032$\020£°\022MX~bñòÖaøà\227\200UM\210Zu_\230¡}Öã?\216â\027Ú\001%5 ÿÑ(a---Type to continue, or q to quit---
¥·#?\tËÞÔîgïoÕ3s"...
        rend = 0x83d5dbf "³À\202\002áëÓÀRoâE\223zF\211)hà²ðã\003\1771\220QX?*2 7÷-Á? 4pHþ\203=\231\032ll\034\005\r\b\223Á?Ô±\b­g¯*È&¿p?-ÃJáåÉ\201©/I\231B¡ÄÁì\207^Íâ'óƪóÚÉÀ\024i-7«?ZzÇv$\023ÓW\216+9Rã9Úc\231+\003\212û?\220àãC\":{\031ÁÙÆ/ïÓ\210`Pê6\032$\020£°\022MX~bñòÖaøà\227\200UM\210Zu_\230¡}Öã?\216â\027Ú\001%5 ÿÑ(a¥·#?\tËÞÔîgïoÕ3s"...
#6  0x0814665a in CClientReqSocket::OnReceive(int) (this=0xa59ffe0,
    nErrorCode=0) at ListenSocket.cpp:1729
No locals.
#7  0x08295a27 in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x9babd88,
    event=@0xa64dc10) at amuleDlg.cpp:444
        soc = (class CClientReqSocket *) 0xa59ffe0
        current_socket = (struct wxSocketBase *) 0xa59ffe0
#8  0x00c063a5 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#9  0x00c061d7 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#10 0x00c0610f in wxEvtHandler::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#11 0x00bcfd65 in wxAppBase::ProcessPendingEvents() ()
---Type to continue, or q to quit---
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#12 0x00b7bd0f in wxapp_pending_callback () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#13 0x001264ef in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x0012535b in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x00125846 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x00125af4 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x003416af in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#18 0x00b7c6d6 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#19 0x00bcfc28 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#20 0x00b7cda7 in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#21 0x0828e25a in main (argc=1, argv=0xbfed81e4) at amule.cpp:114
No locals.
Title: happened again, this time I was not doing anything
Post by: asamule on May 20, 2004, 01:43:53 AM
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21403)]
0x081048b9 in CUpDownClient::IsPartAvailable(unsigned short) (this=0x8ac7c68, iPart=0) at updownclient.h:267
267             inline bool             IsPartAvailable(uint16 iPart)   {return ( (iPart >= m_nPartCount) || (!m_abyPartStatus) )? 0:m_abyPartStatus[iPart];}
(gdb) bt
#0  0x081048b9 in CUpDownClient::IsPartAvailable(unsigned short) (this=0x8ac7c68, iPart=0) at updownclient.h:267
#1  0x081b81a9 in CPartFile::NewSrcPartsInfo() (this=0x88cd848) at PartFile.cpp:2007
#2  0x08101b0d in CUpDownClient::ProcessFileStatus(char*, unsigned) (this=0x8959548,
    packet=0x8c24628 "nq\225ûë¿å\207(Å8²R\035\005\025", size=18) at DownloadClient.cpp:371
#3  0x080cabf9 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0x8935f30,
    packet=0x8c24628 "nq\225ûë¿å\207(Å8²R\035\005\025", size=18, opcode=80 'P') at ListenSocket.cpp:346
#4  0x080cf0d5 in CClientReqSocket::PacketReceived(Packet*) (this=0x8935f30, packet=0x8bbc870) at ListenSocket.cpp:1005
#5  0x080d2754 in CEMSocket::OnReceive(int) (this=0x8935f30, nErrorCode=0) at EMSocket.cpp:283
#6  0x080cf171 in CClientReqSocket::OnReceive(int) (this=0x8935f30, nErrorCode=0) at ListenSocket.cpp:1033
#7  0x082249ee in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x85173c8, event=@0x8b56b88) at amuleDlg.cpp:419
#8  0x402ea667 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402ea483 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x402ea3c6 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402aabc1 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x40248f84 in wxWakeUpIdle() () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x40657fa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#14 0x4065703d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x406574f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#16 0x40657724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#17 0x4057dc3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#18 0x40249a79 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x402aaa47 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x4024a1db in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
b#21 0x0821d976 in main (argc=1, argv=0xbffffb94) at amule.cpp:115
(gdb) bt full
#0  0x081048b9 in CUpDownClient::IsPartAvailable(unsigned short) (this=0x8ac7c68, iPart=0) at updownclient.h:267
No locals.
#1  0x081b81a9 in CPartFile::NewSrcPartsInfo() (this=0x88cd848) at PartFile.cpp:2007
        i = 0
        pos = 0x0
        sl = 65
        partcount = 7
        flag = false
        count = {<> = {}, }
        cur_src = (CUpDownClient *) 0x8ac7c68
        cur_count = 0
#2  0x08101b0d in CUpDownClient::ProcessFileStatus(char*, unsigned) (this=0x8959548,
    packet=0x8c24628 "nq\225ûë¿å\207(Å8²R\035\005\025", size=18) at DownloadClient.cpp:371
        data = { = { = {_vptr.CFile = 0x8232d48, m_fd = -1, m_error = false, fFilePath = },
    fBuffer = 0x8c24628 "nq\225ûë¿å\207(Å8²R\035\005\025", fLength = 0, fGrowBytes = 0, fPosition = 18, fBufferSize = 18,
    fFileSize = 18, deleteBuffer = 0}, }
        cfilehash = "nq\225ûë¿å\207(Å8²R\035\005\025"
        nED2KPartCount = 0
        bPartsNeeded = true
#3  0x080cabf9 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0x8935f30,
    packet=0x8c24628 "nq\225ûë¿å\207(Å8²R\035\005\025", size=18, opcode=80 'P') at ListenSocket.cpp:346
No locals.
#4  0x080cf0d5 in CClientReqSocket::PacketReceived(Packet*) (this=0x8935f30, packet=0x8bbc870) at ListenSocket.cpp:1005
No locals.
#5  0x080d2754 in CEMSocket::OnReceive(int) (this=0x8935f30, nErrorCode=0) at EMSocket.cpp:283
        toCopy = 18
        GlobalReadBuffer = "ã\023\0\0\0Pnq\225ûë¿å\207(Å8²R\035\005\025\0\0Babylon5 s2 Gag Reel.avi\0\0\0\003\001\0ù9\0229\022\003\001\0ú\0262\023\004\003\001\0û\200ª\0\0Ãõôó5\022Ó\201NO´í\207v\0362ñ\vð\023|\207\0274p\024ÖÍ\222ótàî²Xý_\005±@÷¹\215\003\025ø û\200¦r\224»3?uÖ\\\026«T$åÅJÇB/\233j\023\t  \226ê\217Å,¤£\230ÿÃÇ\023]\035®NgÖ\201ë|J]UÂ$ÓÐ5c& \225åeÓ´{Mâ\207\227þÈhG\177«êã\025"...
        readMax = 2000000
        ret = 24
        rptr = 0x82a64f8 "filename I was downloading"
        rend = 0x82a64f8 "filename I was downloading"
#6  0x080cf171 in CClientReqSocket::OnReceive(int) (this=0x8935f30, nErrorCode=0) at ListenSocket.cpp:1033
No locals.
#7  0x082249ee in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x85173c8, event=@0x8b56b88) at amuleDlg.cpp:419
        soc = (class CClientReqSocket *) 0x8935f30
        current_socket = (struct wxSocketBase *) 0x8935f30
#8  0x402ea667 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#9  0x402ea483 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#10 0x402ea3c6 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#11 0x402aabc1 in wxAppBase::ProcessPendingEvents() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#12 0x40248f84 in wxWakeUpIdle() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#13 0x40657fa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#14 0x4065703d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#15 0x406574f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#16 0x40657724 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#17 0x4057dc3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#18 0x40249a79 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#19 0x402aaa47 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#20 0x4024a1db in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#21 0x0821d976 in main (argc=1, argv=0xbffffb94) at amule.cpp:115
No locals.
Title: Re: crash when adding another directory to shared list:IsUpPartAvailable
Post by: nsd20463 on May 22, 2004, 11:57:37 AM
Here's the same bt. I had reconfigured the shared dirs a few minutes before, adding many new files. amule didn't crash right away; maybe 30 minutes later.

[Switching to Thread 1092095456 (LWP 27728)]
0x0810bef1 in CUpDownClient::IsPartAvailable (this=0x8921658, iPart=31) at updownclient.h:281
281             inline bool             IsPartAvailable(uint16 iPart)   {return ( (iPart >= m_nPartCount) || (!m_abyPartStatus) )? 0:m_abyPartStatus[iPart];}
(gdb) bt
#0  0x0810bef1 in CUpDownClient::IsPartAvailable (this=0x8921658, iPart=31) at updownclient.h:281
#1  0x081c5dd5 in CPartFile::UpdateAvailablePartsCount (this=0x889bce8) at PartFile.cpp:3244
#2  0x0811b861 in CDownloadQueue::RemoveSource (this=0x8831188, toremove=0x8a389f8, updatewindow=true, bDoStatsUpdate=true)
    at DownloadQueue.cpp:605
#3  0x08100229 in CClientList::RemoveClient (this=0x861cfd8, toremove=0x8a389f8) at ClientList.cpp:167
#4  0x080dfd27 in ~CUpDownClient (this=0x8a389f8) at BaseClient.cpp:238
#5  0x080cd34e in CClientReqSocket::Disconnect (this=0x8cce9a0, strReason={<> = {}, })
    at ListenSocket.cpp:145
#6  0x080d40e4 in CClientReqSocket::OnError (this=0x8cce9a0, nErrorCode=2) at ListenSocket.cpp:1683
#7  0x0822d5a1 in CamuleDlg::socketHandler (this=0x85257e8, event=@0x8a3ec10) at amuleDlg.cpp:441
#8  0x402ed667 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
#9  0x402ed483 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_gtk-2.4.so.0
#10 0x402ed3c6 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
#11 0x402adbc1 in wxAppBase::ProcessPendingEvents () from /usr/lib/libwx_gtk-2.4.so.0
#12 0x4024bf84 in wxWakeUpIdle () from /usr/lib/libwx_gtk-2.4.so.0
#13 0x4065afa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#14 0x4065a03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#15 0x4065a4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#16 0x4065a724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#17 0x40580c3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#18 0x4024ca79 in wxApp::MainLoop () from /usr/lib/libwx_gtk-2.4.so.0
#19 0x402ada47 in wxAppBase::OnRun () from /usr/lib/libwx_gtk-2.4.so.0
#20 0x4024d1db in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#21 0x08225f02 in main (argc=1, argv=0xbffff3c4) at amule.cpp:114
(gdb) bt full
#0  0x0810bef1 in CUpDownClient::IsPartAvailable (this=0x8921658, iPart=31) at updownclient.h:281
No locals.
#1  0x081c5dd5 in CPartFile::UpdateAvailablePartsCount (this=0x889bce8) at PartFile.cpp:3244
        pos = 0x0
        sl = 95
        ixPart = 31
        availablecounter = 31 '\037'
        breakflag = false
        iPartCount = 62
#2  0x0811b861 in CDownloadQueue::RemoveSource (this=0x8831188, toremove=0x8a389f8, updatewindow=true, bDoStatsUpdate=true)
    at DownloadQueue.cpp:605
        cur_file = (class CPartFile *) 0x889bce8
        i = 2
        size = 42
        removed = false
        pos3 = 0x0
        pos4 = 0x64
#3  0x08100229 in CClientList::RemoveClient (this=0x861cfd8, toremove=0x8a389f8) at ClientList.cpp:167
        pos = 0x8a38c58
#4  0x080dfd27 in ~CUpDownClient (this=0x8a389f8) at BaseClient.cpp:238
No locals.
#5  0x080cd34e in CClientReqSocket::Disconnect (this=0x8cce9a0, strReason={<> = {}, })
    at ListenSocket.cpp:145
        temp = (CUpDownClient *) 0x8a389f8
#6  0x080d40e4 in CClientReqSocket::OnError (this=0x8cce9a0, nErrorCode=2) at ListenSocket.cpp:1683
        strError = {<> = {}, }
#7  0x0822d5a1 in CamuleDlg::socketHandler (this=0x85257e8, event=@0x8a3ec10) at amuleDlg.cpp:441
        soc = (class CClientReqSocket *) 0x8cce9a0
        current_socket = (struct wxSocketBase *) 0x8cce9a0
#8  0x402ed667 in wxEvtHandler::SearchEventTable () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
... (no more debug; we're in the libwx)
Title: another one of the same kind
Post by: BeFalou on May 31, 2004, 08:50:38 AM
aMuleCVS+wxGTK-2.5.1

Here's the BT:

Program received signal SIGSEGV, Segmentation fault.
0x081a140f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x8db6d80, iPart=0)
    at updownclient.h:287
287             bool                    IsUpPartAvailable(uint16 iPart) {return ( (iPart >= m_nUpPartCount) || (!m_abyUpPartStatus) )? 0:m_abyUpPartStatus[iPart];}
(gdb) bt
#0  0x081a140f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x8db6d80, iPart=0)
    at updownclient.h:287
#1  0x081a0c49 in CKnownFile::UpdatePartsInfo() (this=0x86925b0) at KnownFile.cpp:1082
#2  0x0826482d in CUpDownClient::ProcessExtendedInfo(CSafeMemFile*, CKnownFile*) (this=0x8ccc270,
    data=0xbffff1b0, tempreqfile=0x86925b0) at UploadClient.cpp:503
#3  0x08126835 in CClientReqSocket::ProcessExtPacket(char*, unsigned, unsigned char) (
    this=0x8ebd918, packet=0x8f97780 "\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇX\a", size=23,
    opcode=146 '\222') at ListenSocket.cpp:1204
#4  0x08128582 in CClientReqSocket::PacketReceived(Packet*) (this=0x8ebd918, packet=0x8afee60)
    at ListenSocket.cpp:1717
#5  0x0812c242 in CEMSocket::OnReceive(int) (this=0x8ebd918, nErrorCode=0) at EMSocket.cpp:262
#6  0x0812864b in CClientReqSocket::OnReceive(int) (this=0x8ebd918, nErrorCode=0)
    at ListenSocket.cpp:1735
#7  0x08128729 in CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (this=0x8fed630,
    event=@0x9190990) at ListenSocket.cpp:1765
(gdb) bt full
#0  0x081a140f in CUpDownClient::IsUpPartAvailable(unsigned short) (this=0x8db6d80, iPart=0)
    at updownclient.h:287
No locals.
#1  0x081a0c49 in CKnownFile::UpdatePartsInfo() (this=0x86925b0) at KnownFile.cpp:1082
        i = 0
        cur_src = (CUpDownClient *) 0x8db6d80
        pos = 0x8b56998
        partcount = 7
        flag = true
        count = {<> = {}, }
        k_test = 160
        event = {ID = 3221221184, byte_value = 148 '\224', long_value = 2,
  longlong_value = 31147546492, string_value = , ptr_value = 0x17}
#2  0x0826482d in CUpDownClient::ProcessExtendedInfo(CSafeMemFile*, CKnownFile*) (this=0x8ccc270,
    data=0xbffff1b0, tempreqfile=0x86925b0) at UploadClient.cpp:503
        nCompleteCountLast = 0
        nCompleteCountNew = 107
        done = 7
        nED2KUpPartCount = 7
#3  0x08126835 in CClientReqSocket::ProcessExtPacket(char*, unsigned, unsigned char) (
    this=0x8ebd918, packet=0x8f97780 "\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇX\a", size=23,
    opcode=146 '\222') at ListenSocket.cpp:1204
        data_in = { = { = {_vptr.CFile = 0x830b3e8, m_fd = -1, m_error = 252,
      fFilePath = }, fBuffer = 0x8f97780 "\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇX\a",
    fLength = 37, fGrowBytes = 0, fPosition = 22, fBufferSize = 23, fFileSize = 23,
    deleteBuffer = 0}, }
---Type to continue, or q to quit---
        reqfilehash = "\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇ"
        reqfile = (class CKnownFile *) 0x86925b0
        opcode_in = 88 'X'
        data_out = { = { = {_vptr.CFile = 0x830b3e8, m_fd = -1, m_error = 184,
      fFilePath = }, fBuffer = 0x8f46030 "\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇD",
    fLength = 0, fGrowBytes = 128, fPosition = 16, fBufferSize = 128, fFileSize = 16,
    deleteBuffer = 1}, }
#4  0x08128582 in CClientReqSocket::PacketReceived(Packet*) (this=0x8ebd918, packet=0x8afee60)
    at ListenSocket.cpp:1717
        bResult = 64
        uRawSize = 23
#5  0x0812c242 in CEMSocket::OnReceive(int) (this=0x8ebd918, nErrorCode=0) at EMSocket.cpp:262
        bPacketResult = 64
        toCopy = 23
        GlobalReadBuffer = "Å\030\0\0\0\222\235q\eèÈ@Ñ\025­\026Ñ»\216«ÅÇX\a\0Bk\0OÍ *\032?\a*!\f¥%$ö\217dcÚ±hÖ\"Æ.w?'+ð\n\214ui¢\032BFøÃ`Eh\230\230AÂ\212°±àYý(IXÅ?¬Í\21189&ç8\023\036+Ö²?î\022ÕÆE@aM<#\r×­ Nd Ð\231\212Ñ!g^N*×é (<ç:\\í}/x;É»N²e?\a@µ»@Á\026¯R\226\036Ø\211\220\231±ßbQ²Ï?8÷\234Àsc?Êë\202?ß\233MÑ\fU\001?çÁZ!>ªî\001\222\207O\bÉ)×"...
        readMax = 2000000
        ret = 29
        rptr = 0x83b365d "Í *\032?\a*!\f¥%$ö\217dcÚ±hÖ\"Æ.w?'+ð\n\214ui¢\032BFøÃ`Eh\230\230AÂ\212°±àYý(IXÅ?¬Í\21189&ç8\023\036+Ö²?î\022ÕÆE@aM<#\r×­ Nd Ð\231\212Ñ!g^N*×é (<ç:\\í}/x;É»N²e?\a@µ»@Á\026¯R\226\036Ø\211\220\231±ßbQ²Ï?8÷\234Àsc?Êë\202?ß\233MÑ\fU\001?çÁZ!>ªî\001\222\207O\bÉ)×9=hG??\201Õ?â»\235\016Þ\235+\002©H\231Ý\021\vOÖ1#dJ"...
        rend = 0x83b365d "Í *\032?\a*!\f¥%$ö\217dcÚ±hÖ\"Æ.w?'+ð\n\214ui¢\032BFøÃ`Eh\230\230AÂ\212°±àYý(IXÅ?¬Í\21189&ç8\023\036+Ö²?î\022ÕÆE@aM<#\r×­ Nd Ð\231\212Ñ!g^N*×é (<ç:\\í}/x;É»N²e?\a@µ»@Á\026¯R\---Type to continue, or q to quit---
226\036Ø\211\220\231±ßbQ²Ï?8÷\234Àsc?Êë\202?ß\233MÑ\fU\001?çÁZ!>ªî\001\222\207O\bÉ)×9=hG??\201Õ?â»\235\016Þ\235+\002©H\231Ý\021\vOÖ1#dJ"...
#6  0x0812864b in CClientReqSocket::OnReceive(int) (this=0x8ebd918, nErrorCode=0)
    at ListenSocket.cpp:1735
No locals.
#7  0x08128729 in CClientReqSocketHandler::ClientReqSocketHandler(wxSocketEvent&) (this=0x8fed630,
    event=@0x9190990) at ListenSocket.cpp:1765
No locals.

-----------

Bye.