aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: cvs 20070421  (Read 2808 times)

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
cvs 20070421
« on: April 21, 2007, 09:47:47 AM »

None of the links on "Read this before posting" seem to work. I apologise in advance if this backtrace is useless.
jdkaye@Attila:/tmp/amule-cvs/src$ ./amule --even-if-lfroen-complains-this-will-stay
Initialising aMule
Checking if there is an instance already running...
No other instances are running.

--------------------------------------------------------------------------------
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 CVS using wxGTK2 v2.6.3 (Snapshot: Sat Apr 21 07:02:00 CEST 2007)
Running on: Linux 2.6.18-4-686 i686

Segmentation fault
I'll try recompiling without the --even-if-lfroen-complains-this-will-stay switch and see if gdb gives any more info.
cheers,
Jonathan
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421
« Reply #1 on: April 21, 2007, 10:28:07 AM »

Here's more info from gdb
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: /tmp/amule-cvs/src/amule
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1224886592 (LWP 12014)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1224886592 (LWP 12014)]
0xb7a8a438 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: cvs 20070421
« Reply #2 on: April 21, 2007, 04:25:47 PM »

Hi Jonathan,

Please post the result of the command "bt" in gdb.
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421
« Reply #3 on: April 21, 2007, 05:09:21 PM »

Here you go Phoenix,
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1224857920 (LWP 13182)]
0xb7a91438 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
(gdb) bt
#0  0xb7a91438 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
#1  0x0807f70a in wxString::operator= (this=0xbfcf9f0c)
    at /usr/include/wx-2.6/wx/string.h:611
#2  0x082d1019 in CPreferences::ReloadSharedFolders (this=0x8873588)
    at Preferences.cpp:1551
#3  0x082dabc7 in CPreferences (this=0x8873588) at Preferences.cpp:742
#4  0x0807abd7 in CamuleApp::OnInit (this=0x87ce300) at amule.cpp:610
#5  0x0821e409 in CamuleGuiApp::OnInit (this=0x87ce300) at amule-gui.cpp:262
#6  0x0807db70 in wxAppConsole::CallOnInit (this=0x87ce300)
    at /usr/include/wx-2.6/wx/app.h:87
#7  0xb7a72430 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7a72506 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#9  0x0821eff2 in main (argc=Cannot access memory at address 0x6e
) at amule-gui.cpp:95

Cheers,
Jonathan
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: cvs 20070421
« Reply #4 on: April 21, 2007, 09:05:08 PM »

Could you post here or pm me your ~/.aMule/shareddir.dat file?
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421
« Reply #5 on: April 22, 2007, 10:43:52 AM »

contents of  ~/.aMule/shareddir.dat
yup, it's short and sweet: just one line

/home/jdkaye/Films/

that's it.
cheers,
Jonathan
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: cvs 20070421
« Reply #6 on: April 22, 2007, 03:05:29 PM »

Hum, I thought I was going to see some fancy character there...

Just to be sure, do you have a new line at the end of the line?

Anyway, this should not be the problem. I am starting to think it is a wx problem, here is the code:
Code: [Select]
wxString line = sdirfile.GetFirstLine();
do {
shareddir_list.Add(line);
line = sdirfile.GetNextLine();
} while (!sdirfile.Eof());

The crash is in the line "line = sdirfile.GetNextLine();", more precisely, in wxStringBase::operator= (), which is the assignment operator of the wxString class. Another wxBug? Is recompiling wx an option for you?
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421
« Reply #7 on: April 22, 2007, 06:22:11 PM »

Hi Phoenix,
Yes, there's a new line at the end of the line. Yeah, I can recompile wx. I see the current stable version is now 2.8.3 and the previous stable version is 2.6.4. I believe I have 2.6.3. Which version do you want me to compile?
Cheers,
Jonathan
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: cvs 20070421
« Reply #8 on: April 22, 2007, 09:44:51 PM »

Hi Jonathan,

wx-2.8.3 is the one I currently use here, and seems pretty stable. Please give it a try.

Thank you for your patience.

Cheers!
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421: solved!
« Reply #9 on: April 23, 2007, 05:51:04 AM »

Hi Phoenix,
I compiled wxAll and wxGTK from the wxWidgets site. Both were compiled with unicode enabled and both are version 2.8.3. I ran ldconfig after make install for each of them. I then compiled amule's cvs20070421 and now it works. This looks like the same problem that Morricone was having (besides the shareddic.dat one). You may want to warn people that we need to install wxgtk 2.8.3 (or at least something later than 2.6.3 - I don't know if 2.6.4 works or not).
My only problem now is that amule can't find my new libraries like libwx_gtk2u_adv-2.8.so.0. I have to manually do LD_LIBRARY_PATH=/usr/local/lib and export LD_LIBRARY_PATH. This happens every time I compile the wx stuff. arrggghh.
Anyway, thanks for the help Phoneix.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2505
  • The last shadow you'll ever see
Re: cvs 20070421
« Reply #10 on: April 23, 2007, 06:13:56 AM »

Hi Jonathan,

If you want to keep different versions of wx, you have to do some LD_LIBRARY_PATH malabaris.

But if you will keep only one, you can just add the right path to /etc/ld.so.conf.

Nice to know it works now! I will warn Morricone. Thank you for helping us.

Cheers!
Logged

Attila

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 77
    • Ljubljana Phonology
Re: cvs 20070421
« Reply #11 on: April 23, 2007, 06:07:06 PM »

Glad to be of help. Always a pleasure.  :)
Cheers,
Jonathan
Logged