about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-08-12T13·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-08-12T13·34+0000
commit5c5ab2bc12472f63a33cc841dcdc57f1ed8ddea5 (patch)
tree76ac9f978d39e2d6005d25d266661ec3cf33f661 /src
parent5f9aad44caff5b2a2fb22fcf93d6ca129656984d (diff)
* 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/freebsd-hackers@freebsd.org/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.

Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions