[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#145622: process crash on SIGFPE
From: |
Robert Millan |
Subject: |
Bug#145622: process crash on SIGFPE |
Date: |
Thu, 2 May 2002 18:55:55 +0200 |
User-agent: |
Mutt/1.3.28i |
Package: hurd
Severity: normal
Hello!
I found a weird problem with exception handling. The following
code generates a SIGEFP exception (overflow), but instead of exiting
with 01 as it should, it will crash:
long foo(long i, long j);
int main() { return foo(LONG_MIN, -1l) && 1; }
long foo(long i, long j) { return i / j; }
note that this equaly functional lines exit properly (with error):
int main() { return (-2147483647L -1) / -1l && 1; }
cheers,
--
Robert Millan
"5 years from now everyone will be running
free GNU on their 200 MIPS, 64M SPARCstation-5"
Andrew S. Tanenbaum, 30 Jan 1992
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug#145622: process crash on SIGFPE,
Robert Millan <=