aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule 1.2.0 crashed  (Read 4705 times)

falso

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
amule 1.2.0 crashed
« on: November 27, 2003, 04:39:18 PM »

well amule crashed again. heres what i got

[code:1]Saving of server.met file Done !!! (i had this line repeated for like 500 times)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 27595)]
0x0816e086 in CPartFile::IsAlreadyRequested(unsigned, unsigned) (
    this=0x86acab8, start=611246080, end=611430399) at PartFile.cpp:753
753                     if (cur_block->StartOffset == start && cur_block->EndOffset == end)

bt full folows..

#0  0x0816e086 in CPartFile::IsAlreadyRequested(unsigned, unsigned) (
    this=0x86acab8, start=611246080, end=611430399) at PartFile.cpp:753
        cur_block = (Requested_Block_Struct *) 0x9
        pos = 0x889af60
#1  0x0816e23b in CPartFile::GetNextEmptyBlockInPart(unsigned short, Requested_Block_Struct*) (this=0x86acab8, partNumber=62, result=0x889af98)
    at PartFile.cpp:814
        firstGap = (Gap_Struct *) 0x8af3800
        currentGap = (Gap_Struct *) 0x86ae218
        end = 611430399
        blockLimit = 611430399
        partStart = 603136000
        start = 611246080
        partEnd = 612863999
#2  0x0817076b in CPartFile::GetNextRequestedBlock(CUpDownClient*, Requested_Block_Struct**, unsigned short*) (this=0x86acab8, sender=0x8766430,
    newblocks=0x8a8c390, count=0xbffff002) at PartFile.cpp:1533
        block = (Requested_Block_Struct *) 0x889af98
        foundPriorityPart = true
        gettingParts = {<> = {}, }
        nRarest = 5
        usedpart = 62
        usedlist = (CList *) 0xbfffef60
        requestedCount = 0
        newblockcount = 9
        partsav = (uint8 *) 0x8f0b478 >\001\001>
        randomness = 0
        liGoodParts = {<> = {}, internalList = 0x8a8c3a0,
  tail = 0x8a8c3a0, count = 1}
        liPossibleParts = {<> = {}, internalList = 0x0,
  tail = 0x0, count = 0}
        finished = false
#3  0x080d68a5 in CUpDownClient::SendBlockRequests() (this=0x8766430)
    at DownloadClient.cpp:441
        count = 0
        toadd = (Requested_Block_Struct **) 0x8a8c390
        packet = (Packet *) 0xbffff288
        data = (class CMemFile *) 0x8a8c390
        pos = 0x829d948
        null = 3221222416
        block = (Requested_Block_Struct *) 0x404c6828
#4  0x081137b6 in CClientReqSocket::ProcessPacket(char*, unsigned, unsigned char) (this=0x8d82ad8, packet=0x8bdb5e8 >¬]t@¬]t@>, size=0, opcode=85 'U')
    at ListenSocket.cpp:315
No locals.
#5  0x0811680f in CClientReqSocket::PacketReceived(Packet*) (this=0x8d82ad8,
    packet=0x8fabb00) at ListenSocket.cpp:818
No locals.
#6  0x080ed4fc in CEMSocket::OnReceive(int) (this=0x8d82ad8, nErrorCode=0)
    at EMSocket.cpp:208
        packet = (Packet *) 0x8fabb00
        packetBuffer = 0x8bdb5e8 >¬]t@¬]t@>
        GlobalReadBuffer = >ã\001\0\0\0UÅæ)\0\0@4°Z¹þP\005Þ?ÿ\030šÜK\2320\0pf$\235Æ\002\0\225vÒÐzõwÌh\034\220*\212\031\212FuŽÛé\030Ôú\002Ïê\235Œ\212\2260Ôž='=\027A\rg\224=ÑŸ\217\237ÑÁŠ\237KËB<\232¬@§.l2\017ZjÈ»\025)\022 \036Û×< ÄB\223\034H\017ϬÑuä\225\006#ãgy/úU²Ï\215z\235èÚ\177ÏÅdî\220Ÿ}·³Xܬ\227µ~\214yîäéÿ\205÷âº\211×Sàö|ãLi\226\217µ,Ú\001Ùm\223µMe\\Ðætú\213\0054+R\0164Æ\210\006>...
        readMax = 2000000
        ret = 1452
        rptr = 0x82de2a6 >Åæ)>
        rend = 0x82de84c >Ð\020\2025/\203M'­J3\017Ôæ\016\201vãè¹KŠ\034\225\e.2\003ºçärúdÈ\234tœàY\f \2342±)ÿš±\200ò.B\237\005k|ìe1\200ô¶àø\237\vFàô$Àί\017ëÝ~®í\222må\037Ø(g\200ÎZGô\230À/ Yý2êÿd\003k!àŽÂ;«\232\006þ\211\177yé å€2Ì5§Í\224ÿÉ9ôê$ã\230\030K_Â\224Ï¡\210R\234\0179\232\206D\225\037ÒL!\037Ç\037ëAåÏC\215\222Ô\031>@KÑóz&âÆŸ`Ü\212\222À\212Ñ\177<\032¥Ñ2t\024&+é\022\233\235é<;>...
#7  0x081168ab in CClientReqSocket::OnReceive(int) (this=0x8d82ad8,
    nErrorCode=0) at ListenSocket.cpp:839
No locals.
#8  0x0820ea04 in CamuleDlg::socketHandler(wxSocketEvent&) (this=0x850cb58,
    event=@0x889aef8) at amuleDlg.cpp:424
        soc = (class CClientReqSocket *) 0x8d82ad8
#9  0x402dfbc9 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#10 0x402df9e3 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#11 0x402df926 in wxEvtHandler::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#12 0x4029ffd1 in wxAppBase::ProcessPendingEvents() ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#13 0x402412f2 in wxApp::OnIdle(wxIdleEvent&) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#14 0x402dfbc9 in wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#15 0x402df9e3 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#16 0x4024125d in wxApp::ProcessIdle() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#17 0x40241efa in wxapp_idle_callback () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#18 0x408e8dbf in g_idle_dispatch () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#19 0x408e7c4e in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#20 0x408e8129 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#21 0x408e83c4 in g_main_run () from /usr/lib/libglib-1.2.so.0
No symbol table info available.
#22 0x407ec17f in gtk_main () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#23 0x402414c9 in wxApp::MainLoop() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#24 0x4029fe67 in wxAppBase::OnRun() () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#25 0x40241c1c in wxEntry(int, char**) () from /usr/lib/libwx_gtk-2.4.so
No symbol table info available.
#26 0x08208096 in main (argc=1, argv=0xbffff7f4) at amule.cpp:45
No locals.
#27 0x4062ec64 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
[/code:1]
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: amule 1.2.0 crashed
« Reply #1 on: November 27, 2003, 05:54:28 PM »

Hi falso,

As we have see on IRC, here is the fix i have commited :
[code:1]bool CPartFile::IsAlreadyRequested(uint32 start, uint32 end)
{
        for (POSITION pos =  requestedblocks_list.GetHeadPosition();pos != 0; requestedblocks_list.GetNext(pos)) {
                Requested_Block_Struct* cur_block =  requestedblocks_list.GetAt(pos);
                // if (cur_block->StartOffset == start && cur_block->EndOffset == end)
                /* eMule 0.30c manage the problem like that, i give it a try ... (Creteil) */
                if ((start <= cur_block->EndOffset) && (end >= cur_block->StartOffset)) {
                        return true;
                }
        }
        return false;
}[/code:1]
Please report if it fix the crash from this backtrace.

Hope it help ...
Logged
Creator of aMule & aStats projects