From owner-freebsd-hackers Fri Sep 19 02:39:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA28808 for hackers-outgoing; Fri, 19 Sep 1997 02:39:57 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA28802 for ; Fri, 19 Sep 1997 02:39:54 -0700 (PDT) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.30.2]) by Campino.Informatik.RWTH-Aachen.DE (8.8.7/RBI-Z-6) with ESMTP id LAA23138; Fri, 19 Sep 1997 11:41:39 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id LAA20518; Fri, 19 Sep 1997 11:47:04 +0200 (MEST) Message-ID: <19970919114704.51622@gil.physik.rwth-aachen.de> Date: Fri, 19 Sep 1997 11:47:04 +0200 From: Christoph Kukulies To: Terry Lambert Cc: Christoph Kukulies , freebsd-hackers@freefall.FreeBSD.org Subject: Re: FPE problem References: <19970918163531.11717@gil.physik.rwth-aachen.de> <199709181618.JAA17494@usr03.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709181618.JAA17494@usr03.primenet.com>; from Terry Lambert on Thu, Sep 18, 1997 at 04:18:06PM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Sep 18, 1997 at 04:18:06PM +0000, Terry Lambert wrote: > > A little bit more info now: > > > > ret_val = -z__ * (spint_1.a1 * z__ * (spint_1.a2 * z__ * (spint_1.a3 * > > z2 * (spint_1.a4 * z2 * (spint_1.a5 * z2 * (spint_1.a6 * z2 * > > (spint_1.a7 * z2 * (spint_1.a8 * z2 * (spint_1.a9 * z2 * ( > > spint_1.a10 * z2 + 1.) + 1.) + 1.) + 1.) + 1.) + 1.) + 1.) + > > 1.) + 1.) + 1.) + spint_1.zeta2 + z__ * log(1. - *x); > > > > > > (xxgdb) info float > > u: status 0x82e1: exceptions: INVALID LOS FPSTACK; flags: 0010; top 0 > > e: status 0x200: flags: 0010; top 0 > > control 0x1272: compute to 53 bits; round NEAREST; mask: DENORM UNDERF LOS; > > last instruction: opcode 0x1d0; pc 0x8:0xf01f9a96; operand 0x27:0x92844 > > [ ... ] > > > What is LOS ? Loss of significance? > [ valuable floating point insights ommitted ] Now it's getting funny: The exception only occurs on certain machines. I have a dynamically linked binary which I compiled on an around July -current 486 machine and it does *not* do a FPE there. The machines where it occurs were built with CFLAGS= -ffast-math -m486 -O2 That means that libm (or libmsun) were built with inline fpu instructions and this is causing the trouble. I will rebuild the math libs with conservative switches now. > > If it's any consolation, I was stumped for a good week the first > time this happened to me. That's about 1.0e13 Proton-Proton pair > production collisions on the very expensive hardware I was using. 8-(. > > > Regards, > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. -- --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de