aMule Forum
English => aMule crashes => Topic started by: Arichy on May 16, 2007, 05:41:19 PM
-
I got aMule (svn-2007-05-15) running within gdb but from time to time it crashes and there is only little info about new thread, zombie process and memory access failure, bad file descriptor and that's it. No backtrace from gdb. What's up there? Looks like gdb itself crashed... What to do?
-
bad file descriptor sounds like a file not found. Are you sure aMule crashes? maybe just gets stuck or something...
Regards.
-
It happened again. Now here is the output:
[New Thread -1289753680 (LWP 4082)]
close failed: [Errno 9] Bad file descriptor
[Thread -1289753680 (zombie) exited]
[New Thread -1298146384 (LWP 4240)]
close failed: [Errno 9] Bad file descriptor
[Thread -1298146384 (zombie) exited]
[New Thread -1306539088 (LWP 5723)]
close failed: [Errno 9] Bad file descriptor
[Thread -1306539088 (zombie) exited]
[New Thread -1314931792 (LWP 7404)]
close failed: [Errno 9] Bad file descriptor
[Thread -1314931792 (zombie) exited]
[New Thread -1323324496 (LWP 28395)]
close failed: [Errno 9] Bad file descriptor
[Thread -1323324496 (zombie) exited]
[New Thread -1331717200 (LWP 29709)]
close failed: [Errno 9] Bad file descriptor
[Thread -1331717200 (zombie) exited]
/home/user/bin/gdb.amule.sh: line 15: 25049 Speicherzugriffsfehler gdb -command=/home/user/.aMule/gdb_befehle /usr/local/bin/amule
Speicherzugriffsfehler=memory access failure
content of /home/user/.aMule/gdb_befehle :
run --even-if-lfroen-complains-this-will-stay
bt
bt full
thread apply all bt
content of /home/user/bin/gdb.amule.sh (creation if mine):
#!/bin/sh
# Starte gdb, führe dann amule aus
# und generiere schließlich backtraces
AMULE_BEFEHL="/usr/local/bin/amule"
# in der Befehlsdatei steht "run":
GDB_BEFEHL_DATEI="$HOME/.aMule/gdb_befehle"
GDB_BEFEHL="gdb -command=$GDB_BEFEHL_DATEI $AMULE_BEFEHL"
eval $GDB_BEFEHL
In relation to files I can say: If a download is completed on my system, amule executes a shell script that renames the download file (inclusion of the first six characters of the MD4 hash at the end of the filename).
-
I clicked on the refresh button in the "shared files" tab, and amule crashed.
Only output was the following, allthough running within gdb:
Adding file /daten/p2p/amule/temp/005.part.met to shares
Adding file /daten/p2p/amule/temp/010.part.met to shares
Adding file /daten/p2p/amule/temp/007.part.met to shares
Adding file /daten/p2p/amule/temp/009.part.met to shares
Adding file /daten/p2p/amule/temp/004.part.met to shares
Adding file /daten/p2p/amule/temp/008.part.met to shares
Adding file /daten/p2p/amule/temp/064.part.met to shares
Adding file /daten/p2p/amule/temp/021.part.met to shares
Adding file /daten/p2p/amule/temp/001.part.met to shares
Adding file /daten/p2p/amule/temp/023.part.met to shares
Empty dir /daten/p2p/amule/eingang/ shared
-
Hm, a new variant:
[New Thread -1274991696 (LWP 27984)]
[Thread -1274991696 (zombie) exited]
[New Thread -1274991696 (LWP 29012)]
close failed: [Errno 9] Bad file descriptor
[Thread -1274991696 (zombie) exited]
/home/user/bin/gdb.amule.sh: line 15: 10261 Speicherzugriffsfehler gdb -command=/home/user/.aMule/gdb_befehle /usr/local/bin/amule
user@host:~$
But: aMule is still running! Maybe because after invoking /home/user/bin/gdb.amule.sh, before the aMule window appeared, I switched on a different xfce desktop page (work space), so aMule window was on one work space window, the xterm with the gdb was on the other?
-
No, the workspace you are running on should have nothing to do with gdb and aMule. It might have been a coincidence, but I am not the most proficient gdb user ;)
Regards.