aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: No cryptkey.dat found => aMule 2.0rc1 crashes  (Read 3537 times)

razibuzouzou

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
No cryptkey.dat found => aMule 2.0rc1 crashes
« on: March 27, 2004, 02:30:51 PM »

Hi there!
I just compiled and installed aMule 2.0rc1.
Unfortunately, it crashed when I tried to run it.
Code: [Select]
Initialising aMule
Loading preferences from /home/XXXXXX/.aMule/preferences.ini
Config:
x1: 0 y1: 34 x2: 1268 y2: 931
split read, found : 359
srv_split read, found : 463
*** UDP socket at 4043  (chat)
*** TCP socket at 4040
*** UDP socket at 5050
No cryptkey.dat found, creating
amule: integer.cpp:2012: void CryptoPP::RecursiveMultiplyTop(word*, word*, const word*, const word*, const word*, unsigned int, const P*) [with P = CryptoPP::LowLevel]: Assertion `carry >= 0 && carry <= 2' failed.
Aborted

I found a workaround by doing: dd if=/dev/random of=cryptkey.dat count=512
Tell me if this is dangerous...
Logged

nachbarnebenan

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 75
RE: No cryptkey.dat found => aMule 2.0rc1 crashes
« Reply #1 on: March 27, 2004, 02:37:32 PM »

My aMule created the file itself, but it is only 365 byte (5 lines * 72 + 6\n) and consists only of printable charcters, like a gpg-key or something similar. I dunno if yours will work reliable too, I am not that much into cryptography.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: No cryptkey.dat found => aMule 2.0rc1 crashes
« Reply #2 on: March 27, 2004, 03:05:18 PM »

Seems a bug in the crypto packages. Try compiling from the ones on our download page.
Logged

razibuzouzou

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: No cryptkey.dat found => aMule 2.0rc1 crashes
« Reply #3 on: March 27, 2004, 07:01:45 PM »

It seems to work fine.... :)
I compiled libcrypto from the sources available on the amule download page...
Logged

xenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: No cryptkey.dat found => aMule 2.0rc1 crashes
« Reply #4 on: March 30, 2004, 07:21:31 PM »

I still have the problem razibuzouzou pointed out starting the thread. I use Gentoo, so initially I emerged crypto++ and manually created the symlinks. aMule failed to start, with the same output as posted above. Then I compiled and installed the libraries from the source posted on the homepage, but nothing changed - same error, no way to start aMule. I finally tried to manually generate the key the way razi did, and aMule started, showing this line in the log:

Code: [Select]
2004-03-30 19:15:09: IDS_CRYPT_INITFAILED
Is it safe to ignore this error? aMule 2 is crashing a lot here, maybe it's totally unrelated, but still...

BTW, compiling the libraries, I always get this warning:

Code: [Select]
g++ -g -pipe -c zdeflate.cpp
secblock.h: In member function `T& CryptoPP::SecBlock::operator[](I)
   [with I = unsigned char, T = unsigned int, A =  
  CryptoPP::FixedSizeAllocatorWithCleanup   CryptoPP::NullAllocator >]':
 zdeflate.cpp:513:   instantiated from here
 secblock.h:238: warning: comparison is always true due to limited range of data  
  type

Again, safe to ignore it?

Thanks.
« Last Edit: March 30, 2004, 07:23:22 PM by xenon »
Logged

xenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
Re: No cryptkey.dat found => aMule 2.0rc1 crashes
« Reply #5 on: March 30, 2004, 08:06:48 PM »

Ok, nevermind. With the latest ebuilds and patches from the Gentoo Bugzilla for both crypto++ and aMule, everything works fine.
Logged