guix-commits
[Top][All Lists]
Advanced

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

branch master updated: guile: Do not install Guile/libgc allocators for


From: guix-commits
Subject: branch master updated: guile: Do not install Guile/libgc allocators for GMP.
Date: Sun, 07 Feb 2021 16:46:25 -0500

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new a53f711  guile: Do not install Guile/libgc allocators for GMP.
a53f711 is described below

commit a53f711422f63d7e32b8639b968cf00bcc69ffea
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Feb 7 22:18:33 2021 +0100

    guile: Do not install Guile/libgc allocators for GMP.
    
    Fixes <https://bugs.gnu.org/46330>.
    
    * gnu/packages/aux-files/guile-launcher.c (main): Clear
    'scm_install_gmp_memory_functions'.
---
 gnu/packages/aux-files/guile-launcher.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/aux-files/guile-launcher.c 
b/gnu/packages/aux-files/guile-launcher.c
index 1dd5d77..47ba069 100644
--- a/gnu/packages/aux-files/guile-launcher.c
+++ b/gnu/packages/aux-files/guile-launcher.c
@@ -1,5 +1,5 @@
 /* GNU Guix --- Functional package management for GNU
-   Copyright 1996-1997,2000-2001,2006,2008,2011,2013,2018,2020
+   Copyright 1996-1997,2000-2001,2006,2008,2011,2013,2018,2020,2021
       Free Software Foundation, Inc.
    Copyright (C) 2020 Ludovic Courtès <ludo@gnu.org>
 
@@ -82,7 +82,11 @@ main (int argc, char **argv)
   unsetenv ("GUILE_LOAD_PATH");
   unsetenv ("GUILE_LOAD_COMPILED_PATH");
 
-  scm_install_gmp_memory_functions = 1;
+  /* XXX: Do not let GMP allocate via libgc as this can lead to memory
+     corruption in GnuTLS/Nettle since Nettle also uses GMP:
+     <https://issues.guix.gnu.org/46330>.  */
+  scm_install_gmp_memory_functions = 0;
+
   scm_boot_guile (argc, argv, inner_main, 0);
   return 0; /* never reached */
 }



reply via email to

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