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[amule-svn-r9872] crashing  (Read 4223 times)

berte

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
aMule 2.2.6[amule-svn-r9872] crashing
« on: November 17, 2009, 06:49:06 AM »

Hello everyone,

Could you give me any idea or advice for this crash ?

=============backtrace=================
#0  0x000000000084c2ec in CryptoPP::Rijndael::Enc::ProcessAndXorBlock(unsigned char const*, unsigned char const*, unsigned char*) const ()
#1  0x000000000084bbd9 in CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::string const&, unsigned long long) ()
#2  0x00000000007bcb6d in CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned long) ()
#3  0x00000000007ba8cd in CryptoPP::RandomNumberGenerator::GenerateWord32(unsigned int, unsigned int) ()
#4  0x0000000000878cc4 in GetRandomUint32 () at RandomFunctions.cpp:47
#5  0x0000000000735d02 in CPreferences::BuildItemList (appdir=...) at Preferences.cpp:1194
#6  0x00000000004389a4 in CamuleApp::OnInit (this=0xfd6510) at amule.cpp:622
#7  0x00000000006670e4 in CamuleGuiApp::OnInit (this=0xfd6510) at amule-gui.cpp:276
#8  0x000000000044411d in wxAppConsole::CallOnInit (this=0xfd6510) at /usr/include/wx-2.8/wx/app.h:76
#9  0x00007ffff628d182 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
#10 0x00000000006662c0 in main (argc=1, argv=0x7fffffffdd78) at amule-gui.cpp:94

======= full backtrace ========
http://pastebin.com/m1317479f


Thanks for your attachment
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #1 on: November 17, 2009, 12:28:41 PM »

Platform? OS? Crypto++ version? Is it a self-compiled Crypto++ library or the one coming with the OS?

The error is most likely a buggy Crypto++ library.
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #2 on: November 17, 2009, 07:24:26 PM »

Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

berte

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #3 on: November 17, 2009, 09:07:54 PM »

Platform? OS? Crypto++ version? Is it a self-compiled Crypto++ library or the one coming with the OS?

The error is most likely a buggy Crypto++ library.
Gentoo Linux 2.6.32-rc6 x86_64 GNU/Linux

dev-libs/crypto++
Available versions:  5.5.2-r1

@Stu Redman : I mean, I want to say thanks for reply or mentor ;)

regards..
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #4 on: November 17, 2009, 10:12:24 PM »

Try to run cryptest which should come with cryptopp to check if it works.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

berte

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #5 on: November 21, 2009, 10:53:28 AM »

I think this issue releated with wxGTK.

Anyway, thanks for reply.


regards..
Logged

Curtman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #6 on: November 23, 2009, 04:15:36 PM »

I think this issue releated with wxGTK.

Anyway, thanks for reply.


regards..

Have you had any luck solving this problem?  I'm having the same symptoms.  It looks to me like the problem is crypto++

I tried the cryptest program mentioned above (which on my Gentoo system is called "cryptest.exe" for some weird reason).  It gave me errors about some missing .dat file.  So I extracted the crypto++ source to a directory and ran cryptest.exe while in the src directory containing those .dat files.  Then I was able to see the usage information for cryptest, and when I execute "cryptest.exe v" to perform some validation testing eventually it fails like this:

Quote from: gdb
passed   1002911598100201   0000000000000000   E2F5728F0995013C
passed   1002911698100101   0000000000000000   1AEAC39A61F0A464
passed   7CA110454A1A6E57   01A1D6D039776742   690F5B0D9A26939B
passed   0131D9619DC1376E   5CD54CA83DEF57DA   7A389D10354BD271
passed   07A1133E4A0B2686   0248D43806F67172   868EBB51CAB4599A
passed   3849674C2602319E   51454B582DDF440A   7178876E01F19B2A
passed   04B915BA43FEB5B6   42FD443059577FA2   AF37FB421F8C4095
passed   0113B970FD34F2CE   059B5E0851CF143A   86A560F10EC6D85B
passed   0170F175468FB5E6   0756D8E0774761D2   0CD3DA020021DC09
passed   43297FAD38E373FE   762514B829BF486A   EA676B2CB7DB2B7A
passed   07A7137045DA2A16   3BDD119049372802   DFD64A815CAF1A0F
passed   04689104C2FD3B2F   26955F6835AF609A   5C513C9C4886C088
passed   37D06BB516CB7546   164D5E404F275232   0A2AEEAE3FF4AB77
passed   1F08260D1AC2465E   6B056E18759F5CCA   EF1BF03E5DFA575A
passed   584023641ABA6176   004BD6EF09176062   88BF0DB6D70DEE56
passed   025816164629B007   480D39006EE762F2   A1F9915541020B56
passed   49793EBC79B3258F   437540C8698F3CFA   6FBF1CAFCFFD0556
passed   4FB05E1515AB73A7   072D43A077075292   2F22E49BAB7CA1AC
passed   49E95D6D4CA229BF   02FE55778117F12A   5A6B612CC26CCE4A
passed   018310DC409B26D6   1D9D5C5018F728C2   5F4C038ED12B2E41
passed   1C587F1C13924FEF   305532286D6F295A   63FAC0D034D9F793

Testing EDE2, EDE3, and XEX3 variants...

passed   0123456789ABCDEFFEDCBA9876543210   0123456789ABCDE7   7F1D0A77826B8AFF
passed   0123456789ABCDEFFEDCBA987654321089ABCDEF01234567   0123456789ABCDE7   DE0B7C06AE5E0ED5
passed   0123456789ABCDEF01010101010101011011121314151617   94DBE082549A14EF   9011121314151617

Testing DES modes...


Program received signal SIGSEGV, Segmentation fault.
0x081ac439 in CryptoPP::Rijndael::Enc::ProcessAndXorBlock (this=0xee777799, inBlock=0x6704fb79 <Address 0x6704fb79 out of bounds>, xorBlock=0xfff2f20d <Address 0xfff2f20d out of bounds>,
    outBlock=0xd66b6bbd <Address 0xd66b6bbd out of bounds>) at rijndael.cpp:440
440         );
(gdb)

Which is the same spot amule is showing in its backtrace.  ( CryptoPP::Rijndael::Enc::ProcessAndXorBlock )
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #7 on: November 24, 2009, 11:05:32 AM »

I think this issue releated with wxGTK.
No.

It looks to me like the problem is crypto++
Just what I thought.
Complain with your distro for shipping a broken lib, or try to compile it yourself.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Curtman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #8 on: November 25, 2009, 01:21:17 AM »

Complain with your distro for shipping a broken lib, or try to compile it yourself.

I got it working, I was merely trying to nudge berte and others who stumble upon this thread in the right direction, and to try and prevent you guys from worrying about this non-amule-related problem.
Logged

berte

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: aMule 2.2.6[amule-svn-r9872] crashing
« Reply #9 on: November 25, 2009, 08:36:26 PM »

Stu Redman you're right.  I solved this issue.

for more details here,

http://bugs.gentoo.org/show_bug.cgi?id=290898

thanks & regards,
berte
Logged