aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [REAL BACKTRACE] aMuled startup crash [aMule-CVS-20060304], not described before  (Read 3784 times)

orinoco

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14

After compilation of aMuled I have got this crash when I want to run aMuled:

====================================================
(gdb) run --only-chuck-norris-would-stop-me
Starting program: /usr/local/bin/amuled --only-chuck-norris-would-stop-me
[Thread debugging using libthread_db enabled]
[New Thread -1213443968 (LWP 9496)]
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 -1213443968 (LWP 9496)]
0xb7b42363 in strlen () from /lib/tls/libc.so.6

(gdb) bt
#0  0xb7b42363 in strlen () from /lib/tls/libc.so.6
#1  0xb7b2cb46 in puts () from /lib/tls/libc.so.6
#2  0x08054800 in CamuleDaemonApp::ShowAlert (this=0x84ea838, msg=
        { = {static npos = 4294967295, m_pchData = 0x852c754}, }, title=
        { = {static npos = 4294967295, m_pchData = 0x852cab4}, }, flags=517) at amuled.cpp:548
#3  0x0805e452 in CamuleApp::OnInit (this=0x84ea838) at amule.cpp:628
#4  0x0805443c in CamuleDaemonApp::OnInit (this=0x84ea838) at amuled.cpp:469
#5  0x08055346 in wxAppConsole::CallOnInit (this=0x84ea838) at app.h:81
#6  0xb7d57260 in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
#7  0xb7d5736d in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
#8  0x08053348 in main (argc=2, argv=0xbfb11ec4) at amuled.cpp:132

(gdb) bt full
#0  0xb7b42363 in strlen () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb7b2cb46 in puts () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x08054800 in CamuleDaemonApp::ShowAlert (this=0x84ea838, msg=
        { = {static npos = 4294967295, m_pchData = 0x852c754}, }, title=
        { = {static npos = 4294967295, m_pchData = 0x852cab4}, }, flags=517) at amuled.cpp:548
No locals.
#3  0x0805e452 in CamuleApp::OnInit (this=0x84ea838) at amule.cpp:628
        msg = { = {static npos = 4294967295, m_pchData = 0x852c754}, }
        cmdline = {m_data = 0x8502780}
        geometry_enabled = false
        geom_string = { = {static npos = 4294967295, m_pchData = 0xb7dd5f3c}, }
        cfg = (struct wxConfigBase *) 0x8503af0
        checkResult = {first = true, second = { = {static npos = 4294967295,
      m_pchData = 0x850b09c}, }}
        vfile =
        newMule = { = {static npos = 4294967295, m_pchData = 0x863ce34}, }
        langId = { = {static npos = 4294967295, m_pchData = 0x852c754}, }
        msg = { = {static npos = 4294967295, m_pchData = 0x852c754}, }
        ok = false
#4  0x0805443c in CamuleDaemonApp::OnInit (this=0x84ea838) at amuled.cpp:469
No locals.
#5  0x08055346 in wxAppConsole::CallOnInit (this=0x84ea838) at app.h:81
No locals.
#6  0xb7d57260 in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
No symbol table info available.
#7  0xb7d5736d in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
No symbol table info available.
#8  0x08053348 in main (argc=2, argv=0xbfb11ec4) at amuled.cpp:132
No locals.

(gdb) thread apply all bt

Thread 1 (Thread -1213443968 (LWP 9496)):
#0  0xb7b42363 in strlen () from /lib/tls/libc.so.6
#1  0xb7b2cb46 in puts () from /lib/tls/libc.so.6
#2  0x08054800 in CamuleDaemonApp::ShowAlert (this=0x84ea838, msg=
        { = {static npos = 4294967295, m_pchData = 0x852c754}, }, title=
        { = {static npos = 4294967295, m_pchData = 0x852cab4}, }, flags=517) at amuled.cpp:548
#3  0x0805e452 in CamuleApp::OnInit (this=0x84ea838) at amule.cpp:628
#4  0x0805443c in CamuleDaemonApp::OnInit (this=0x84ea838) at amuled.cpp:469
#5  0x08055346 in wxAppConsole::CallOnInit (this=0x84ea838) at app.h:81
#6  0xb7d57260 in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
#7  0xb7d5736d in wxEntry () from /usr/lib/libwx_baseu-2.7.so.0
#8  0x08053348 in main (argc=2, argv=0xbfb11ec4) at amuled.cpp:132
====================================================

Step in which I compiled aMuled:

I installed aMule using the newest wxWidgets: http://biolpc22.york.ac.uk/pub/CVS_HEAD/wx-cvs-Gtk.tar.bz2
After unpack I did "cd wxGTK". And then:
"mkdir base-release"
"cd base-release"
debian:~/wxGTK/base-release# ../configure --disable-gui --prefix=/usr --enable-unicode --disable-compat24 --enable-optimise

----------------------------------------------------------------------------------------------------
Configured wxWidgets 2.7.0 for `i586-pc-linux-gnu'

Which GUI toolkit should wxWidgets use? base only
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg none
png none
regex builtin
tiff none
zlib sys
odbc no
expat builtin
libmspack no
sdl no
gnomeprint none
hildon none
----------------------------------------------------------------------------------------------------

make
make install
ldconfig

Then I downloaded: http://www.hirnriss.net/files/cvs/aMule-CVS-20060304.tar.bz2

cd amule-cvs

debian:~/amule-cvs# ./configure --disable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-debug --disable-optimize --enable-kad --disable-ed2k --disable-amule-gui

----------------------------------------------------------------------------------------------------
  Configure script has finished system check.

  Configured aMule CVS for 'i586-pc-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  no

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.7.0
                                       crypto++              embedded
                                       libpng                1.2.8
                                       libgd                 2.0.33
                                       zlib                  1.2.3

----------------------------------------------------------------------------------------------------

make
make install

And now results of normal program run:

----------------------------------------------------------------------------------------------------
debian:~# amuled --only-chuck-norris-would-stop-me
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  v2.7.0 (Snapshot: Sat Mar  4 07:01:56 CET 2006)
Running on: Linux 2.6.15.2 i586

[2] CamuleApp::OnFatalException() in amule.cpp:1170
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.7.so.0[0xb7e31db8]
[4] ?? in [0xffffe420]
[5] CamuleDaemonApp::ShowAlert(wxString, wxString, int) in amuled.cpp:548
[6] CamuleApp::OnInit() in amule.cpp:628
[7] CamuleDaemonApp::OnInit() in amuled.cpp:469
[8] wxAppConsole::CallOnInit() in app.h:81
[9] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.7.so.0[0xb7dd1260]
[10] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.7.so.0[0xb7dd136d]
[11] main in amuled.cpp:132
[12] __libc_start_main in /lib/tls/libc.so.6[0xb7b59974]
[13] _start in start.S:105


--------------------------------------------------------------------------------
Przerwane
-----------------------------------------------------------------------------------------------------

I must add, that this crach I have got will all newer and older verisons of aMule, wxWidgets, etc, etc. So, what is the bug? Can you help me?
« Last Edit: March 05, 2006, 10:24:27 PM by orinoco »
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

orinoco,

Try tomorrow cvs, Xaignar has just fixed that.

Cheers!
Logged

orinoco

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14

OK, this was fixed but:

I compiled aMuled from CVS 10-03-2006. Configure options:

debian:~/amule-cvs# ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-debug --disable-optimize --disable-amule-gui

After running first time there was:

===========================================================================
===========================
temp@debian:~$ amuled --only-chuck-norris-would-stop-me
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
BĹÄ
D: Informacje --- Po raz pierwszy uruchomiĹeĹMule CVS ---

Ta wersja jest wersjÄ
testowÄ
, aktualizowanÄ
codziennie i
nie dajemy gwarancji, Ĺźe to nie zniszczy niczego, spali twojego domu,
lub zabije twego psa. Ale *powinna* mimowszystko dziaĹaÄ poprawnie.

WiÄcej informacji, pomoc i nowe wydania znajdziesz na naszej stronie,
http://www.aMule.org, lub na naszym kanele IRC #aMule irc.freenode.net.

Nie krÄpuj siÄ, zgĹaszaj jakiekolwiek bĹÄdy na http://forum.amule.org
Loading temp files from /home/temp/.aMule/Temp.

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
Empty dir /home/temp/.aMule/Incoming shared

(null)

Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.
temp@debian:~$
===========================================================================
===========================


Amuled as you saw exits without any reason! So I started amuled second time. And amuled exits without any reason second time!


===========================================================================
===========================
temp@debian:~$ amuled --only-chuck-norris-would-stop-me
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/temp/.aMule/Temp.

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
Empty dir /home/temp/.aMule/Incoming shared

(null)

Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.
temp@debian:~$
===========================================================================
===========================

So I started amuled with "-o" switch to see all logs:


===========================================================================
===========================
temp@debian:~$ amuled -o --only-chuck-norris-would-stop-me
amuled: OnInit - starting timer
Logging to stdout enabled
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
(null)2006-03-10 20:49:12: Otwieram plik server.met: /home/temp/.aMule/server.met
2006-03-10 20:49:12: 0 serwerów znaleziono w server.met
Loading temp files from /home/temp/.aMule/Temp.

All PartFiles Loaded.
(null)(null)2006-03-10 20:49:12: MuleUDPSocket: Created Server UDP-Socket at port 4665
ListenSocket: Ok.
2006-03-10 20:49:12: MuleUDPSocket: Created Client UDP-Socket at port 4672

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
Empty dir /home/temp/.aMule/Incoming shared
(null)(null)(null)2006-03-10 20:49:12: Wczytaj 0 kontaktów Kad
2006-03-10 20:49:12: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
(null)(null)2006-03-10 20:49:12: ThreadScheduler: Completed task 'Load IPFilter', 1 tasks remaining.
2006-03-10 20:49:12: ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
2006-03-10 20:49:12: General: CamuleDaemonApp::OnRun()
(null)
(null)

2006-03-10 20:49:12: MuleUDPSocket: Shutting down Client UDP-Socket
Now, exiting main app...
aMule OnExit: Terminating core.
2006-03-10 20:49:12: MuleUDPSocket: Shutting down Server UDP-Socket
aMule shutdown completed.
temp@debian:~$
===========================================================================
===========================

And now I suspected crash, so I did real backtrace - but now error was found:

===========================================================================
===========================
(gdb) ha SIGPIPE nostop noprint pass
Signal Stop Print Pass to program Description
SIGPIPE No No Yes Broken pipe
(gdb) ha SIG32 nostop noprint pass
Signal Stop Print Pass to program Description
SIG32 No No Yes Real-time event 32
(gdb) ha SIG33 nostop noprint pass
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) ha SIG34 nostop noprint pass
Signal Stop Print Pass to program Description
SIG34 No No Yes Real-time event 34
(gdb) run --only-chuck-norris-would-stop-me
Starting program: /usr/local/bin/amuled --only-chuck-norris-would-stop-me
[Thread debugging using libthread_db enabled]
[New Thread -1213362048 (LWP 6484)]
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
[New Thread -1213731920 (LWP 6490)]
Loading temp files from /home/temp/.aMule/Temp.

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
Empty dir /home/temp/.aMule/Incoming shared
[New Thread -1222120528 (LWP 6491)]
[New Thread -1230509136 (LWP 6492)]

(null)

[Thread -1222120528 (zombie) exited]
[Thread -1213731920 (zombie) exited]
[Thread -1230509136 (zombie) exited]
Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.

Program exited normally.
(gdb) bt
No stack.
(gdb) bt full
No stack.
(gdb) thread apply all bt
(gdb)
===========================================================================
===========================

So, what is the problem? Why amuled is exiting? This problem is with all (stable/cvs) versions of amule using all (2.6.x/2.7) version of wxwidgets.

How can I run amuled to avoid exiting? OS: Debian Sarge. Wxbase compiled by myself from current today CVS...
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

orinoco,

Please, read the docs and enable external connections:

Quote
Originally posted by orinoco
temp@debian:~$ amuled --only-chuck-norris-would-stop-me
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
B�
D: Informacje --- Po raz pierwszy uruchomiĹeĹMule CVS ---

Ta wersja jest wersj�
testow�
, aktualizowan�
codziennie i
nie dajemy gwarancji, Ĺźe to nie zniszczy niczego, spali twojego domu,
lub zabije twego psa. Ale *powinna* mimowszystko dziaĹa� poprawnie.

Wi�cej informacji, pomoc i nowe wydania znajdziesz na naszej stronie,
http://www.aMule.org, lub na naszym kanele IRC #aMule irc.freenode.net.

Nie kr�puj si�, zgĹaszaj jakiekolwiek bĹ�dy na http://forum.amule.org
Loading temp files from /home/temp/.aMule/Temp.

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
Empty dir /home/temp/.aMule/Incoming shared

(null)

Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.
Logged

orinoco

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14

OK, thanks, amuled works :) But now have got such problem :(

http://forum.amule.org/thread.php?threadid=9385&sid=
Logged