6.0.0 crash at high precision mul?

Torbjörn Granlund tg at gmplib.org
Thu Jun 5 12:25:04 UTC 2014


Vincent Lefevre <vincent at vinc17.net> writes:

  MPFR also does allocations in the stack, with:
  
  #define TMP_ALLOC(n) (MPFR_LIKELY ((n) < 16384) ?       \
                        alloca (n) : mpfr_tmp_allocate (&tmp_marker, (n)))
  
  This can occur recursively... Then I don't know whether this is
  the cause of the crash.

Presumably the number of such allocations are in O(log(n))?
I believe that's true for GMP.


Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list