guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

153/376: Fix a segfault in ‘nix-env -qa’


From: Ludovic Courtès
Subject: 153/376: Fix a segfault in ‘nix-env -qa’
Date: Wed, 28 Jan 2015 22:04:41 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit fefd3650d4aa0c378da2ae1f1cdda772d5afaf13
Author: Eelco Dolstra <address@hidden>
Date:   Thu Aug 21 00:05:17 2014 +0200

    Fix a segfault in ‘nix-env -qa’
    
    This was triggered by 47e185847e729d49e6aa376e8299fd66ef834a0a, which
    turned globals.state into a pointer.
---
 src/libexpr/eval.hh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index aa706cf..82c1a43 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -108,7 +108,7 @@ private:
 
     /* A cache from path names to values. */
 #if HAVE_BOEHMGC
-    typedef std::map<Path, Value, std::less<Path>, 
gc_allocator<std::pair<const Path, Value> > > FileEvalCache;
+    typedef std::map<Path, Value, std::less<Path>, 
traceable_allocator<std::pair<const Path, Value> > > FileEvalCache;
 #else
     typedef std::map<Path, Value> FileEvalCache;
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]