From owner-freebsd-threads@FreeBSD.ORG Wed May 4 20:22:47 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5058D16A4E6; Wed, 4 May 2005 20:22:47 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0776943D7E; Wed, 4 May 2005 20:22:47 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 674971F1CF; Wed, 4 May 2005 22:22:00 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 4EDDF6393; Wed, 4 May 2005 22:22:00 +0200 (CEST) Date: Wed, 4 May 2005 22:22:00 +0200 From: Marc Olzheim To: Daniel Eischen Message-ID: <20050504202200.GD76171@stack.nl> References: <20050504183132.GA76171@stack.nl> <20050504195153.GC76171@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="imjhCm/Pyz7Rq5F2" Content-Disposition: inline In-Reply-To: <20050504195153.GC76171@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i cc: Marc Olzheim cc: freebsd-threads@freebsd.org Subject: Re: Floating point exceptions with -pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 20:22:47 -0000 --imjhCm/Pyz7Rq5F2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 04, 2005 at 09:51:53PM +0200, Marc Olzheim wrote: > On Wed, May 04, 2005 at 03:15:06PM -0400, Daniel Eischen wrote: > > > It seems to me like something about the floorf() assembly might have > > > something to do with it. > >=20 > > Yeah, I was just trying to narrow down the problem a bit more. >=20 > I've attached one that's built very tight around floorf(). Replacing floorf() in the program by: fabs() rintf() sqrt() expf() log10f() logf() cosf() powf(,) doesn't crash. The only two functions I found to crash are floorf() and ceilf(). Replacing all floats by doubles and using floor() or ceil() doesn't crash either. So it really seems to be in the floorf() and ceilf() code. Marc --imjhCm/Pyz7Rq5F2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCeS7oezjnobFOgrERAjdWAKCEyodrYSGMsjqCrfmwkzrm1kwowwCfdZbn lcFQzazBkC5N9uLgj97xsVo= =GOTg -----END PGP SIGNATURE----- --imjhCm/Pyz7Rq5F2--