From owner-freebsd-hackers Fri Oct 10 14:50:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA12466 for hackers-outgoing; Fri, 10 Oct 1997 14:50:11 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from usr08.primenet.com (usr08.primenet.com [206.165.6.208]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA12459 for ; Fri, 10 Oct 1997 14:50:05 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id OAA15093; Fri, 10 Oct 1997 14:49:09 -0700 (MST) From: Terry Lambert Message-Id: <199710102149.OAA15093@usr08.primenet.com> Subject: Re: Floating point exceptions To: gjohnson@nola.srrc.usda.gov (Glenn Johnson) Date: Fri, 10 Oct 1997 21:49:09 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <199710101907.OAA09470@millenia.srrc.usda.gov> from "Glenn Johnson" at Oct 10, 97 02:07:33 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I've got a calculation intensive (simulation) application that I run that > aborts with a Floating Point Exception error under FreeBSD -current. I can run > this application just fine under Linux, but of course I want to run it under > FreeBSD (so I can replace Linux). My understanding is that FreeBSD traps > FPE's. Is there a way for me to change the FreeBSD source code to mask FPE's > rather than trap them? Better yet, can I do that for a specific application at > compile time? Your assistance is greatly appreciated. Fix: Correct the code to not generate exceptions Bad fix: fpsetmask( 0); Worst fix: signal( SIGFPE, SIG_IGN); Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.