gmp hangs on "t-cdiv_ui" test while calculating gcd on MacOSX Lion

Marcello Maggioni hayarms at gmail.com
Tue Nov 15 22:56:25 CET 2011


Hi, running "make check" for GMP 5.0.2 on macosx lion makes the tests
hang at this point:

make  check-TESTS
PASS: t-addsub
PASS: t-cmp
PASS: t-mul
PASS: t-mul_i
PASS: t-tdiv
PASS: t-tdiv_ui
PASS: t-fdiv
PASS: t-fdiv_ui
PASS: t-cdiv_ui

the t-cdiv_ui is the last successful test the next test takes an
indefinite amount of time spawning a "t-gcd" process that uses 100%
cpu and never ends. The problem seems to be in GCD calculation.

This problem reflects also in real world usage. Actually I tracked
down this problem down by first experiencing it while using and
programming for Polly (a polyhedral optimizer for LLVM) that uses
indirectly (through a library called ISL) the GMP library. Polly hangs
in certain occasions and I was able to track back the problem to GMP.

Is the problem already known? There is a fix for this?

Marcello


More information about the gmp-bugs mailing list