mpz_out_str seg fault with large number = bug?

Torbjorn Granlund tege at
Thu Aug 4 01:48:29 CEST 2005

viny at writes:

  While I was checking the performance of the mpz_fac_ui in gmp 4.1.4 in a
  redhat, I become aware that mpz_out_str aborts with segmentation fault for
  large numbers.
  like this:
  mpz_out_str(stdout,10,c);  //ok without this, but seg fault if included
  I also noticed that mpz_fac_ui also seg faults if the parameter is as big
  as 10000000L
  Is there any documentation about the admisible range of those functions?
Please see


More information about the gmp-discuss mailing list