Freeze on FPU exception with Athlon

From: Markus Schoder (markus_schoder@yahoo.de)
Date: Fri Nov 17 2000 - 20:40:19 EST


The following small program (linked against glibc
2.1.3) reliably
freezes my system (Athlon Thunderbird CPU) with at
least kernels
2.4.0-test10 and 2.4.0-test11-pre5. Even the SysRq
keys do not work
after the freeze.

Older kernels (e.g. 2.3.40) seem to work. Any Ideas?

---------------------------------------

#define _GNU_SOURCE

#include <fenv.h>
#include <unistd.h>

int
main(void)
{
  double a;
  fesetenv(FE_NOMASK_ENV);
  a = 1.0 / 0.0;
  sleep(10);
  return a;
}

---------------------------------------

--
Markus

__________________________________________________________________ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de Gratis zum Millionär! - http://10millionenspiel.yahoo.de - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:14 EST