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 Crashes with SMB Share  (Read 3771 times)

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Amule Crashes with SMB Share
« on: May 12, 2006, 11:20:09 AM »

Hi all,

i was using amule 2.1.0 a few month without having Problems. After i Changed the Temp and the Incoming Directory to my SMB Share which is an Windows XP Machine. Amuled Crashed after a few hours.

I Updated to wxwidget 2.6.3 an amule 2.1.1. The Problem is still the same.

I started the backtrace like it is described in Backtrace Howto.

Here is the Output.

Hopefully someone can Help me with this Problem.

[New Thread -1222689872 (LWP 4905)]
[Thread -1222689872 (zombie) exited]
[New Thread -1222689872 (LWP 4908)]
thread apply all bt

[New Thread -1241642064 (LWP 6657)]
[Thread -1241642064 (zombie) exited]
[New Thread -1241642064 (LWP 6742)]
[Thread -1241642064 (zombie) exited]
[New Thread -1241642064 (LWP 6743)]
[Thread -1241642064 (zombie) exited]
[Thread -1214297168 (zombie) exited]
[Thread -1222689872 (zombie) exited]
Now, exiting main app...
Killing amuleweb instance...
Killed!
aMule OnExit: Terminating core.
Saving PartFile 16 of 16
All PartFiles Saved.
aMule shutdown completed.
        aMule Version: aMuled 2.1.1 using wxGTK2 v2.6.3

Terminated after throwing an instance of 'CSeekFailureException'
        what(): SafeIO::IOFailure::SeekFailure: Seeking failed: Das Argument ist ungültig
ptrace: Kein passender Prozess gefunden.
thread_db_get_info: cannot get thread info: generic error
(gdb) bt
#0  0x00000000 in ?? ()
Error accessing memory address 0x0: Kein passender Prozess gefunden.
(gdb) bt full
#0  0x00000000 in ?? ()
No symbol table info available.
Error accessing memory address 0x0: Kein passender Prozess gefunden.
(gdb) thread apply all bt
Cannot find new threads: generic error
(gdb)
Cannot find new threads: generic error
(gdb)


Thanx
Logged

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: Amule Crashes with SMB Share
« Reply #1 on: May 12, 2006, 03:24:50 PM »

Sorry, but there is no information in the backtrace you provided.

But there is information here:
Quote
aMule Version: aMuled 2.1.1 using wxGTK2 v2.6.3

Terminated after throwing an instance of 'CSeekFailureException'
what(): SafeIO::IOFailure::SeekFailure: Seeking failed: Das Argument ist ungültig

This tells me that the error occurred here:
Code: [Select]
sint64 CFile::doSeek(sint64 offset) const
{
MULE_VALIDATE_STATE(IsOpened(), wxT("Cannot seek on closed file."));
MULE_VALIDATE_PARAMS(offset >= 0, wxT("Invalid position, must be positive."));

sint64 result = SEEK_FD(m_fd, offset, SEEK_SET);

if (result == offset) {
return result;
} else if (result == wxInvalidOffset) {
throw CSeekFailureException(wxString(wxT("Seeking failed: ")) + wxSysErrorMsg());
} else {
throw CSeekFailureException(wxT("Seeking returned incorrect position"));
}
}

For some reason, this exception was not caught, most probably, from you backtrace, for memory corruption. If you can reproduce the crash, maybe you can produce a nice backtrace, so we can understand the context in which the error occurred.

Also, your posting of the backtrace in gdb seems a little bit incomplete or confuse. Your crash seems to have happened when you were exiting aMule, is that right? Or did the program just exited by itself? Are you suppressing lines from your gdb session?

Cheers!
Logged

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Reproducing
« Reply #2 on: May 13, 2006, 06:08:35 PM »

Hi Phoenix,

i can reproduce the Crash. I try to start

gdb amuled
run
bt
...

Maybe its a Problem because i am running the daemon.

The Program is exited by itself. I never stopped it by hand.

For me it looks like a Problem in combination with the SMB Share. Without the Network Share everything works fine.

I setup a new gdb and insert the unlimited command to my bashrc. Hopefully i will get an core file with more information.


Thanx Meanwhile28
Logged

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amule Crashes with SMB Share
« Reply #3 on: May 13, 2006, 08:54:52 PM »

Here is the gdb output from another Crash.

stefan@mybuntu:~$ gdb /home/stefan/aMule-2.1.1/src/amuled
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/        lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/stefan/aMule-2.1.1/src/amuled
[Thread debugging using libthread_db enabled]
[New Thread -1212840256 (LWP 6680)]
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread -1214395472 (LWP 6686)]
Loading temp files from /amule/Temp.
Loading PartFile 16 of 16
All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Adding file /amule/Temp/001.part.met to shares
Adding file /amule/Temp/002.part.met to shares
Adding file /amule/Temp/003.part.met to shares
Adding file /amule/Temp/004.part.met to shares
Adding file /amule/Temp/005.part.met to shares
Adding file /amule/Temp/006.part.met to shares
Adding file /amule/Temp/007.part.met to shares
Adding file /amule/Temp/008.part.met to shares
Adding file /amule/Temp/009.part.met to shares
Adding file /amule/Temp/010.part.met to shares
Adding file /amule/Temp/014.part.met to shares
Adding file /amule/Temp/016.part.met to shares
Adding file /amule/Temp/017.part.met to shares
Adding file /amule/Temp/018.part.met to shares
Adding file /amule/Temp/020.part.met to shares
[New Thread -1222788176 (LWP 6687)]
[Thread -1222788176 (zombie) exited]
[New Thread -1222788176 (LWP 6690)]
bt
bt full
hread apply all bt
thread apply all bt
Error on CKademliaUDPListener::processPublishRequest received from: 254.148.54.8        2:4672
No ip match
Search parsing resultfor "neue deutsche welle vol. 3": 0
Search expression: neue deutsche welle vol. 3
Expression count: 1
Parameters: 1
[New Thread -1243612240 (LWP 8271)]
Search parsing resultfor "neue deutsche welle karaoke": 0
Search expression: neue deutsche welle karaoke
Expression count: 1
Parameters: 1
[Thread -1243612240 (zombie) exited]
[New Thread -1243612240 (LWP 8272)]
[Thread -1243612240 (zombie) exited]
CECSocket error: Input/Output error
[Thread -1214395472 (zombie) exited]
[Thread -1222788176 (zombie) exited]
Now, exiting main app...
Killing amuleweb instance...
Killed!
aMule OnExit: Terminating core.
Saving PartFile 18 of 18
All PartFiles Saved.
aMule shutdown completed.
        aMule Version: aMuled 2.1.1 using wxGTK2 v2.6.3

Terminated after throwing an instance of 'CSeekFailureException'
        what(): SafeIO::IOFailure::SeekFailure: Seeking failed: Das Argument ist         ungültig
ptrace: Kein passender Prozess gefunden.
thread_db_get_info: cannot get thread info: generic error
(gdb) bt
#0  0x00000000 in ?? ()
Error accessing memory address 0x0: Kein passender Prozess gefunden.
(gdb) bt full
#0  0x00000000 in ?? ()
No symbol table info available.
Error accessing memory address 0x0: Kein passender Prozess gefunden.
(gdb) hread apply all bt
Undefined command: "hread".  Try "help".
(gdb) thread apply all bt
Cannot find new threads: generic error
(gdb)
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Amule Crashes with SMB Share
« Reply #4 on: May 14, 2006, 12:19:21 AM »

Have you a file in download that is bigger than 2GB?
Logged
Homefucking is killing prostitution

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amule Crashes with SMB Share
« Reply #5 on: May 14, 2006, 11:08:52 AM »

Yes i have some file with more than 2 GB
Logged

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amule Crashes with SMB Share
« Reply #6 on: May 14, 2006, 11:12:45 AM »

Here is the output after a normal crash without a backtrace. Maybe this help a little bit.

aMule shutdown completed.
        aMule Version: aMuled 2.1.1 using wxGTK2 v2.6.3

Terminated after throwing an instance of 'CSeekFailureException'
        what(): SafeIO::IOFailure::SeekFailure: Seeking failed: Das Argument ist ungültig
        backtrace:
[2] CamuleApp::OnUnhandledException() in amule.cpp:1987
[3] wxEntry(int&, char**) in /usr/local/lib/libwx_base-2.6.so.0[0xb7ecd057]
[4] __gxx_personality_v0 in amuled.cpp:132
[5] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0xb7c2bec2]
[6] wxEvtHandler::ProcessEvent(wxEvent&) in start.S:122


Cheers
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Amule Crashes with SMB Share
« Reply #7 on: May 14, 2006, 12:32:16 PM »

Have you mounted the smb-share with -lfs option? I not, smbfs doesn't support file bigger than 2GB
Logged
Homefucking is killing prostitution

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amule Crashes with SMB Share
« Reply #8 on: May 14, 2006, 01:06:09 PM »

No,

i have now entered the lfs option in /etc/fstab

I will try if this will solve the Problem.

Thanx
Meanwhile28
Logged

meanwhile28

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Amule Crashes with SMB Share
« Reply #9 on: May 15, 2006, 08:41:16 AM »

Great,

it looks like this option solves my problem.


Thanx a lot

Cheers !
Logged