aMule Forum

English => aMule crashes => Topic started by: davidshen84 on February 28, 2010, 08:35:34 AM

Title: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: davidshen84 on February 28, 2010, 08:35:34 AM
hi,

i emerged amule 2.2.6 with FEATURES="splitdebug", CFLAGS="-ggdb", USE="debug". and below are the bt:

Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.4-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
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.
0x000000000073735c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()

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

#0  0x000000000073735c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000736c5a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
#2  0x00000000006a19d2 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x000000000069ffab in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644d3b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
#5  0x000000000043c28e in CamuleApp::OnInit (this=0xf153c0) at amule.cpp:608
#6  0x00000000005baef1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
#7  0x00007ffff6298cf3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bb8c2 in main (argc=1, argv=0xf67d10) at amule-gui.cpp:95

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

#0  0x000000000073735c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
No symbol table info available.
#1  0x0000000000736c5a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
No symbol table info available.
#2  0x00000000006a19d2 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
No symbol table info available.
#3  0x000000000069ffab in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
No symbol table info available.
#4  0x0000000000644d3b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
        customBrowser = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7ffff6315678 L""}, <No data fields>}
        incpath = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf61668 L"/root/.aMule/Incoming"}, <No data fields>}
#5  0x000000000043c28e in CamuleApp::OnInit (this=0xf153c0) at amule.cpp:608
        FullMuleVersion = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf5a9f8 L"aMule 2.2.6 using wxGTK2 v2.8.10"}, <No data fields>}
        OSDescription = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf5a948 L"Linux 2.6.31-gentoo-r6 x86_64"}, <No data fields>}
        cmdline = {m_data = 0xf5be80}
        reset_config = false
        geometry_enabled = false
        geom_string = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0x7ffff6315678 L""}, <No data fields>}
        logfileName = {<CPrintable> = {_vptr.CPrintable = 0x8b8db0}, m_printable = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData =
    0xf5d6e8 L"/root/.aMule/logfile"}, <No data fields>}, m_filesystem = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf5d5d8 L"/root/.aMule/logfile"}, <No data fields>}}
        checkResult = {first = 120, second = {<CPrintable> = {_vptr.CPrintable = 0xf2bc00}, m_printable = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData =
    0xf57e38 L"PRC Envelope #4 110 x 208 mm"}, <No data fields>}, m_filesystem = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf30920 L""}, <No data fields>}}}
        vfile = <incomplete type>
        newMule = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf54938 L"SuperB/SuperB/A3 305 x 487 mm"}, <No data fields>}
        langId = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf54cf8 L"A5 Transverse 148 x 210 mm"}, <No data fields>}
        msg = {<wxStringBase> = {static npos = 18446744073709551615, m_pchData = 0xf55238 L"B5 (ISO) Extra 201 x 276 mm"}, <No data fields>}
#6  0x00000000005baef1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
No locals.
#7  0x00007ffff6298cf3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
No symbol table info available.
#8  0x00000000005bb8c2 in main (argc=1, argv=0xf67d10) at amule-gui.cpp:95
No locals.

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

Thread 1 (Thread 0x7ffff7fbc740 (LWP 653)):
#0  0x000000000073735c in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x0000000000736c5a in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
#2  0x00000000006a19d2 in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x000000000069ffab in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000644d3b in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1166
#5  0x000000000043c28e in CamuleApp::OnInit (this=0xf153c0) at amule.cpp:608
#6  0x00000000005baef1 in CamuleGuiApp::OnInit (this=0x100) at amule-gui.cpp:263
#7  0x00007ffff6298cf3 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00000000005bb8c2 in main (argc=1, argv=0xf67d10) at amule-gui.cpp:95


i hope this can help identify the problem. if you need any info. feel free to ping me.


David,
Thanks
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: Stu Redman on February 28, 2010, 11:44:42 AM
Problem is you have a broken CryptoPP lib. Did you compile it yourself or did it come with your distro ?
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: btkaos on March 02, 2010, 03:12:09 PM
Problem is you have a broken CryptoPP lib. Did you compile it yourself or did it come with your distro ?
Gentoo == high probability he did compile the library itself with wrong options.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: davidshen84 on March 03, 2010, 07:54:58 AM
Problem is you have a broken CryptoPP lib. Did you compile it yourself or did it come with your distro ?
Gentoo == high probability he did compile the library itself with wrong options.

sorry for the delay. i forgot to check this post. :)

is this cryptopplib comes from crypto++ package?

what options should i compile with? i did not touch the default compilation options of this package. i checked my system, and the installed version does not have the 'sse3' option enabled. does this matter?

thanks.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: GonoszTopi on March 03, 2010, 09:08:10 AM
After compilation of crypto++ execute "cryptest.exe v" from the source directory. All tests should pass, otherwise it won't work. You may try adding -DCRYPTOPP_DISABLE_ASM to your compilation command line, and/or disabling its default -O2 optimization.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: btkaos on March 03, 2010, 01:50:21 PM
Problem is you have a broken CryptoPP lib. Did you compile it yourself or did it come with your distro ?
Gentoo == high probability he did compile the library itself with wrong options.

sorry for the delay. i forgot to check this post. :)

is this cryptopplib comes from crypto++ package?

what options should i compile with? i did not touch the default compilation options of this package. i checked my system, and the installed version does not have the 'sse3' option enabled. does this matter?

thanks.
Care to post what CFLAGS, etc... did you use? (Or otherwise the default ones)

Another option is to try to emerge crypto++ and amule again.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: davidshen84 on March 03, 2010, 03:02:24 PM
After compilation of crypto++ execute "cryptest.exe v" from the source directory. All tests should pass, otherwise it won't work. You may try adding -DCRYPTOPP_DISABLE_ASM to your compilation command line, and/or disabling its default -O2 optimization.

i tried "cryptest.exe v" and the last line is "Illegal instruction". i guess it means it is failed...how should i fix this?

my CFLAGS="-march -O2 -pipe", but the compiling crypto++, i see the actual options is "-O1". may be gentoo did some patch, and make sure this package is always compiled with "-O1".
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: btkaos on March 03, 2010, 06:04:35 PM
After compilation of crypto++ execute "cryptest.exe v" from the source directory. All tests should pass, otherwise it won't work. You may try adding -DCRYPTOPP_DISABLE_ASM to your compilation command line, and/or disabling its default -O2 optimization.

i tried "cryptest.exe v" and the last line is "Illegal instruction". i guess it means it is failed...how should i fix this?

my CFLAGS="-march -O2 -pipe", but the compiling crypto++, i see the actual options is "-O1". may be gentoo did some patch, and make sure this package is always compiled with "-O1".
Then it is surely miscompiled, try to re-emerge it with some safe options, like the ones suggested.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: GonoszTopi on March 04, 2010, 12:53:35 AM
i tried "cryptest.exe v" and the last line is "Illegal instruction". i guess it means it is failed...how should i fix this?
You may try adding -DCRYPTOPP_DISABLE_ASM to your compilation command line, and/or disabling its default -O2 optimization.
Title: Re: amule 2.2.6 creashes on gentoo amd64, kde 4.3
Post by: davidshen84 on March 05, 2010, 05:06:02 AM
i tried "cryptest.exe v" and the last line is "Illegal instruction". i guess it means it is failed...how should i fix this?
You may try adding -DCRYPTOPP_DISABLE_ASM to your compilation command line, and/or disabling its default -O2 optimization.

thanks a lot. compile crypto++ with -DCRYPTOPP_DISABLE_ASM solved my problem.