*BSD News Article 38104


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!cs.utexas.edu!swrinde!gatech!purdue!mozo.cc.purdue.edu!bj
From: bj@ben.com (Ben Jackson)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Anyone using POV?  Can you trace the skyvase.pov file without a core dump?
Date: 19 Nov 1994 20:26:39 GMT
Organization: Top of the Hill at Purdue, West Lafayette, Indiana
Lines: 20
Message-ID: <3aln1v$d8q@mozo.cc.purdue.edu>
References: <mldCzHx7A.GHp@netcom.com>
NNTP-Posting-Host: elbow.cc.purdue.edu

In article <mldCzHx7A.GHp@netcom.com>, Matthew Deter <mld@netcom.com> wrote:
>Subject says it all.  I have POV 2.2 compiled (with the "unix.c"
>machine dependent code) for 1.1.5.1.  It compiled cleanly with no
>errors or warnings.  However, I cannot render the "skyvase.pov" file
>(and a few others as well).  After a few scan lines, POV dumps core
>with a floating point exception error.

Whenever I get a SIGFPE from a program, my first attempt to fix it is
always to add:

#include <floatingpoint.h>
...

#if defined(__386BSD__ ) || defined(__FreeBSD__) || defined(__NetBSD__)
        fpsetmask(~(FP_X_OFL | FP_X_INV | FP_X_DZ | FP_X_DNML | FP_X_UFL | FP_X_IMP)); 
#endif

This does in fact fix POV (I put it it init_unix_POVRAY, I believe).
--
Ben Jackson