aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Crash on Ubuntu 8.10 64 bits  (Read 40306 times)

jluix

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Crash on Ubuntu 8.10 64 bits
« on: November 04, 2008, 07:27:02 AM »

Intel Quad Core 9300.

It crashes sometimes. I haven't found out why yet.

Here the backtrace goes:

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.2 using wxGTK2 v2.8.8
Running on: Linux 2.6.27-7-generic x86_64

[2] wxString::~wxString() in amule [0x44a0ef]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7ff62610222c]
[4] ?? in /lib/libpthread.so.0 [0x7ff62778e0f0]
[5] wxColour::wxColour(unsigned char, unsigned char, unsigned char, unsigned char) in amule [0x55cc00]
[6] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x507fe8]
[7] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x5086be]
[8] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff6260fdca9]
[9] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff6260fee84]
[10] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff6260fef77]
[11] wxTimerBase::Notify() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff6268811d6]
[12] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0x7ff6267883cb]
[13] ?? in /usr/lib/libglib-2.0.so.0 [0x7ff622d7e4fb]
[14] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x7ff622d7dd3b]
[15] ?? in /usr/lib/libglib-2.0.so.0 [0x7ff622d8150d]
[16] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x7ff622d81a3d]
[17] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7ff624c0e7a7]
[18] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff62677fd18]
[19] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7ff626808f4b]
[20] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff6260a373d]
[21] CryptoPP::IteratedHash<unsigned int, CryptoPP::EnumToType<CryptoPP::ByteOrder, 0>, 64u, CryptoPP::HashTransformation>::~IteratedHash() in amule [0x5032b2]
[22] __libc_start_main in /lib/libc.so.6[0x7ff6252eb466]
[23] ?? in amule [0x4490f9]


--------------------------------------------------------------------------------
Logged

kau

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Crash on Ubuntu 8.10 64 bits
« Reply #1 on: November 08, 2008, 06:29:28 PM »

I have exactly the same problem. In the Italian forum (I'm Italian  ;))  you can find a script that somehow solves the problem restarting aMule in case of crash. Below you can find the code. Please pay attention to configure  the script accordingly to your aMule settings (e.g. tcp ports, etc.)

ciao

kau


Code: [Select]
#!/bin/sh
# ******************************
# *** program restart script ***
# ******************************
#
# Written by Fabio Dellutri <fdellutri@tiscali.it>
#
# This script starts $PROGRAM and restart it if it dies unexpectedly.
# Also it tries to check if $PROGRAM is in stale state and restart it
#
# Last modification: 29 October 2003

# ***************************
# ** Configuration Section **
# ***************************

PROGNAME="amule"
PROGRAM="/usr/bin/amule"

WAIT_INTERVAL=10s
STALE_WAIT_INTERVAL=3m

TCPPORT1=no. of your tcp port
TCPPORT2=no. of you udp port


TEMP="/home/your-home/.$PROGNAME.tmp"
CONF="/home/your-home/.eMule"

MAILTO="your email"


# *****************
# ** Script Code **
# *****************

#
# This function writes on $CONF file the right port doing a round-robin on the $TCPPORT*
#
upgrade_port() {
if ! [ -z $(grep Port=${TCPPORT1} ${CONF} | awk -F'=' '{print $2}' | head -1) ]; then
sed -e "s/Port=${TCPPORT1}/Port=${TCPPORT2}/" ${CONF} > ${TEMP}
elif ! [ -z $(grep Port=${TCPPORT2} ${CONF} | awk -F'=' '{print $2}' | head -1) ]; then
sed -e "s/Port=${TCPPORT2}/Port=${TCPPORT3}/" ${CONF} > ${TEMP}
elif ! [ -z $(grep Port=${TCPPORT3} ${CONF} | awk -F'=' '{print $2}' | head -1) ]; then
sed -e "s/Port=${TCPPORT3}/Port=${TCPPORT4}/" ${CONF} > ${TEMP}
elif ! [ -z $(grep Port=${TCPPORT4} ${CONF} | awk -F'=' '{print $2}' | head -1) ]; then
sed -e "s/Port=${TCPPORT4}/Port=${TCPPORT1}/" ${CONF} > ${TEMP}
fi
cp ${CONF} ${CONF}_bak
mv ${TEMP} ${CONF}
}

#
# Test if the program exist and it is executable
#
if test ! -x $PROGRAM
then
echo "The file $PROGRAM does not exist or is not executable!"
exit 1
fi

#
# Main script body
#
while true
do
# Test if $PROGRAM is dead
NUMPROCS=$(ps xa | grep -v "grep" | grep -c $PROGRAM)
if test "$NUMPROCS" -lt "1"
then
echo -n "Starting $PROGRAM..."
# Check for port
upgrade_port
# Run $PROGRAM
$PROGRAM &> /dev/null &
# Send Email notification
if [ ${MAILTO} ]; then
echo "$PROGNAME restarted on `date`." | mail -s "$PROGNAME restarted on `date`" ${MAILTO}
fi
echo " done!"
fi

# Test if program is in stale state
T1=$(ps ax | grep -v grep | grep $PROGRAM | awk '{print $4}')
sleep $STALE_WAIT_INTERVAL
T2=$(ps ax | grep -v grep | grep $PROGRAM | awk '{print $4}')
if [[ "${T1}" == "${T2}" ]]; then
# $PROGRAM is in "stale" state
killall $PROGRAM
if [ ${MAILTO} ]; then
echo "$PROGNAME was found in stale on `date`." | mail -s "$PROGNAME in stale on `date`" ${MAILTO}
fi
fi
# wait for $WAIT_INTERVAL seconds
sleep $WAIT_INTERVAL
done
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2677
Re: Crash on Ubuntu 8.10 64 bits
« Reply #2 on: November 09, 2008, 09:23:12 AM »

CONF="/home/your-home/.eMule"
We're not using that since loooong time ago.
Logged
concordia cum veritate

sptorrent

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: Crash on Ubuntu 8.10 64 bits
« Reply #3 on: November 14, 2008, 12:56:39 PM »

Here's a quick fix:
1 - in gnome: use the default theme (Human)
2 - in aMule: disable skins, disable tray icon and disable "minimize to icon"
I'm not sure which of the above does the trick...

Regards
Logged

greyone

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Crash on Ubuntu 8.10 64 bits
« Reply #4 on: November 19, 2008, 04:10:58 AM »

I've had the same problem, but I've noticed that it was caused by the emerald window manager. When i went back to gtk as windows manager, aMule got almost completely stable, including using the mac4lin theme, so  apparently there's no need to use the poor human theme. Obviously if you  are using emerald.
Deactivating the try icon is a good choice to gain stability.
Try that and you tell us.
Logged