Date: Sun, 17 Apr 2005 15:29:18 -0500 From: Stephen Montgomery-Smith <stephen@math.missouri.edu> To: chuck@pkix.net Cc: freebsd-ports <freebsd-ports@FreeBSD.org> Subject: Floating point exceptions with bzflag Message-ID: <4262C71E.6070304@math.missouri.edu>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080208020009070007040000 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear Chuck, I am really enjoying the games/bzflag port. But every so often it crashes with a floating point exception. My guess is that the other operating systems simply ignore them. The following (band aid) patch seems to fix the problem: --- src/bzflag/playing.cxx-orig Tue Mar 8 15:03:12 2005 +++ src/bzflag/playing.cxx Sun Apr 17 10:12:31 2005 @@ -5911,6 +5911,7 @@ // catch kill signals before changing video mode so we can // put it back even if we die. ignore a few signals. + bzSignal(SIGFPE, SIG_IGN); bzSignal(SIGILL, SIG_PF(dying)); bzSignal(SIGABRT, SIG_PF(dying)); bzSignal(SIGSEGV, SIG_PF(dying)); --------------080208020009070007040000 Content-Type: text/plain; name="patch-playing.cxx" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-playing.cxx" --- src/bzflag/playing.cxx-orig Tue Mar 8 15:03:12 2005 +++ src/bzflag/playing.cxx Sun Apr 17 10:12:31 2005 @@ -5911,6 +5911,7 @@ // catch kill signals before changing video mode so we can // put it back even if we die. ignore a few signals. + bzSignal(SIGFPE, SIG_IGN); bzSignal(SIGILL, SIG_PF(dying)); bzSignal(SIGABRT, SIG_PF(dying)); bzSignal(SIGSEGV, SIG_PF(dying)); --------------080208020009070007040000--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4262C71E.6070304>