aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuled 21-03-2007 crashes on startup  (Read 3387 times)

morricone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
amuled 21-03-2007 crashes on startup
« on: March 21, 2007, 01:14:05 PM »

amuled: OnInit - starting timer
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: aMuled CVS using wxGTK2 v2.6.3 (Snapshot: Wed Mar 21 07:01:58 CET 2007)
Running on: Linux 2.6.17-2-k7 i686

[2] std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() in amuled [0x80788f3]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.6.so.0[0xa79dbb26]
[4] ?? in [0xffffe420]
[5] wxStringBase::operator=(wxStringBase const&) in /usr/lib/libwx_baseu-2.6.so.0[0xa799e438]
[6] wxStringBase::~wxStringBase() in amuled [0x806fad4]
[7] std::ostream::operator<<(bool) in amuled [0x825c8a7]
[8] std::ostream::operator<<(bool) in amuled [0x8266a39]
[9] std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() in amuled [0x807e7bb]
[10] ?? in amuled [0x806db6a]
[11] wxAppConsole::CallOnInit() in amuled[0x806edc8]
[12] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.6.so.0[0xa797f430]
[13] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.6.so.0[0xa797f506]
[14] ?? in amuled [0x806eb00]
[15] __libc_start_main in /lib/tls/libc.so.6[0xa76c6ea8]
[16] wxAppConsole::Initialize(int&, wchar_t**) in amuled[0x806ce01]


--------------------------------------------------------------------------------
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: amuled 21-03-2007 crashes on startup
« Reply #1 on: March 21, 2007, 06:04:19 PM »

If possible, please try to generate a real backtrace of this crash:
    http://www.amule.org/wiki/index.php/Backtraces

Logged

morricone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amuled 21-03-2007 crashes on startup
« Reply #2 on: April 16, 2007, 03:07:32 PM »

I think I found the problem:

Any entry in shareddir.dat makes aMuled crash.
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: amuled 21-03-2007 crashes on startup
« Reply #3 on: April 17, 2007, 04:39:43 AM »

I think you found nothing but a clue to the problem.

Please compile yourself aMule with debug information so that we can really find the problem.
Logged

morricone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
Re: amuled 21-03-2007 crashes on startup
« Reply #4 on: April 18, 2007, 12:04:01 PM »

Ok ;)

Code: [Select]
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212799312 (LWP 24216)]
0xb7e3ff58 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
(gdb) bt
#0  0xb7e3ff58 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
#1  0x0805a4e9 in wxString::operator= (this=0xbfae4e84) at /usr/include/wx-2.6/wx/string.h:658
#2  0x081e39e8 in CPreferences::ReloadSharedFolders (this=0xbfae4e84) at Preferences.cpp:1551
#3  0x081e9bbe in CPreferences (this=0x85b55f0) at Preferences.cpp:742
#4  0x08065317 in CamuleApp::OnInit (this=0x857c5e8) at amule.cpp:614
#5  0x080589cf in CamuleDaemonApp::OnInit (this=0x857c5e8) at amuled.cpp:439
#6  0x080599d1 in wxAppConsole::CallOnInit (this=0x857c5e8) at /usr/include/wx-2.6/wx/app.h:87
#7  0xb7e21610 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e21710 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#9  0x08059630 in main (argc=Cannot access memory at address 0x6f
) at amuled.cpp:101
(gdb) bt full
#0  0xb7e3ff58 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#1  0x0805a4e9 in wxString::operator= (this=0xbfae4e84) at /usr/include/wx-2.6/wx/string.h:658
No locals.
#2  0x081e39e8 in CPreferences::ReloadSharedFolders (this=0xbfae4e84) at Preferences.cpp:1551
        line = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xb7c8b1a8}, <No data fields>}
        sdirfile = <incomplete type>
#3  0x081e9bbe in CPreferences (this=0x85b55f0) at Preferences.cpp:742
No locals.
#4  0x08065317 in CamuleApp::OnInit (this=0x857c5e8) at amule.cpp:614
        logBackupName = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0x859d514}, <No data fields>}
        FullMuleVersion = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0x8582f74}, <No data fields>}
        OSDescription = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0x85830d4}, <No data fields>}
        cmdline = {m_data = 0x8594800}
        reset_config = false
        geom_string = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xb7e971ec}, <No data fields>}
        logfileName = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0x85ab0e4}, <No data fields>}
        checkResult = {first = 80, second = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xb7b63238}, <No data fields>}}
        vfile = <incomplete type>
        newMule = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xbfae5128}, <No data fields>}
        langId = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xec0e61f4}, <No data fields>}
        msg = {<wxStringBase> = {static npos = 4294967295, m_pchData = 0xbfae5050}, <No data fields>}
#5  0x080589cf in CamuleDaemonApp::OnInit (this=0x857c5e8) at amuled.cpp:439
No locals.
#6  0x080599d1 in wxAppConsole::CallOnInit (this=0x857c5e8) at /usr/include/wx-2.6/wx/app.h:87
No locals.
#7  0xb7e21610 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#8  0xb7e21710 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
No symbol table info available.
#9  0x08059630 in main (argc=Cannot access memory at address 0x6f
) at amuled.cpp:101
No locals.
(gdb) thread apply all bt

Thread 1 (Thread -1212799312 (LWP 24216)):
#0  0xb7e3ff58 in wxStringBase::operator= () from /usr/lib/libwx_baseu-2.6.so.0
#1  0x0805a4e9 in wxString::operator= (this=0xbfae4e84) at /usr/include/wx-2.6/wx/string.h:658
#2  0x081e39e8 in CPreferences::ReloadSharedFolders (this=0xbfae4e84) at Preferences.cpp:1551
#3  0x081e9bbe in CPreferences (this=0x85b55f0) at Preferences.cpp:742
#4  0x08065317 in CamuleApp::OnInit (this=0x857c5e8) at amule.cpp:614
#5  0x080589cf in CamuleDaemonApp::OnInit (this=0x857c5e8) at amuled.cpp:439
#6  0x080599d1 in wxAppConsole::CallOnInit (this=0x857c5e8) at /usr/include/wx-2.6/wx/app.h:87
#7  0xb7e21610 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb7e21710 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#9  0x08059630 in main (argc=Cannot access memory at address 0x6f
) at amuled.cpp:101
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: amuled 21-03-2007 crashes on startup
« Reply #5 on: April 19, 2007, 03:50:38 AM »

Thanks!  ;)

Lets see, these are two different crashes. There is not much I can say about the first one, but the second one is exactly what you said: one entry in shareddir.dat is causing wxTextFile::GetNextLine() to return something bad. Would you mind attaching your shareddir.dat file to your next post? Maybe we can find out another clue there.

Or if you preffer, you can send me a private message with file.

Cheers!
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: amuled 21-03-2007 crashes on startup
« Reply #6 on: April 23, 2007, 06:14:16 AM »

Hi Morricone,

Take a look at this thread:
http://forum.amule.org/index.php?topic=12502.new#new
Logged