From owner-freebsd-current Mon Feb 10 17:50:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA02443 for current-outgoing; Mon, 10 Feb 1997 17:50:58 -0800 (PST) Received: from scruz.net (nic.scruz.net [165.227.1.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA02438 for ; Mon, 10 Feb 1997 17:50:54 -0800 (PST) Received: from osprey.grizzly.com by scruz.net (8.7.3/1.34) id RAA10402; Mon, 10 Feb 1997 17:50:23 -0800 (PST) Received: (from markd@localhost) by osprey.grizzly.com (8.8.4/8.7.3) id RAA00810; Mon, 10 Feb 1997 17:43:35 -0800 (PST) Date: Mon, 10 Feb 1997 17:43:35 -0800 (PST) Message-Id: <199702110143.RAA00810@osprey.grizzly.com> From: Mark Diekhans To: gurney_j@resnet.uoregon.edu CC: mcclure@cs.unm.edu, freebsd-gnats-submit@freefall.freebsd.org, freebsd-current@freebsd.org In-reply-to: (message from John-Mark Gurney on Mon, 10 Feb 1997 12:45:50 -0800 (PST)) Subject: Re: misc/229 floating point exception on illegial values.. Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I believe that this is what is suppose to happen... you use SIGFPE to >trap these errors and possibly rerun the function after correcting the >problem.... acording to the math(3) man page an exception is suppose to >occure on invalid values... > >so this is really a non-error correct? and this pr should be closed... > >i.e. acos(-2.0) is suppose to generate a SIGFPE else it isn't doing what >math(3) says it will do... As the default behavior, this causes a great amount of pain when porting software to BSD. No other system that I know of works in this manner. Its a royal pain for things like Tcl and other interpreters that want to check errno after calling a math function. Mark