gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] GNUnet 0.5.5 released


From: Christian Grothoff
Subject: Re: [GNUnet-developers] GNUnet 0.5.5 released
Date: Sun, 24 Aug 2003 16:55:39 -0500
User-agent: KMail/1.4.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had some very similar fun trying to make it work under solaris/BSD shortly 
before the release (and my fix had a small problem, resulting in the 
segfault-bug reported for 0.5.5). Anyway, the problem was that the PRNG of 
gcry tried to read random numbers from "/dev/random", which did exist but 
never produced any bits (cat /dev/random blocked on the shell, too).  

I tried to fix this by using "/dev/urandom" on BSD (and putting a warning 
since the PRNG is possibly not good enough in that case). I don't know 
exactly what is wrong with the code (I didn't write it in the first place, 
was "stolen" from libgcrypt). I have the feeling that the entire PRNG code of 
gcry needs to be looked at & cleaned up. 

Anyway, I suspect that you have the same problem in that it tries to get 
random bits from /dev/random and fails. 

Note that this code is ONLY used if you do NOT use OpenSSL *and* if you are 
generating a fresh hostkey, which is probably how it managed to slip by in 
the first place.

Christian

On Saturday 23 August 2003 01:23 am, Rick Kennell wrote:
> On Thu, 2003-08-21 at 21:11, Christian Grothoff wrote:
> > FreeBSD and Debian binaries will hopefully be
> > made available soon.
>
> Debian packages for 0.5.5 have appeared.  Thanks, Glenn.
>
> Hmmm...  Debian packages are available for multiple architectures.
> Hey, thanks a lot, Glenn.
>
> It seems to work for x86, but when I try gnunetd on either a sparc or an
> alpha, it sits and spins after issuing the error "WARNING: scanDirectory
> /var/lib/GNUnet/data/hosts/ returned no known hosts!"  I'm not quite
> sure how to file a bug report.  Tell me if these tracebacks are useful:
>
> Alpha:
>
> (gdb) where
> #0  0x000002000017505c in read () from /lib/libpthread.so.0
> #1  0x0000020000051d14 in rndlinux_gather_random ()
>    from /usr/lib/libgnunetutil.so.0
> #2  0x00000200000517d8 in _gcry_fast_random_poll ()
>    from /usr/lib/libgnunetutil.so.0
> #3  0x0000020000051184 in _gcry_update_random_seed_file ()
>    from /usr/lib/libgnunetutil.so.0
> #4  0x000002000004fc60 in _gcry_random_is_faked ()
>    from /usr/lib/libgnunetutil.so.0
> #5  0x000002000006139c in gcry_mpi_randomize ()
>    from /usr/lib/libgnunetutil.so.0
> #6  0x0000020000053a58 in _gcry_generate_elg_prime ()
>    from /usr/lib/libgnunetutil.so.0
> #7  0x0000020000052f1c in _gcry_generate_secret_prime ()
>    from /usr/lib/libgnunetutil.so.0
> #8  0x0000020000054d28 in rsa_generate () from
> /usr/lib/libgnunetutil.so.0
> #9  0x00000200000448d4 in makeHostkey () from
> /usr/lib/libgnunetutil.so.0
> #10 0x000000012000cbe8 in ?? ()
> #11 0x0000000120009fa0 in ?? ()
> #12 0x0000020000236e48 in __libc_start_main () from /lib/libc.so.6.1
> #13 0x0000000120003374 in ?? ()
> (gdb)
>
>
> Sparc:
>
> (gdb) where
> #0  0x702937d4 in select () from /lib/libc.so.6
> #1  0x702937b4 in select () from /lib/libc.so.6
> #2  0x7004f6b4 in rndlinux_gather_random () from
> /usr/lib/libgnunetutil.so.0
> #3  0x7004f350 in _gcry_fast_random_poll () from
> /usr/lib/libgnunetutil.so.0
> (gdb)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/STRb9tNtMeXQLkIRAl+qAJ4kh7sFcAFKPTENREH/uMMR67u7YwCcC5Gu
pZLfG0uUnOxdBrVHtJlYLFY=
=yO5J
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]