aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: A different bug.  (Read 1909 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
A different bug.
« on: June 14, 2004, 06:23:08 AM »

A different one this time. requester is thrased in CamuleApp::OnFinishedHashing.

Code: [Select]
(gdb) bt
#0  0x00accc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x007ba989 in raise () from /lib/tls/libc.so.6
#2  0x007bc342 in abort () from /lib/tls/libc.so.6
#3  0x004dbb4e in wxFatalSignalHandler () from /usr/lib/libwx_base-2.5.so.1
#4  
#5  0x082448f9 in CList::Find(CPartFile*, POSITION) const (this=0x98fba54,
    searchValue=0x9227fa0, startAfter={m_ptr = 0x0}) at CTypedPtrList.h:449
#6  0x0823fcc4 in CPartFile::RemoveAllSources(bool) (this=0x9227fa0, bTryToSwap=true) at PartFile.cpp:2598
#7  0x08240919 in CPartFile::StopFile(bool) (this=0x9227fa0, bCancel=false) at PartFile.cpp:2749
#8  0x0823e80a in CPartFile::CompleteFile(bool) (this=0x9227fa0, bIsHashingDone=true) at PartFile.cpp:2312
#9  0x0823b2ba in CPartFile::PartFileHashFinished(CKnownFile*) (this=0x9227fa0, result=0xb9a7940)
    at PartFile.cpp:1117
#10 0x082a94d7 in CamuleApp::OnFinishedHashing(wxCommandEvent&) (this=0x8b609b0, evt=@0x917ab60)
    at amule.cpp:1773
#11 0x00445d8f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/lib/libwx_base-2.5.so.1
#12 0x004d67c4 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/libwx_base-2.5.so.1
#13 0x004d5c69 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_base-2.5.so.1
#14 0x004d6932 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_base-2.5.so.1
#15 0x004d670f in wxEvtHandler::ProcessPendingEvents() () from /usr/lib/libwx_base-2.5.so.1
#16 0x00445cf5 in wxAppConsole::ProcessPendingEvents() () from /usr/lib/libwx_base-2.5.so.1
#17 0x0020ca85 in wxapp_pending_callback () from /usr/lib/libwx_gtk2_core-2.5.so.1
#18 0x0668cb33 in g_timeout_add () from /usr/lib/libglib-2.0.so.0
#19 0x06689fdd in unblock_source () from /usr/lib/libglib-2.0.so.0
#20 0x0668afd8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x0668b2ef in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0x0668b9cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#23 0x02b4c39f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x092aa4d8 in ?? ()
#25 0x09292fb8 in ?? ()
#26 0x08b609f0 in ?? ()
#27 0xbff18428 in ?? ()
#28 0x092aa4d8 in ?? ()
(gdb) up 10
#10 0x082a94d7 in CamuleApp::OnFinishedHashing(wxCommandEvent&) (this=0x8b609b0, evt=@0x917ab60)
    at amule.cpp:1773
1773                    if (downloadqueue->IsPartFile(requester)) {
(gdb) l
1768
1769            CKnownFile* result = (CKnownFile*)evt.GetClientData();
1770            printf("Finished Hashing %s\n",unicode2char(result->GetFileName()));
1771            if (evt.GetExtraLong()) {
1772                    CPartFile* requester = (CPartFile*)evt.GetExtraLong();
1773                    if (downloadqueue->IsPartFile(requester)) {
1774                            requester->PartFileHashFinished(result);
1775                    }
1776            } else {
1777                    if (knownfiles->SafeAddKFile(result)) {
(gdb) p *requester
Cannot access memory at address 0x11467088
(gdb) p requester
$1 = (class CPartFile *) 0x9227fa0
(gdb) frame
#10 0x082a94d7 in CamuleApp::OnFinishedHashing(wxCommandEvent&) (this=0x8b609b0, evt=@0x917ab60)
    at amule.cpp:1773
1773                    if (downloadqueue->IsPartFile(requester)) {
(gdb) info locals
requester = (class CPartFile *) 0x9227fa0
filecount = 0
bytecount = 0
result = (class CKnownFile *) 0xb9a7940
(gdb) p *result
warning: can't find linker symbol for virtual table for `CKnownFile' value
$2 = { = {_vptr.CAbstractFile = 0x8c9c88, m_strFileName = , m_abyFileHash = {
      m_hash = "DMA^\025r6ªhn]<9\231\222ò"}, m_nFileSize = 34336776, m_strComment = ,
    m_iRate = 0 '\0'}, date = 1087171570, statistic = {fileParent = 0xb9a7940, requested = 0, transfered = 0,
    accepted = 0, alltimerequested = 0, alltimetransferred = 0, alltimeaccepted = 0},
  m_nCompleteSourcesTime = 1087171572, m_nCompleteSourcesCount = 0, m_nCompleteSourcesCountLo = 0,
  m_nCompleteSourcesCountHi = 0, m_ClientUploadList = {> = {head = 0x0,
      tail = 0x0, count = 0}, },
  m_AvailPartFrequency = {<> = {}, },
  hashlist = {<> = {}, }, taglist = {<> = {}, },
  m_strFilePath = , m_bCommentLoaded = false, m_iPartCount = 4, m_iED2KPartCount = 4,
  m_iED2KPartHashCount = 4, m_iUpPriority = 2 '\002', m_iPermissions = 0 '\0', m_bAutoUpPriority = true,
  m_iQueuedCount = 0, m_PublishedED2K = false}
(gdb) p *requester
Cannot access memory at address 0x11467088
(gdb)
Logged