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 at startup : how to bypass it !  (Read 7097 times)

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Crash at startup : how to bypass it !
« on: October 26, 2004, 02:29:42 AM »

Hi,

I compiled 200rc7 on debian sid. It crashed at startup (same for the precompiled package provided by DrazziB). I tried with a fresh new empty .aMule directory and amule worked. After some luck i found that erasing the file "preferences.dat" in .aMule/ make amule start without crashing. The problem is i have to erase preference.dat before every stratup !

Any medication doctor ?

Regards
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #1 on: October 26, 2004, 02:37:56 AM »

Backtrace :

Code: [Select]
(gdb) bt
#0  0x403d2a68 in wxString::operator= ()
   from /usr/lib/libwx_gtk-2.4.so.0
#1  0x082666ab in CServerList::AutoUpdate ()
#2  0x08261f30 in CServerList::Init ()
#3  0x082a5eda in CamuleApp::OnInit ()
#4  0x4029c698 in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#5  0x082a2fc8 in main ()
(gdb) bt full
#0  0x403d2a68 in wxString::operator= ()
   from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#1  0x082666ab in CServerList::AutoUpdate ()
No symbol table info available.
#2  0x08261f30 in CServerList::Init ()
No symbol table info available.
#3  0x082a5eda in CamuleApp::OnInit ()
No symbol table info available.
#4  0x4029c698 in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#5  0x082a2fc8 in main ()
No symbol table info available.
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #2 on: October 26, 2004, 02:53:16 AM »

Last but not least the file :
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: Crash at startup : how to bypass it !
« Reply #3 on: October 26, 2004, 04:35:58 AM »

have you tried removing ~/.eMule and ~/.aMule/clients.met ?
Greetings!
Logged

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #4 on: October 26, 2004, 11:53:52 AM »

Hi,

I've never used emule... I give up on window$ years ago ;) (I was using debian Woody !)

All the file there was in .aMule where created by aMule, they all worked good with 200rc5 (the binaries provided from debian woody). It seems to be to be a real amule's bug.

I've not tried removing ~/.aMule/clients.met ; will i lose my credits ?

Regards.
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Crash at startup : how to bypass it !
« Reply #5 on: October 26, 2004, 12:31:55 PM »

hey

you will not loose your credtis..but the other users will lose those they have at your pc...
but first try to remove the .eMule file and if that does not work to remove the clients.met from the .aMule folder

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #6 on: October 26, 2004, 12:46:10 PM »

Hi,

First i repeat : i've never used emule, not even once ! There is not .emule file on my linux box.

I've "13848 clients" in my clients.met (as the windows server said). Will it be fair to erase them ? I don't think so...

Erasing preference.dat works to start amule, it's running now from more than 9 hours.

I prefer another way than erasing clients.met , any idea ?

Thank you for your attention,
Regards
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Crash at startup : how to bypass it !
« Reply #7 on: October 26, 2004, 01:09:26 PM »

and I repeat there IS an .eMule file ;)

since it get generated with aMule and all your settings are stored in there...so you DO have it...
but ok if everything is working now its fine I guess...

do you still ahve to delete preferences.dat now or not? when you shut amule down.... and what eMule version did you use before you swiched to linux?

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Crash at start up solved !
« Reply #8 on: October 26, 2004, 02:23:00 PM »

You get the point stefanero !

The problem was ~/.eMule !

Since a rename it (egual to delete), aMule just run fine. Even if i used the old files in .aMule : i mean the file a had with 200rc5 (just before switching for the 200rc6 provided by debian sid repository, wich crached at start up, then i changed for 200rc7 provided by DrazziB in the new for realasing 200rc7 : crached at startup, then i compiled my own amule using sources : it crashed at startup too).

Well i loose my nick and maybe others minor stuffs...

Regards
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Crash at startup : how to bypass it !
« Reply #9 on: October 26, 2004, 02:41:19 PM »

Can you attach the old .eMule file?
Logged

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
That's evil !
« Reply #10 on: October 26, 2004, 03:46:41 PM »

Sure i can ! ;)

Be carefull : that's evil !

P.S. : i've hide some personnal stuffs in it, so it is not exactly the same. should do the job...
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Crash at startup : how to bypass it !
« Reply #11 on: October 26, 2004, 04:44:29 PM »

Sorry to keep asking you to do stuff, but could you possibly recompile aMule with debugging enabled and create a full backtrace?
Logged

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #12 on: October 26, 2004, 05:56:29 PM »

The most you ask, the better the app will be...

Here we go my lord :

Code: [Select]
(gdb) run
Starting program: /usr/local/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 5705)]
Initialising aMule
Userhash loaded: *******
*** UDP socket at 4665
*** UDP socket at 4672
External connections disabled in config file .eMule
*** reading servers

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5705)]
0x403d2a68 in wxString::operator= ()
   from /usr/lib/libwx_gtk-2.4.so.0
(gdb) bt
#0  0x403d2a68 in wxString::operator= ()
   from /usr/lib/libwx_gtk-2.4.so.0
#1  0x082666ab in CServerList::AutoUpdate (this=0x8739a20)
    at ServerList.cpp:903
#2  0x08261f30 in CServerList::Init (this=0x8739a20)
    at ServerList.cpp:93
#3  0x082a5eda in CamuleApp::OnInit (this=0x85e2230)
    at amule.cpp:694
#4  0x4029c698 in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
#5  0x082a2fc8 in main (argc=1, argv=0xbffff874) at amule.cpp:180
(gdb) bt full
#0  0x403d2a68 in wxString::operator= ()
   from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#1  0x082666ab in CServerList::AutoUpdate (this=0x8739a20)
    at ServerList.cpp:903
        url_count = 3 '\003'
        strURLToDownload =
        strTempFilename =
#2  0x08261f30 in CServerList::Init (this=0x8739a20)
    at ServerList.cpp:93
        strTempFilename =
        bRes = true
#3  0x082a5eda in CamuleApp::OnInit (this=0x85e2230)
    at amule.cpp:694
        geometry_enabled = false
        geometry_x = 0
        geometry_y = 0
---Type to continue, or q to quit---
        geometry_width = 800
        geometry_height = 600
        cmdline =
        geom_string =
        server =
        host =
        IPC =
        client = (struct wxTCPClient *) 0x85e1cf8
        conn = (struct wxConnectionBase *) 0x0
        lMulePrefDir =
        xMulePrefDir =
        logname =
        file =
        vfile =
        newMule =
        mnt_tab = (FILE *) 0x85ebdc8
        myaddr =
---Type to continue, or q to quit---
#4  0x4029c698 in wxEntry () from /usr/lib/libwx_gtk-2.4.so.0
No symbol table info available.
#5  0x082a2fc8 in main (argc=1, argv=0xbffff874) at amule.cpp:180
No locals.
(gdb)
« Last Edit: October 26, 2004, 05:57:31 PM by Anne Onyme »
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Crash at startup : how to bypass it !
« Reply #13 on: October 26, 2004, 06:17:44 PM »

Thanks, I think I see the problem :)
Can you post your addresses.dat file?
« Last Edit: October 26, 2004, 06:21:12 PM by Xaignar »
Logged

Anne Onyme

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 56
Re: Crash at startup : how to bypass it !
« Reply #14 on: October 26, 2004, 06:18:37 PM »

It was a good day for me too ! ;)
Logged
Chaque découverte, chaque progrès, chaque augmentation de la richesse de l'humanité a son origine dans l'ensemble du travail manuel et cérébral du passé et du présent.