Re: mpz_probab_prime_p crashes?

2023-06-08 Thread Marc Glisse
Hello, could you try with a recent snapshot from https://gmplib.org/download/snapshot/ ? If you built GMP yourself, did you run `make check` afterwards? On Thu, 8 Jun 2023, Philip Riebold wrote: Hi, I think I may have come across an error in mpz_probab_prime_p() It seems to

Re: mpz_probab_prime_p crashes?

2023-06-08 Thread Torbjörn Granlund
Philip Riebold writes: The test program below, pt3.c is the simplest I could produce to demonstrate the problem. If that simple program would trigger a genuine GMP bug, that would be astonishing indeed. I have no idea why your computer gets a segfault. Perhaps the malloc implementation is

mpz_probab_prime_p crashes?

2023-06-08 Thread Philip Riebold
Hi, I think I may have come across an error in mpz_probab_prime_p() It seems to occasionally cause a segmentation fault either when repeatedly run with the same arguments or with increasing values of the first argument. I initially came across the bug when I was trying to find the closest