gnunet-developers
[Top][All Lists]
Advanced

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

[GNUnet-developers] GNUnet crashing on BSD/solaris


From: Christian Grothoff
Subject: [GNUnet-developers] GNUnet crashing on BSD/solaris
Date: Sun, 15 Sep 2002 22:27:32 -0500
User-agent: KMail/1.4.1

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

Hi!

I've just identified the reason why GNUnet was working so badly under BSD (and 
probably solaris). The reason is, that GNUnet uses large (64k) amounts of 
stack allocated data (more efficient, no malloc/free). BSD has a default 
stack size of 1k and seems to be very intolerant (segfault with corrupted 
stack) when this limit is not obeyed. Yes, it is possible to set a higher 
limit, but GNUnet did not do that. 

Linux has a minimum stack size of 16k, but either it grows automagically if 
more is needed or overwrites other memory without segfaulting. Since the 64k 
were in practice not used by the current code, this is hard to say. Anyway, 
the code is being changed to create threads with sufficiently large stacks.

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9hU+k9tNtMeXQLkIRApBKAJ9O77xklBka1vAcKmbfIzvL6QCaVACeLOGU
udY0mBIG8Q7XGjFkMUQhLXs=
=lNhi
-----END PGP SIGNATURE-----





reply via email to

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