Author: eelco
Date: Thu Nov 25 13:47:34 2010
New Revision: 24855
URL: https://svn.nixos.org/websvn/nix/?rev=24855&sc=1

Log:
* DrvInfo contains pointers to expressions, so DrvInfos should be
  traced by the garbage collector.  Otherwise "nix-env -u" can crash
  randomly.

Modified:
   nix/trunk/src/libexpr/get-drvs.hh

Modified: nix/trunk/src/libexpr/get-drvs.hh
==============================================================================
--- nix/trunk/src/libexpr/get-drvs.hh   Thu Nov 25 09:38:28 2010        (r24854)
+++ nix/trunk/src/libexpr/get-drvs.hh   Thu Nov 25 13:47:34 2010        (r24855)
@@ -62,7 +62,11 @@
 };
 
 
+#if HAVE_BOEHMGC
+typedef list<DrvInfo, traceable_allocator<DrvInfo> > DrvInfos;
+#else
 typedef list<DrvInfo> DrvInfos;
+#endif
 
 
 /* If value `v' denotes a derivation, store information about the
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to