signal(SIGFPE,SIG_IGN) causes endless loop

Thomas Koenig (ig25@fg70.rz.uni-karlsruhe.de)
19 Apr 1996 18:03:14 +0200


The following program loops endlessly, with repeated SIGFPE's, as
repeated by strace.

This is an old, old bug, but maybe fixable before 2.0?

#include <stdio.h>
#include <signal.h>

int main()
{
int a,b,c;

signal(SIGFPE,SIG_IGN);
a = 1;
b = 0;
c = a/b;
return 0;
}