[XML-SIG] Re: Re: Floating exception on alpha machine

Fredrik Lundh fredrik@pythonware.com
Thu, 15 May 2003 09:24:23 +0200


Martin v. Löwis wrote:

> > >>> Inf = Inf = 1e300 * 1e300
> > Floating exception (core dumped)
> >
> > A very simple way to crash the python interpreter!!
>
> The code is fine; the interpreter should not crash. Please report a
> bug as sf.net/projects/python. The interpreter should not crash. At
> worst, it should raise a Python exception.
>
> > Does anybody know what to a do about it?  How should Inf be defined?
>
> Only a platform expert could know.

brief summary:

ax005> cat q.c
main()
{
  double value = 1e300;
  printf("%f\n", value * value);
}
ax005> cc q.c
ax005> ./a.out
Floating exception (core dumped)
ax005> cc -ieee q.c
ax005> ./a.out
INF
ax005> man ieee
... more information ...

</F>