diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-03-19T19·02+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-03-19T19·02+0100 |
commit | 726f7f7fc92f4914bca450a37b8b85b1018afc01 (patch) | |
tree | 7e484a7a0249b9ae3fda87347568a0b77505335b /src/nix-instantiate/nix-instantiate.cc | |
parent | da6b704b197f19c386f0e53f5553252a226650bb (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-instantiate/nix-instantiate.cc')
-rw-r--r-- | src/nix-instantiate/nix-instantiate.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index e7214e657bd5..5abaa617d245 100644 --- a/src/nix-instantiate/nix-instantiate.cc +++ b/src/nix-instantiate/nix-instantiate.cc @@ -93,6 +93,7 @@ int main(int argc, char * * argv) { return handleExceptions(argv[0], [&]() { initNix(); + initGC(); Strings files, searchPath; bool readStdin = false; |