aMule Bug Tracker - aMule
View Issue Details
0001546aMuleMiscpublic2009-07-30 14:172009-12-02 20:58
disconnect 
sturedman 
normalcrashalways
closedno change required 
2.2.5 
 
Gentoo Linux
0001546: aMule crashes on startup (Gentoo Linux amd64 glibc 2.10 gcc 4.4)
Hello. My aMule crashes on startup.
I'm Gentoo Linux ~amd64 and the aMule 2.2.5 from portage.
My system is 100% ~amd64 compiled with gcc 4.4.1 (from portage) few days ago. Glibc version is 2.10.1.

Here are my compiler settings:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

I compile aMule with the following command
FEATURES="nostrip" USE="debug" emerge -1 amule
The resulting USE flags were:
USE="debug geoip gtk nls unicode upnp -daemon -remote -stats"

I created .gdbinit file as I was told there: http://wiki.amule.org/index.php/Backtraces [^] and create the backtrace. It is provided at "Additional Information" section
Trying to run:
disc@disconnect ~ $ amule
Initialising aMule 2.2.5 using wxGTK2 v2.8.10
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/index.php?board=67.0 [^]
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.2.5 using wxGTK2 v2.8.10
Running on: Linux 2.6.28-gentoo-r6 x86_64

[2] fprintf in stdio2.h:99
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7ff44f123a7c]
[4] ?? in /lib/libpthread.so.0 [0x32e7c0f0d0]
[5] CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) in /usr/lib/libcrypto++.so.0[0x7ff4507c3f0e]
[6] CPreferences::BuildItemList(wxString const&) in Preferences.cpp:1166
[7] CamuleApp::OnInit() in amule.cpp:609
[8] CamuleGuiApp::OnInit() in amule-gui.cpp:263
[9] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7ff44f0c57c2]
[10] main in amule-gui.cpp:95
[11] __libc_start_main in /lib/libc.so.6[0x32e701ea3d]
[12] _start in :0


--------------------------------------------------------------------------------
disc@disconnect ~ $ gdb `which amule`
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> [^]
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(gdb) run
Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread 0x7f0dcce0e770 (LWP 7530)]
Initialising aMule 2.2.5 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0dcce0e770 (LWP 7530)]
0x00007f0dd0fbaf0e in CryptoPP::RandomNumberGenerator::GenerateWord32 () from /usr/lib/libcrypto++.so.0
(gdb) bt
#0 0x00007f0dd0fbaf0e in CryptoPP::RandomNumberGenerator::GenerateWord32 () from /usr/lib/libcrypto++.so.0
0000001 0x000000000066c1ed in CPreferences::BuildItemList (appdir=<value optimized out>) at Preferences.cpp:1166
0000002 0x000000000045206b in CamuleApp::OnInit (this=0x202ed00) at amule.cpp:608
0000003 0x00000000005e0417 in CamuleGuiApp::OnInit (this=0xdc9a20) at amule-gui.cpp:263
0000004 0x00007f0dcf8bc7c2 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
0000005 0x00000000005e0d92 in main (argc=1, argv=0x7fffd9632b18) at amule-gui.cpp:95
(gdb) bt full
#0 0x00007f0dd0fbaf0e in CryptoPP::RandomNumberGenerator::GenerateWord32 () from /usr/lib/libcrypto++.so.0
No symbol table info available.
0000001 0x000000000066c1ed in CPreferences::BuildItemList (appdir=<value optimized out>) at Preferences.cpp:1166
    customBrowser = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7f0dcf938f18}, <No data fields>}
    incpath = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20e7918}, <No data fields>}
0000002 0x000000000045206b in CamuleApp::OnInit (this=0x202ed00) at amule.cpp:608
    geometry_enabled = <value optimized out>
    newMule = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20c2168}, <No data fields>}
    cmdline = {m_data = 0x20b9a30}
    reset_config = false
    geom_string = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7f0dcf938f18}, <No data fields>}
    logfileName = {<CPrintable> = {_vptr.CPrintable = 0x830b90}, m_printable = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0x20cf488}, <No data fields>}, m_filesystem = {<wxStringBase> = {static npos = 18446744073709551615,
      m_pchData = 0x20cf3d8}, <No data fields>}}
    msg = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20c2a68}, <No data fields>}
    FullMuleVersion = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20c80f8}, <No data fields>}
    OSDescription = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20ba458}, <No data fields>}
    checkResult = {first = 168, second = {<CPrintable> = {_vptr.CPrintable = 0x20bbed0}, m_printable = {<wxStringBase> = {
        static npos = 18446744073709551615, m_pchData = 0x20c5668}, <No data fields>}, m_filesystem = {<wxStringBase> = {
        static npos = 18446744073709551615, m_pchData = 0x46}, <No data fields>}}}
    vfile = <incomplete type>
    langId = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x20c2528}, <No data fields>}
0000003 0x00000000005e0417 in CamuleGuiApp::OnInit (this=0xdc9a20) at amule-gui.cpp:263
No locals.
0000004 0x00007f0dcf8bc7c2 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
0000005 0x00000000005e0d92 in main (argc=1, argv=0x7fffd9632b18) at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt

Thread 1 (Thread 0x7f0dcce0e770 (LWP 7530)):
#0 0x00007f0dd0fbaf0e in CryptoPP::RandomNumberGenerator::GenerateWord32 () from /usr/lib/libcrypto++.so.0
0000001 0x000000000066c1ed in CPreferences::BuildItemList (appdir=<value optimized out>) at Preferences.cpp:1166
0000002 0x000000000045206b in CamuleApp::OnInit (this=0x202ed00) at amule.cpp:608
0000003 0x00000000005e0417 in CamuleGuiApp::OnInit (this=0xdc9a20) at amule-gui.cpp:263
0000004 0x00007f0dcf8bc7c2 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
0000005 0x00000000005e0d92 in main (argc=1, argv=0x7fffd9632b18) at amule-gui.cpp:95
No tags attached.
duplicate of 0001565closed sturedman aMule crashes on startup (Gentoo Linux amd64 glibc 2.11 gcc 4.4) 
Issue History
2009-07-30 14:17disconnectNew Issue
2009-07-30 14:17disconnectOperating System => Gentoo Linux
2009-07-30 14:20disconnectNote Added: 0003274
2009-07-30 14:20disconnectNote Edited: 0003274
2009-07-30 14:21disconnectNote Edited: 0003274
2009-09-19 00:17disconnectNote Added: 0003297
2009-12-02 20:56sturedmanRelationship addedduplicate of 0001565
2009-12-02 20:58sturedmanNote Added: 0003333
2009-12-02 20:58sturedmanAssigned To => sturedman
2009-12-02 20:58sturedmanStatusnew => closed
2009-12-02 20:58sturedmanResolutionopen => no change required

Notes
(0003274)
disconnect   
2009-07-30 14:20   
(edited on: 2009-07-30 14:21)
List of direct aMule dependencies:
disconnect disc # equery g --depth=1 net-p2p/amule-2.2.5
 * Searching for amule in net-p2p ...
 * dependency graph for net-p2p/amule-2.2.5:
`-- net-p2p/amule-2.2.5
 `-- x11-libs/wxGTK-2.8.10.1-r1
 `-- dev-libs/crypto++-5.6.0-r1
 `-- sys-libs/zlib-1.2.3-r1
 `-- media-libs/gd-2.0.35 [stats]
 `-- dev-libs/geoip-1.4.6 [geoip]
 `-- net-libs/libupnp-1.6.6-r1 [upnp]
 `-- media-libs/libpng-1.2.38 [remote]
[ net-p2p/amule-2.2.5 stats: packages (8), max depth (1) ]

I tried to recompile wxGTK, crypto++ and all other direct dependencies, but it still crashes. Recompilation of aMule itself didnt help too.

(0003297)
disconnect   
2009-09-19 00:17   
The issue was solved after downgrading to dev-libs/crypto++-5.5.2-r1

I'm not a developer and dont know is it crypto++ library bug or amule incompitablity with new crypto++ version, so i'll leave this bug open.

Close it if it's not aMule bug.
(0003333)
sturedman   
2009-12-02 20:58   
Bad cryptopp