Segmentation fault in mpz_ui_pow_ui

Torbjorn Granlund tege at
Fri Oct 7 17:52:03 CEST 2005

Matthew Mundell <mattm at> writes:

  Torbjorn Granlund <tege at> writes:
  > Matthew Mundell <mattm at> writes:
  >   In the Parma Polyhedron Library, using GMP 4.1.4, calls to
  >   mpz_ui_pow_ui with large exponents are resulting in segmentation
  >   faults.
  > I suspect this is Q3 from
  > Can you please confirm?
  Yes, it is, thank you.
  -*- mode: compilation; default-directory: "~/src/tests/c/" -*-
  ulimit -s 8388608 && gmp-pow
It is a misfeature of all current GMP releases that they allocate
arbitrary amonts of memory from the stack.  This behaviour will
change in the next major GMP release.


More information about the gmp-bugs mailing list