GMP memory allocator, various issues
| From: | Remi Collet | Date: | Fri, 10 Oct 2014 08:39:28 +0000 |
| Subject: | GMP memory allocator, various issues | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-77839@lists.php.net to get a copy of this message | ||
-----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 ?
Remi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlQ3m0AACgkQYUppBSnxahjmJgCbBXum9FXacENC+Gwf/DDgDNvF
vxAAoOyywFiAqFK4ykqAB4gz8OZFFHQi
=uKGJ
-----END PGP SIGNATURE-----