Author: eelco
Date: Thu Aug 12 13:34:34 2010
New Revision: 23148
URL: https://svn.nixos.org/websvn/nix/?rev=23148&sc=1
Log:
* Don't link against pthreads. This was added way back in r211
because Berkeley DB needed it on some platforms, but we don't use
BDB anymore.
On FreeBSD, if you link against pthreads, then the main thread gets
a 2 MB stack which cannot be overriden (it ignores "ulimit -s"):
http://www.mail-archive.com/[email protected]/msg62445.html
This is not enough for Nix. For instance, the garbage collector can
fail if there is a pathologically deep chain of references
(http://hydra.nixos.org/build/556199). 2 MB is also not enough for
many Nix expressions.
Arguably the garbage collector shouldn't use recursion, because in
NixOS unprivileged users can DOS the garbage collector by creating a
sufficiently deeply nested chain of references. But getting rid of
recursion is a bit harder.
Modified:
nix/branches/sqlite/configure.ac
Modified: nix/branches/sqlite/configure.ac
==============================================================================
--- nix/branches/sqlite/configure.ac Thu Aug 12 13:01:06 2010 (r23147)
+++ nix/branches/sqlite/configure.ac Thu Aug 12 13:34:34 2010 (r23148)
@@ -256,9 +256,6 @@
AC_SUBST(sqlite_bin)
-AC_CHECK_LIB(pthread, pthread_mutex_init)
-
-
AC_ARG_ENABLE(init-state, AC_HELP_STRING([--disable-init-state],
[do not initialise DB etc. in `make install']),
init_state=$enableval, init_state=yes)
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits