From owner-freebsd-bugs Fri Aug 21 11:10:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10202 for freebsd-bugs-outgoing; Fri, 21 Aug 1998 11:10:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10171 for ; Fri, 21 Aug 1998 11:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA26046; Fri, 21 Aug 1998 11:10:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA09295; Fri, 21 Aug 1998 11:03:19 -0700 (PDT) (envelope-from nobody) Message-Id: <199808211803.LAA09295@hub.freebsd.org> Date: Fri, 21 Aug 1998 11:03:19 -0700 (PDT) From: sas@schell.de To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/7707: fp exception in 1.0 / (double + 1.0) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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