Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site rruxc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!rruxa!rruxo!rruxu!rruxc!alex From: alex@rruxc.UUCP (A DeSimone) Newsgroups: net.micro.att Subject: matherr() problems on unixpc Message-ID: <108@rruxc.UUCP> Date: Tue, 27-Aug-85 10:24:25 EDT Article-I.D.: rruxc.108 Posted: Tue Aug 27 10:24:25 1985 Date-Received: Wed, 28-Aug-85 09:38:53 EDT Organization: Bell Communications Research, Piscataway, NJ Lines: 20 << chomp, chomp, chomp >> I've encountered a problem using the matherr(3M) facility on my unixpc. My program is dealing with trig functions and I've included my own matherr() routine to catch and deal with TLOSS, PLOSS, OVERFLOW, ... situations. Everything works fine except for the sin() function. When a sin() TLOSS/PLOSS situation occurs, my matherr() is invoked but as soon as I try to access the "exception" structure passed to matherr(), a "bus error" occurs. tan() TLOSS/ PLOSS is handled just fine (by the same code, of course). I moved my program to a VAX and it works fine there. I don't think the unixpc's sin() function is populating the "exception" structure before passing control to matherr(), so the first attempt to access results in the bus error. Has anyone else encountered similar problems? Can anyone "verify" that this is/is not a unixpc bug? I'm running version 2.0 of the unixpc's UN*X. ->"So it goes." ->Alex DeSimone, Amala Consultants Inc. @ Bell Communications Research ->..!ihnp4!rruxc!alex