aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 20051008 Crashes on large files?  (Read 2214 times)

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
20051008 Crashes on large files?
« on: October 09, 2005, 01:03:45 AM »

I compiled the CVS of today and it appears to have a problem with large files. There is one file in my films directory:  -rw-r-----  1 em test 3877534083 Sep 30 23:30 - AVeryBigFile.rar

As soon as I select this directory to share, or when I start aMule with my current shareddir.dat file, it crashes. These are the backtraces.

Before I started compiling this new version I compiled wxGTK-2.6.1 from scratch, and removed all previous versions of wxGTK-2.4.2, wxGTK-devel-2.4.2 and wxBase.

#0  0xffffe410 in ?? ()
#1  0xbfffd6f8 in ?? ()
#2  0x00000006 in ?? ()
#3  0x08168b01 in OnUnhandledException() () at MuleDebug.cpp:98
#4  0x4079a0f5 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#5  0x4079a132 in std::terminate() () from /usr/lib/libstdc++.so.5
#6  0x4079a2b2 in __cxa_throw () from /usr/lib/libstdc++.so.5
#7  0x0809caf3 in CFile::GetLength() const (this=0xbfffd8b0) at CFile.cpp:556
#8  0x082369a5 in CSharedFileList::AddFilesFromDirectory(wxString) (this=0x86784b8, directory=
        { = {static npos = 4294967295, m_pchData = 0x41dfa374 "/opt/shares/films/"}, })
    at SharedFileList.cpp:503
#9  0x08235e01 in CSharedFileList::FindSharedFiles() (this=0x86784b8) at SharedFileList.cpp:393
#10 0x08237420 in CSharedFileList::Reload(bool) (this=0x86784b8, firstload=false) at SharedFileList.cpp:588
#11 0x0820067b in PrefsUnifiedDlg::OnOk(wxCommandEvent&) (this=0x41d05420) at PrefsUnifiedDlg.cpp:553
#12 0x4060f61d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/local/lib/libwx_base-2.6.so.0
#13 0x406b3104 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/local/lib/libwx_base-2.6.so.0
#14 0x406b2529 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/local/lib/libwx_base-2.6.so.0
#15 0x406b3272 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
#16 0x4044d408 in wxWindowBase::TryParent(wxEvent&) () from /usr/local/lib/libwx_gtk_core-2.6.so.0
#17 0x406b322b in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
#18 0x403868dd in gtk_button_clicked_callback () from /usr/local/lib/libwx_gtk_core-2.6.so.0
#19 0x40ac3346 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#20 0x086e68a0 in ?? ()
#21 0x41d65dd0 in ?? ()
#22 0x40b68e14 in ?? () from /usr/lib/libgtk-1.2.so.0
#23 0x40afcbad in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
#24 0x41d65dd0 in ?? ()
#25 0xbfffdcf0 in ?? ()
#26 0x0000450c in ?? ()

#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0xbfffd6f8 in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x08168b01 in OnUnhandledException() () at MuleDebug.cpp:98
        t = (struct type_info *) 0x82ef9b8
#4  0x4079a0f5 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
No symbol table info available.
#5  0x4079a132 in std::terminate() () from /usr/lib/libstdc++.so.5
No symbol table info available.
#6  0x4079a2b2 in __cxa_throw () from /usr/lib/libstdc++.so.5
No symbol table info available.
#7  0x0809caf3 in CFile::GetLength() const (this=0xbfffd8b0) at CFile.cpp:556
        iRc = -1
#8  0x082369a5 in CSharedFileList::AddFilesFromDirectory(wxString) (this=0x86784b8, directory=
        { = {static npos = 4294967295, m_pchData = 0x41dfa374 "/opt/shares/films/"}, })
    at SharedFileList.cpp:503
        fdate = 1128115844
        new_file = { = {_vptr.CFileDataIO = 0x82ef928}, m_fd = 31, m_error = false, m_filePath = { = {
      static npos = 4294967295, m_pchData = 0x41dd0954 "/opt/shares/films/AVeryBigFile.rar"}, }}
        toadd = (class CKnownFile *) 0x0
        SharedDir = {DirPtr = 0x41df9f48, type = File, DirStr = { = {static npos = 4294967295,
      m_pchData = 0x41dfa1f4 "/opt/shares/films/"}, }, FileMask = { = {static npos = 4294967295,
      m_pchData = 0x406bd720 ""}, }}
        fname = { = {static npos = 4294967295, m_pchData = 0x41dd091c "AVeryBigFile.rar"}, }
#9  0x08235e01 in CSharedFileList::FindSharedFiles() (this=0x86784b8) at SharedFileList.cpp:393
        i = 33
        newFiles = 33
#10 0x08237420 in CSharedFileList::Reload(bool) (this=0x86784b8, firstload=false) at SharedFileList.cpp:588
No locals.
#11 0x0820067b in PrefsUnifiedDlg::OnOk(wxCommandEvent&) (this=0x41d05420) at PrefsUnifiedDlg.cpp:553
No locals.
#12 0x4060f61d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#13 0x406b3104 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#14 0x406b2529 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#15 0x406b3272 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#16 0x4044d408 in wxWindowBase::TryParent(wxEvent&) () from /usr/local/lib/libwx_gtk_core-2.6.so.0
No symbol table info available.
#17 0x406b322b in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
No symbol table info available.
#18 0x403868dd in gtk_button_clicked_callback () from /usr/local/lib/libwx_gtk_core-2.6.so.0
No symbol table info available.
#19 0x40ac3346 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#20 0x086e68a0 in ?? ()
No symbol table info available.
#21 0x41d65dd0 in ?? ()
No symbol table info available.
#22 0x40b68e14 in ?? () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#23 0x40afcbad in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
No symbol table info available.
#24 0x41d65dd0 in ?? ()
No symbol table info available.
#25 0xbfffdcf0 in ?? ()
No symbol table info available.
#26 0x0000450c in ?? ()
No symbol table info available.

Thread 3 (Thread 1104047024 (LWP 726)):
#0  0x08243fbd in CSHA::Compile() (this=0x875d0b8) at SHA.cpp:129
#1  0x0824447d in CSHA::Add(void const*, unsigned) (this=0x875d0b8, pData=0x41ce47d0, nLength=6656) at SHA.cpp:202
#2  0x0813f590 in CKnownFile::CreateHashFromInput(CFileDataIO*, unsigned, unsigned char*, unsigned char*, CAICHHashTree*) const (
    this=0x8871828, file=0x0, Length=9728000, Output=0x41ce68c0 " Ë<\b",
    in_string=0x42fbb008 "Í4¦N¼Ê\r°¶ç£ Ù=G¤fï\026Äï\020Ñ@\rQ\035W\222Î?Ê(0\211wD@ϾYM\203AÚ¶\016U\036dd!ÐËö\225ùBG\212Ûf\237:i%\225\234N\024#\v\235\006\037\203", pShaHashOut=0x8761540) at KnownFile.cpp:833
#3  0x0814238d in CKnownFile::CreateHashFromString(unsigned char*, unsigned, unsigned char*, CAICHHashTree*) (this=0x8871828,
    in_string=0x42fbb008 "Í4¦N¼Ê\r°¶ç£ Ù=G¤fï\026Äï\020Ñ@\rQ\035W\222Î?Ê(0\211wD@ϾYM\203AÚ¶\016U\036dd!ÐËö\225ùBG\212Ûf\237:i%\225\234N\024#\v\235\006\037\203", Length=9728000, Output=0x41ce68c0 " Ë<\b", pShaHashOut=0x8761540) at KnownFile.h:281
#4  0x0806cc04 in CAddFileThread::CreateNextPartHash(CFile*, CKnownFile*, bool) (file=0x41ce69f0, owner=0x8871828, createAICH=true)
    at AddFileThread.cpp:445
#5  0x0806c34c in CAddFileThread::Entry() (this=0x86f6100) at AddFileThread.cpp:314
#6  0x406af4b4 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/local/lib/libwx_base-2.6.so.0
#7  0x406af39c in wxPthreadStart () from /usr/local/lib/libwx_base-2.6.so.0
#8  0x4002c7d3 in start_thread () from /lib/tls/libpthread.so.0
#9  0x408d9b4a in clone () from /lib/tls/libc.so.6
Current language:  auto; currently c++

Thread 2 (Thread 1095654320 (LWP 725)):
#0  0xffffe410 in ?? ()
#1  0x414e5818 in ?? ()
#2  0x406edb00 in __JCR_LIST__ () from /usr/local/lib/libwx_base-2.6.so.0

Thread 1 (Thread 1086681696 (LWP 719)):
#0  0xffffe410 in ?? ()
#1  0xbfffd6f8 in ?? ()
#2  0x00000006 in ?? ()
#3  0x08168b01 in OnUnhandledException() () at MuleDebug.cpp:98
#4  0x4079a0f5 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.5
#5  0x4079a132 in std::terminate() () from /usr/lib/libstdc++.so.5
#6  0x4079a2b2 in __cxa_throw () from /usr/lib/libstdc++.so.5
#7  0x0809caf3 in CFile::GetLength() const (this=0xbfffd8b0) at CFile.cpp:556
#8  0x082369a5 in CSharedFileList::AddFilesFromDirectory(wxString) (this=0x86784b8, directory=
        { = {static npos = 4294967295, m_pchData = 0x41dfa374 "/opt/shares/films/"}, })
    at SharedFileList.cpp:503
#9  0x08235e01 in CSharedFileList::FindSharedFiles() (this=0x86784b8) at SharedFileList.cpp:393
#10 0x08237420 in CSharedFileList::Reload(bool) (this=0x86784b8, firstload=false) at SharedFileList.cpp:588
#11 0x0820067b in PrefsUnifiedDlg::OnOk(wxCommandEvent&) (this=0x41d05420) at PrefsUnifiedDlg.cpp:553
#12 0x4060f61d in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
   from /usr/local/lib/libwx_base-2.6.so.0
#13 0x406b3104 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/local/lib/libwx_base-2.6.so.0
#14 0x406b2529 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/local/lib/libwx_base-2.6.so.0
#15 0x406b3272 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
#16 0x4044d408 in wxWindowBase::TryParent(wxEvent&) () from /usr/local/lib/libwx_gtk_core-2.6.so.0
#17 0x406b322b in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/local/lib/libwx_base-2.6.so.0
#18 0x403868dd in gtk_button_clicked_callback () from /usr/local/lib/libwx_gtk_core-2.6.so.0
#19 0x40ac3346 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
#20 0x086e68a0 in ?? ()
#21 0x41d65dd0 in ?? ()
#22 0x40b68e14 in ?? () from /usr/lib/libgtk-1.2.so.0
#23 0x40afcbad in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0
#24 0x41d65dd0 in ?? ()
#25 0xbfffdcf0 in ?? ()
#26 0x0000450c in ?? ()

The config log stated some warnings, but even the large file handling was shown as OK:

checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.6.1)
configure: WARNING: wxWidgets >=2.5.0: Using wx-config --libs base,net
checking that wxWidgets has support for large files... yes
checking that wxBase has support for large files... yes
checking for GUI toolkit to use... GTK
checking if wxWidgets was linked with GTK2... no
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking whether to use embedded Crypto... yes
checking for bfd headers... no
configure: WARNING: bfd.h not found, please install binutils development package if you are a developer or want to help testing aMule


Any thoughts?

[ Kry - Edited out copyrighted names, please check forum rules ]
« Last Edit: November 01, 2005, 11:21:46 AM by vdb »
Logged
A waste is a terrible thing to mind.

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: 20051008 Crashes on large files?
« Reply #1 on: October 09, 2005, 07:43:40 PM »

Well, I have a suspect. When you compiled wx, did you use the flag --enable-largefile? You probably didn't, check this please.

If this is not the case, type:
$ grep _LARGE_FILES config.log

In the aMule build directory to see if -D_LARGE_FILES is beeing added to the compiler flags. If not, you should find out why aMule configure is not adding it.

Cheers!
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: 20051008 Crashes on large files?
« Reply #2 on: October 10, 2005, 10:45:17 AM »

I will check this tonight when back home, but I don't think that this is the major problem: I recompiled 2.0.3 against wxGTK 2.6.1 and that gave an error, but amule kept starting up and running.

Also finally I removed all wxGTK versions from my system and installed wxGTK 2.6.0 and amule 2.0.3 using Mandrake rpm's. Again the amule starts with an error message (file too large) but keeps on running. Then I recompiled the CVS against these wxGTK 2.6.0 libraries and again amule crashed on startup.

I think there is a bug somewhere in the CVS code that actually crashes the application when reaching a large file, where with the 2.0.3 code the application continues after the error.
Logged
A waste is a terrible thing to mind.