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 after light gone down  (Read 3822 times)

giobik

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
aMule crashes after light gone down
« on: November 18, 2005, 12:07:57 PM »

Hello, I'm an aMule user from 2 moths, using Slackware 10.2 (kernel 2.6.13.2).

Two days ago I had my pc running amule for 12 hours when the light went down!
When I rebooted, fsck checked my ext2 filesystems (hda3 and hdd1) fixing any problem.
Then I logged in as "giobik" (this is the user I use for amule) and started amule. I could only see the window for few seconds! On the other hand, when I login as root amule works properly!
OK, I know, if I had an UPS everything would be ok!

Here is the output message when I start amule from the console as giobik:

giobik@spudhead:~$ amule
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /home/giobik/.aMule/Temp.
Loading PartFile 10 of 10
All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** 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 /home/giobik/.aMule/Temp/001.part.met to shares
Adding file /home/giobik/.aMule/Temp/002.part.met to shares
Adding file /home/giobik/.aMule/Temp/003.part.met to shares
Adding file /home/giobik/.aMule/Temp/006.part.met to shares
Adding file /home/giobik/.aMule/Temp/007.part.met to shares
Adding file /home/giobik/.aMule/Temp/008.part.met to shares
Adding file /home/giobik/.aMule/Temp/017.part.met to shares
Adding file /home/giobik/.aMule/Temp/023.part.met to shares
Adding file /home/giobik/.aMule/Temp/042.part.met to shares
Adding file /home/giobik/.aMule/Temp/108.part.met to shares
Empty dir /home/giobik/.aMule/Incoming/ shared
Servers: Trying to connect
Servers: Trying to connect
Servers: Connected

--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/board.php?boardid=67
If possible, please try to generate a real backtrace of this crash:
    http://www.amule.org/wiki/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.0.3 using wxGTK2 v2.6.1 (Unicoded)
Running on: Linux 2.6.13.2.giobik.4 i686

[2] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.6.so.0[0xb78a75c6]
[3] ?? in [0xffffe420]
[4] wxStringBase::compare(wxStringBase const&) const in /usr/lib/libwx_baseu-2.6.so.0[0xb785fa9c]
[5] ?? in amule [0x82092dc]
[6] ?? in amule [0x80794d1]
[7] ?? in amule [0x82034a7]
[8] ?? in amule [0x8073bfc]
[9] ?? in amule [0x820e9fc]
[10] ?? in amule [0x8210b03]
[11] ?? in amule [0x80fd5fc]
[12] ?? in amule [0x820db50]
[13] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const in /usr/lib/libwx_baseu-2.6.so.0[0xb77f1b1b]

--------------------------------------------------------------------------------
Aborted

********************

After this I followed the instructions in http://www.amule.org/wiki/index.php/Backtraces and here is what I get:

giobik@spudhead:~$ gdb /usr/bin/amule
GNU gdb 6.3
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-slackware-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/amule
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1226315008 (LWP 5269)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Detaching after fork from child process 5272.
Initialising aMule
Checking if there is an instance already running...
(no debugging symbols found)
(no debugging symbols found)
Detaching after fork from child process 5273.
Loading temp files from /home/giobik/.aMule/Temp.
Loading PartFile 10 of 10
All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** 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 /home/giobik/.aMule/Temp/001.part.met to shares
Adding file /home/giobik/.aMule/Temp/002.part.met to shares
Adding file /home/giobik/.aMule/Temp/003.part.met to shares
Adding file /home/giobik/.aMule/Temp/006.part.met to shares
Adding file /home/giobik/.aMule/Temp/007.part.met to shares
Adding file /home/giobik/.aMule/Temp/008.part.met to shares
Adding file /home/giobik/.aMule/Temp/017.part.met to shares
Adding file /home/giobik/.aMule/Temp/023.part.met to shares
Adding file /home/giobik/.aMule/Temp/042.part.met to shares
Adding file /home/giobik/.aMule/Temp/108.part.met to shares
Empty dir /home/giobik/.aMule/Incoming/ shared
[New Thread -1229739088 (LWP 5274)]
Servers: Trying to connect
[Thread -1229739088 (zombie) exited]
Servers: Trying to connect
Servers: Connected

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226315008 (LWP 5269)]
0xb7872a9c in wxStringBase::compare () from /usr/lib/libwx_baseu-2.6.so.0
(gdb) bt
#0  0xb7872a9c in wxStringBase::compare () from /usr/lib/libwx_baseu-2.6.so.0
#1  0xb7873986 in wxString::Cmp () from /usr/lib/libwx_baseu-2.6.so.0
#2  0x09b98830 in ?? ()
#3  0x09b9883c in ?? ()
#4  0x09b98830 in ?? ()
#5  0x0820caa1 in putchar ()
#6  0x082092dc in putchar ()
#7  0x080794d1 in wxAppBase::SetPrintMode ()
#8  0x0820ed88 in putchar ()
#9  0x08210b03 in putchar ()
#10 0x080fd5fc in std::operator+, std::allocator > ()
#11 0x0820db50 in putchar ()
#12 0xb7804b1b in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb78b429b in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb78b36ee in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb78b4449 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#16 0xb78b41d6 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#17 0xb7804a94 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#18 0xb7a8f59e in wxApp::RemoveIdleTag () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#19 0xb6fa0c03 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#20 0xb6f9dc02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#21 0xb6f9ec78 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb6f9efb0 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb6f9f553 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0xb726adc3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0xb7aa9edc in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#26 0xb7b3ae37 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#27 0xb7b3afa8 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#28 0xb784a6fa in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#29 0xb784a853 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#30 0x080784bb in wxAppBase::SetPrintMode ()
#31 0xb750afcb in __libc_start_main () from /lib/tls/libc.so.6
#32 0x08065941 in ?? ()
(gdb) bt full
#0  0xb7872a9c in wxStringBase::compare () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#1  0xb7873986 in wxString::Cmp () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#2  0x09b98830 in ?? ()
No symbol table info available.
#3  0x09b9883c in ?? ()
No symbol table info available.
#4  0x09b98830 in ?? ()
No symbol table info available.
#5  0x0820caa1 in putchar ()
No symbol table info available.
#6  0x082092dc in putchar ()
No symbol table info available.
#7  0x080794d1 in wxAppBase::SetPrintMode ()
No symbol table info available.
#8  0x0820ed88 in putchar ()
No symbol table info available.
#9  0x08210b03 in putchar ()
No symbol table info available.
#10 0x080fd5fc in std::operator+, std::allocator > ()
No symbol table info available.
#11 0x0820db50 in putchar ()
No symbol table info available.
#12 0xb7804b1b in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#13 0xb78b429b in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#14 0xb78b36ee in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#15 0xb78b4449 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#16 0xb78b41d6 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#17 0xb7804a94 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#18 0xb7a8f59e in wxApp::RemoveIdleTag () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#19 0xb6fa0c03 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#20 0xb6f9dc02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#21 0xb6f9ec78 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#22 0xb6f9efb0 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#23 0xb6f9f553 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#24 0xb726adc3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#25 0xb7aa9edc in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#26 0xb7b3ae37 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#27 0xb7b3afa8 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
No symbol table info available.
#28 0xb784a6fa in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#29 0xb784a853 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#30 0x080784bb in wxAppBase::SetPrintMode ()
No symbol table info available.
#31 0xb750afcb in __libc_start_main () from /lib/tls/libc.so.6
No symbol table info available.
#32 0x08065941 in ?? ()
No symbol table info available.
(gdb) thread apply all bt

Thread 1 (Thread -1226315008 (LWP 5269)):
#0  0xb7872a9c in wxStringBase::compare () from /usr/lib/libwx_baseu-2.6.so.0
#1  0xb7873986 in wxString::Cmp () from /usr/lib/libwx_baseu-2.6.so.0
#2  0x09b98830 in ?? ()
#3  0x09b9883c in ?? ()
#4  0x09b98830 in ?? ()
#5  0x0820caa1 in putchar ()
#6  0x082092dc in putchar ()
#7  0x080794d1 in wxAppBase::SetPrintMode ()
#8  0x0820ed88 in putchar ()
#9  0x08210b03 in putchar ()
#10 0x080fd5fc in std::operator+, std::allocator > ()
#11 0x0820db50 in putchar ()
#12 0xb7804b1b in wxAppConsole::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb78b429b in wxEvtHandler::ProcessEventIfMatches () from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb78b36ee in wxEventHashTable::HandleEvent () from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb78b4449 in wxEvtHandler::ProcessEvent () from /usr/lib/libwx_baseu-2.6.so.0
#16 0xb78b41d6 in wxEvtHandler::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#17 0xb7804a94 in wxAppConsole::ProcessPendingEvents () from /usr/lib/libwx_baseu-2.6.so.0
#18 0xb7a8f59e in wxApp::RemoveIdleTag () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#19 0xb6fa0c03 in g_child_watch_add () from /usr/lib/libglib-2.0.so.0
#20 0xb6f9dc02 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#21 0xb6f9ec78 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb6f9efb0 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb6f9f553 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0xb726adc3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0xb7aa9edc in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#26 0xb7b3ae37 in wxAppBase::MainLoop () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#27 0xb7b3afa8 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#28 0xb784a6fa in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#29 0xb784a853 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#30 0x080784bb in wxAppBase::SetPrintMode ()
#31 0xb750afcb in __libc_start_main () from /lib/tls/libc.so.6
#32 0x08065941 in ?? ()
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) quit

This is everything I can tell you!
Thank you for your time!
I'll try to fix it but I'll be waiting for an answer!

Bye!

Giorgio
  Italy
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 after light gone down
« Reply #1 on: November 20, 2005, 01:43:29 PM »

giobik,

Are you sure you followed the instructions properly? Did you compile aMule with debug information? Does not seem to be from the output you show. Remember to

$ ./configure --enable-debug --disable-optimize

On the other hand, if you did that, the only explanation I can see is that after the power failure, one of your wx-libraries has been corrupted, so maybe it is a good idea to re-install them.

Cheers!
Logged

giobik

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: aMule crashes after light gone down
« Reply #2 on: November 20, 2005, 02:41:44 PM »

Hello phoenix,

thank you for your interest!

I didn't compile amule with debugging information because I thought that doing this I would have lost any information about the current configuration of amule. I thought that recompiling I would have corrected the errors... Sorry for not have been precise!
Moreover, I didn't compiled amule at all, as I installed it from a .tgz package for Slackware.
What should I do?
May I download the source and recompile it with debugging info in an other directory and launch it as "giobik"?

Bye!
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 after light gone down
« Reply #3 on: November 21, 2005, 04:19:03 AM »

giobik,

Without debug info there is very little we can do to help you.

You can compile aMule in a local directory and run it without interfering with the version you have installed, just don't run both at the same time under the same user.

Here you can find the latest sources:
http://www.hirnriss.net/?area=cvs

Cheers!
Logged

giobik

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Everything working!!!
« Reply #4 on: November 29, 2005, 07:59:09 PM »

Hello everybody!

Probably I will not tell you anything interesting, but I solved the problem!

After the power failure I created an other user for aMule, because the old giobik user could not start the program... I found my old cryptkey.dat, preferences.dat and clients.met that I had saved some time ago (hoping it would work) and I copied them in the new ~/.aMule directory.

With the new user everything was ok... Initially aMule downloaded pretty slowly for some days, probably because the clients.met file was old... Then I wrote a very simple script to backup the files in ~/.aMule directory every 20 minutes for more security!

Today I had an idea: I copied the ~/.aMule files in the ~/.aMule directory of the "broken" user giobik, in order to see what would happen... When I changed all the permissions and started amule, everything was ok!

So, I realized that aMule continued crashing because the files were broken... That's all!

Thank you for your time!
Happy aMuleing...

Giorgio
Italy
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: aMule crashes after light gone down
« Reply #5 on: November 29, 2005, 08:20:27 PM »

Good to know :)
Logged