On Fri, Oct 10, 2014 at 10:39 AM, Remi Collet <r...@fedoraproject.org>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> See https://bugs.php.net/63595
>
>
> 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 ?
>

The crashes seem to occur during shutdown. Maybe it would be sufficient to
do a mp_set_memory_functions(NULL, NULL, NULL) during gmp MSHUTDOWN?

Nikita

Reply via email to