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 crash: OS_Rng: read /dev/urandom operation failed  (Read 4724 times)

foreman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
aMule crash: OS_Rng: read /dev/urandom operation failed
« on: April 15, 2009, 08:55:25 AM »

Hello,

i compiled amule 2.2.4 in my debian etch with crypto, geoip, upnp and wxWidget from scratch.

aMule crash with this error:
Code: [Select]
aMule OnExit: Terminating core.
Saving PartFile 13 of 13
All PartFiles Saved.
aMule shutdown completed.
        aMule Version: aMuled 2.2.4 using  v2.8.10

        what(): OS_Rng: read /dev/urandom operation failed with error 0
Terminated after throwing an instance of 'CryptoPP::OS_RNG_Err'
        backtrace:
[2] ?? in amuled [0x805da6d]
[3] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7cec7dd]
[4] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.8.so.0[0xb7cec847]
[5] ?? in amuled [0x80549b5]
[6] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0xb7a38ea8]
[7] wxSockAddress::Clear() in amuled[0x8054321]

I find in this forum and over internet, that i should set the limits.
I done this:
Code: [Select]
/etc/security/limitis.conf:

p2p             soft    nofile          4096
p2p             hard    nofile          4096
(amuled run as user p2p)

But the error still persist, can anyone help me?
Logged

foreman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #1 on: April 17, 2009, 08:29:55 AM »

aMule is still crashing, one time in a hour!

Nobody have this problem?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #2 on: April 18, 2009, 06:55:20 PM »

Looks like broken cryptopp to me. Try compiling cryptopp yourself, or use a precompiled aMule package.
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

foreman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #3 on: April 19, 2009, 11:15:14 AM »

I combiled cryptopp myself.

I can't use a precompiled package, because it doesn't exist for debian etch.

Regards.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #4 on: April 19, 2009, 11:52:51 AM »

When you execute ./cryptest.exe v in the build folder of crypto++, does your compiled version pass all tests?
Logged

foreman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #5 on: April 19, 2009, 04:30:25 PM »

This is my test:
Code: [Select]
All tests passed!

Test ended at Sun Apr 19 16:29:36 2009
Seed used was: 1240151366

Regards.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #6 on: April 19, 2009, 05:56:50 PM »

You have a successful crypto++ compilation. Is this the same you used for compiling aMule? (crypto++ is afaik statically linked, that's why this is important.)

Regarding your error: If I'm not mistaken, the error code 0 means that no data could be read. (i.e. the error is unrelated to file limits.) But this makes no sense to me, as /dev/urandom can't be empty and hence one should always be able to read something.
Sorry for not being able to help.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #7 on: April 19, 2009, 07:28:37 PM »

It might be that the entropy pool is depleted. But just don't ask me why and how to solve ...
Logged
concordia cum veritate

foreman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: aMule crash: OS_Rng: read /dev/urandom operation failed
« Reply #8 on: April 20, 2009, 09:32:23 AM »

In this case, i suppose that the only solution is to upgrade to lenny.

I saw that the user Vollstrecker made package for debian, i have used his package with etch without any problem.

Regards.
Logged