Comment 28 for bug 286175

Revision history for this message
Sagawa (sagawa-aki+lp) wrote :

I guess unmasking FPU's denormal exception flag is a trigger of this bug.

I made a small source code, bug.c, to demonstrate it.

Please compile it with following instruction:
| % gcc -o bug bug.c -lfontconfig
Then run it.
| % ./bug
| zsh: floating point exception ./bug
The code crashed with SIGFPE.

But the following:
| % gcc -DBUG_OFF -o bug bug.c -lfontconfig
| % ./bug
It works fine.