Date: Fri, 21 Aug 1998 11:03:19 -0700 (PDT) From: sas@schell.de To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/7707: fp exception in 1.0 / (double + 1.0) Message-ID: <199808211803.LAA09295@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 7707
>Category: kern
>Synopsis: fp exception in 1.0 / (double + 1.0)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 21 11:10:01 PDT 1998
>Last-Modified:
>Originator: Sascha
>Organization:
>Release: -current (some days old)
>Environment:
FreeBSD guerilla.foo.bar 3.0-CURRENT FreeBSD 3.0-CURRENT #4: Sun Aug 16 17:00:38 CEST 1998 root@guerilla.foo.bar:/usr/src/sys/compile/SAS1 i386
>Description:
A floating point exception will happen under special circumstances.
This problem hit me while trying out amp (it's some code from init_layer3() of layer3.c).
I don't see any bad code here, so it should really work. Just recompiled libm,
but that didn't help...
>How-To-Repeat:
main() {
double d, t;
d = tan( (double) 9 * M_PI / 12.0); /* this is about 1 */
t = 1.0 / (1.0 + d); /* fp exception here */
}
>Fix:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808211803.LAA09295>
