aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule-2.2.6 startup crash on gentoo  (Read 8584 times)

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
amule-2.2.6 startup crash on gentoo
« on: January 04, 2010, 12:23:16 PM »

Hi, this is my first post here!
Hi have a pc with the gentoo distribution.

"uname -a" gives:

Linux server 2.6.32-gentoo-r1 #1 SMP Tue Dec 29 20:24:36 CET 2009 x86_64 Pentium(R) Dual-Core CPU E5200 @ 2.50GHz GenuineIntel GNU/Linux

i've emerged amule-2.2.6 and wxGTK-2.8.10.1-r3 without problem. When everytime i try to start amule it crashes with this error:

*************************************************************************************
Initialising aMule 2.2.6 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://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.10
Running on: Linux 2.6.32-gentoo-r1 x86_64

[2] ?? in amule[0x4383ef]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7fb1bacaf65c]
[4] ?? in /lib/libpthread.so.0[0x7fb1bc5ad400]
[5] ?? in amule[0x73859c]
[6] ?? in amule[0x737e9a]
[7] ?? in amule[0x6a3192]
[8] ?? in amule[0x6a1775]
[9] ?? in amule[0x644b2b]
[10] ?? in amule[0x43c21e]
[11] ?? in amule[0x5bbea1]
[12] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7fb1bac50853]
[13] ?? in amule[0x5bc872]
[14] __libc_start_main in /lib/libc.so.6[0x7fb1ba0d1ba6]
[15] ?? in amule[0x433e69]


--------------------------------------------------------------------------------
Aborted

*******************************************************************************************************

So i've decided to make a backtrace. This is the output:

Initialising aMule 2.2.6 using wxGTK2 v2.8.10
Checking if there is an instance already running...
No other instances are running.

Program received signal SIGSEGV, Segmentation fault.
0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
(gdb) bt
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95
(gdb) bt full
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
No symbol table info available.
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
No symbol table info available.
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
No symbol table info available.
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
No symbol table info available.
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
        customBrowser = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7ffff62f72f8 L""}, <No data fields>}
        incpath = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe7ea38 L"/home/ale/.aMule/Incoming"}, <No data fields>}
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
        FullMuleVersion = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe775c8 L"aMule 2.2.6 using wxGTK2 v2.8.10"}, <No data fields>}
        OSDescription = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe774a8 L"Linux 2.6.32-gentoo-r1 x86_64"}, <No data fields>}
        cmdline = {m_data = 0xe776a0}
        reset_config = false
        geometry_enabled = false
        geom_string = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7ffff62f72f8 L""}, <No data fields>}
        logfileName = {<CPrintable> = {_vptr.CPrintable = 0x83c910}, m_printable = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData =
    0xe79718 L"/home/ale/.aMule/logfile"}, <No data fields>}, m_filesystem = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData =
    0xe79668 L"/home/ale/.aMule/logfile"}, <No data fields>}}
        checkResult = {first = 216, second = {<CPrintable> = {_vptr.CPrintable = 0xe6b3a0}, m_printable = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0xe74a98 L"PRC Envelope #4 110 x 208 mm"}, <No data fields>}, m_filesystem = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0x7ffff7fdf4f0 L"\xf61d9000\x7fff\xf7fdf4d0\x7fff\xf6536268\x7fff\xf7fdf9e8\x7fff\xf7fdf000\x7fff\xf7fdf4f0\x7fff"}, <No data fields>}}}
        vfile = <incomplete type>
        newMule = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe71598 L"SuperB/SuperB/A3 305 x 487 mm"}, <No data fields>}
        langId = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe71958 L"A5 Transverse 148 x 210 mm"}, <No data fields>}
        msg = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xe71e98 L"B5 (ISO) Extra 201 x 276 mm"}, <No data fields>}
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
No locals.
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fc9740 (LWP 14332)):
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)
    ()
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...)
    at Preferences.cpp:1166
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100)
    at amule-gui.cpp:263
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95
(gdb) bt full
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
No symbol table info available.
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)
    ()
No symbol table info available.
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
No symbol table info available.
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
No symbol table info available.
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...)
    at Preferences.cpp:1166
        customBrowser = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData = 0x7ffff62f72f8 L""}, <No data fields>}
        incpath = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData =
    0xe7ea38 L"/home/ale/.aMule/Incoming"}, <No data fields>}
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
        FullMuleVersion = {<wxStringBase> = {static npos =
    18446744073709551615, m_pchData =
---Type <return> to continue, or q <return> to quit---
    0xe775c8 L"aMule 2.2.6 using wxGTK2 v2.8.10"}, <No data fields>}
        OSDescription = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData =
    0xe774a8 L"Linux 2.6.32-gentoo-r1 x86_64"}, <No data fields>}
        cmdline = {m_data = 0xe776a0}
        reset_config = false
        geometry_enabled = false
        geom_string = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData = 0x7ffff62f72f8 L""}, <No data fields>}
        logfileName = {<CPrintable> = {_vptr.CPrintable = 0x83c910},
          m_printable = {<wxStringBase> = {static npos = 18446744073709551615,
              m_pchData =
    0xe79718 L"/home/ale/.aMule/logfile"}, <No data fields>}, m_filesystem =
    {<wxStringBase> = {static npos = 18446744073709551615, m_pchData =
    0xe79668 L"/home/ale/.aMule/logfile"}, <No data fields>}}
        checkResult = {first = 216, second = {<CPrintable> = {
              _vptr.CPrintable = 0xe6b3a0}, m_printable = {<wxStringBase> = {
                static npos = 18446744073709551615, m_pchData =
    0xe74a98 L"PRC Envelope #4 110 x 208 mm"}, <No data fields>},
            m_filesystem = {<wxStringBase> = {static npos =
    18446744073709551615, m_pchData =
    0x7ffff7fdf4f0 L"\xf61d9000\x7fff\xf7fdf4d0\x7fff\xf6536268\x7fff\xf7fdf9e8\x7fff\xf7fdf000\x7fff\xf7fdf4f0\x7fff"}, <No data fields>}}}
---Type <return> to continue, or q <return> to quit---
        vfile = <incomplete type>
        newMule = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData =
    0xe71598 L"SuperB/SuperB/A3 305 x 487 mm"}, <No data fields>}
        langId = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData =
    0xe71958 L"A5 Transverse 148 x 210 mm"}, <No data fields>}
        msg = {<wxStringBase> = {static npos = 18446744073709551615,
            m_pchData =
    0xe71e98 L"B5 (ISO) Extra 201 x 276 mm"}, <No data fields>}
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100)
    at amule-gui.cpp:263
No locals.
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95
No locals.
(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fc9740 (LWP 13921)):
#0  0x000000000073859c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000737e9a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long)
    ()
#2  0x00000000006a3192 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x00000000006a1775 in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644b2b in CPreferences::BuildItemList (appdir=...)
    at Preferences.cpp:1166
#5  0x000000000043c21e in CamuleApp::OnInit (this=0xe3c210) at amule.cpp:608
#6  0x00000000005bbea1 in CamuleGuiApp::OnInit (this=0x100)
    at amule-gui.cpp:263
#7  0x00007ffff6275853 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bc872 in main (argc=1, argv=0xe850e0) at amule-gui.cpp:95

Thanks for any advice and for your work!!!!!!!!!!!!!

Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule-2.2.6 startup crash on gentoo
« Reply #1 on: January 04, 2010, 12:37:12 PM »

Umm, it looks like classical Gentoo borkage (sadly funroll-loops.org is gone). Care to post what version of CryptoPP do you have installed and what the flags are used?

For starters, you shoulnd't use -O3 or any other exotic features in all the aMule stack.
Logged

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: amule-2.2.6 startup crash on gentoo
« Reply #2 on: January 04, 2010, 01:18:07 PM »

Hi, thanks for the quick reply!

i'm using the  crypto++-5.6.0-r1. I've tried with the crypto++-5.5.2-r1 and it doesn't works...

Here is my make.conf file:

CFLAGS="-march=core2 -O3 -pipe -ggdb"
CXXFLAGS="-march=core2 -O3 -pipe -ggdb"

CHOST="x86_64-pc-linux-gnu"

ACCEPT_KEYWORDS="~amd64"
MAKEOPTS="-j3"
FEATURES="parallel-fetch splitdebug"

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="3dnow acpi bash-completion cairo consolekit dbus dedicated extras firefox gif gimp gnome gtk hal java jpeg jpeg2k mime mmx opngl policykit samba server smp svg sse sse2 sse3 sse4 svg vnc X xmp wx "

LINGUAS="it"
VIDEO_CARDS=""

GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ "

source /usr/local/portage/layman/make.conf

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

I've tried to compile amule, crypto++ and wxGTK without using -O3 and pipe, but the problem persist...
Logged

btkaos

  • Global Moderator
  • Sr. Member
  • *****
  • Karma: 110
  • Offline Offline
  • Posts: 486
  • Kaos is infinite!
Re: amule-2.2.6 startup crash on gentoo
« Reply #3 on: January 04, 2010, 01:32:52 PM »

CFLAGS="-march=core2 -O3 -pipe -ggdb"
CXXFLAGS="-march=core2 -O3 -pipe -ggdb"

I've tried to compile amule, crypto++ and wxGTK without using -O3 and pipe, but the problem persist...
Are you sure? I'm pretty much sure the problem is that CryptoPP cannot be compiled with -O3.

Your CFLAGS and CXXFLAGS  are insane for general purpose programs like aMule, try it again with -O2 and make sure wxwidgets, cryptopp and aMule are emerged with -O2.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: amule-2.2.6 startup crash on gentoo
« Reply #4 on: January 04, 2010, 01:53:32 PM »

You may also add -DCRYPTOPP_DISABLE_ASM for cryptopp
Logged
concordia cum veritate

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: amule-2.2.6 startup crash on gentoo
« Reply #5 on: January 04, 2010, 01:58:10 PM »

CFLAGS="-march=core2 -O3 -pipe -ggdb"
CXXFLAGS="-march=core2 -O3 -pipe -ggdb"

I've tried to compile amule, crypto++ and wxGTK without using -O3 and pipe, but the problem persist...
Are you sure? I'm pretty much sure the problem is that CryptoPP cannot be compiled with -O3.

Your CFLAGS and CXXFLAGS  are insane for general purpose programs like aMule, try it again with -O2 and make sure wxwidgets, cryptopp and aMule are emerged with -O2.

nope, still broken, thanks anyway
Logged

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: amule-2.2.6 startup crash on gentoo
« Reply #6 on: January 04, 2010, 02:03:43 PM »

You may also add -DCRYPTOPP_DISABLE_ASM for cryptopp

also this didn't resolve the problem :-[ :-[ :-[
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amule-2.2.6 startup crash on gentoo
« Reply #7 on: January 04, 2010, 02:07:59 PM »

Have you recompiled both crypto++ and aMule after making the DISABLE_ASM change? aMule will still use the old crypto++ version if not recompiled.
Logged

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: amule-2.2.6 startup crash on gentoo
« Reply #8 on: January 04, 2010, 02:09:09 PM »

Have you recompiled both crypto++ and aMule after making the DISABLE_ASM change? aMule will still use the old crypto++ version if not recompiled.

yes.... :-[ :-[ :-[ :-[
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: amule-2.2.6 startup crash on gentoo
« Reply #9 on: January 04, 2010, 02:15:42 PM »

OK, does "./cryptest.exe v" (should be inside the crypto++ source directory) show any errors?
If yes, please disable all optimization (-O0) and see if there are no more errors. You might also try 5.5.2 instead of 5.6.0.
Logged

MrWolfe

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: amule-2.2.6 startup crash on gentoo
« Reply #10 on: January 04, 2010, 02:32:20 PM »

wwwwwwwwwwwwwwwwoooooooooooowwwwwwwwwwoooooooooooooooooooooooooooooohhhhhhhhhhhhhhhhhhhhhhh

Thanks to all!!!!!!

It didn't work until i recompiled also the wxGTK with the -DCRYPTOPP_DISABLE_ASM, dont know why, but when i recompiled this it began to work!!!!!! ( -DCRYPTOPP_DISABLE_ASM isn't a compile options for crypto++ ?? )

Thanks so so so much!!!!!!!!!!!!!!!!!!!
Logged