about summary refs log tree commit diff
path: root/src/nix-env
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-19T19·02+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-19T19·02+0100
commit726f7f7fc92f4914bca450a37b8b85b1018afc01 (patch)
tree7e484a7a0249b9ae3fda87347568a0b77505335b /src/nix-env
parentda6b704b197f19c386f0e53f5553252a226650bb (diff)
Fix Boehm API violation
We were calling GC_INIT() after doing an allocation (in the baseEnv
construction), which is not allowed.
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/nix-env.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index f3c8d3ba8953..10b95dad168c 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1337,6 +1337,7 @@ int main(int argc, char * * argv)
 {
     return handleExceptions(argv[0], [&]() {
         initNix();
+        initGC();
 
         Strings opFlags, opArgs, searchPath;
         std::map<string, string> autoArgs_;