gnutls 3.1.0 -> 3.1.4 wMNAF-based multiplication change and a problem

Nikos Mavrogiannopoulos nmav at
Sat Nov 24 11:03:48 CET 2012

On 11/24/2012 09:35 AM, Arkadiusz Miśkiewicz wrote:

>>> Uninstalling php gmp module and the problem is gone. My curl uses gnutls.
>>> The fact that I need gmp php module to reproduce makes me wonder
>>> if there is some global state (maybe in gmp) that's overwritten by
>>> gnutls?
>>> Any ideas/hints on what can be going on here?
>> Hello,
>>  Could it be that the gmp module uses some conflicting gmp library
>> version? (check whether you have multiple gmp libraries in your system).
> There is only one gmp library in my system (and php doesn't have any bundled 
> library).
> Now I see that php gmp module uses:
> mp_set_memory_functions(gmp_emalloc, gmp_erealloc, gmp_efree);

> gmp_exxx are functions that use Zend memory management code.

It seems then that you've found the reason of the crash. If this is
called prior to gnutls being initialized you shouldn't have any issue as


More information about the Gnutls-help mailing list