Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!usc!howland.reston.ans.net!usenet.ins.cwru.edu!ljo From: ljo@johnny5.eeap.cwru.edu (L Jonas Olsson) Newsgroups: comp.os.386bsd.questions Subject: Re: TCL dies with FPE in validation tests. Date: 18 May 1994 00:20:03 GMT Organization: Case Western Reserve Univ. Cleveland, Ohio (USA) Lines: 15 Message-ID: <2rbmvj$f74@usenet.INS.CWRU.Edu> References: <2raj7p$9if@meatball.rwwa.com> NNTP-Posting-Host: johnny5.eeap.cwru.edu Robert Withrow writes: >On FreeBSD 1.1-G, the current version dies in the ``expr'' >validation test with a FPE. I know that the same version >passes this test on Linux, so I expect there is some problem >with 1.1-G <math.h> or libm. > >Is this fixed in 1.1-R, or is there a patch? There is a simple solution to this and other problems caused by FreeBSD generating signals on FPU overflow etc. It has been in FreeBSD since 1.0. You should include <floatingpoint.h> and set the correct signal mask for the FPU, this is done with the macro fpsetmask(). Jonas