[Top][All Lists]

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

[Weechat-dev] [bug #40628] Disable guile custom gmp custom allocator

From: Pierre Carru
Subject: [Weechat-dev] [bug #40628] Disable guile custom gmp custom allocator
Date: Mon, 18 Nov 2013 23:39:38 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.14 Safari/537.36


                 Summary: Disable guile custom gmp custom allocator
                 Project: WeeChat
            Submitted by: pierrecarru
            Submitted on: lun. 18 nov. 2013 23:39:37 GMT
                Category: other plugins
                Severity: 3 - Normal
              Item Group: crash
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.3-dev
                IRC nick: 




Guile musn't install its gmp custom allocator because it interfers with
gnutls' use of gmp.
( see

Crashes can happen when freeing memory with an incorrect free memory function.
 1- relay plugin is loaded
 2- ssl relay is created, gnutls allocates memory with its default allocator
 3- guile plugin is loaded, guile register its custom gmp allocators
 4- "/quit"
 5- relay plugin deinits gnutls -> gnutls deinits gmp -> gmp tries frees
memory. Some memory allocated with malloc is passed to custom_gmp_free which
is not correct => possible segfault

I've attached a simple patch to prevent guile from registering its gmp

Pierre Carru


File Attachments:

Date: lun. 18 nov. 2013 23:39:37 GMT  Name:
0001-Prevent-guile-from-registering-its-gmp-custom-memory.patch  Size: 833 o  
By: pierrecarru



Reply to this item at:


  Message posté via/par Savannah

reply via email to

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