Re: GMP memory allocator, various issues

From: Date: Fri, 10 Oct 2014 10:57:01 +0000
Subject: Re: GMP memory allocator, various issues
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77842@lists.php.net to get a copy of this message
> On 10 Oct 2014, at 09:39, Remi Collet <remi@fedoraproject.org> wrote: > > Short, changing gmp memory allocator can cause segfaults in various > case where gnutls is used and initialized "before" gmp. > > - - php + gmp + curl => segfaults > - - apache + mod_php + mod_gnutls + gmp => segfaults > - - php + gmp + odbc + freetds => se'gfaults > > > The simple proposal will be to drop the mp_set_memory_functions call. > > Any other (better) idea ? Can't we just make gnutls use its own (statically-linked?) gmp instance? I'd rather not make gmp just use malloc. Would cause memory leaks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#77842) next »