From owner-freebsd-threads@FreeBSD.ORG Tue May 3 13:23:16 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 224AB16A4CF for ; Tue, 3 May 2005 13:23:16 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id D78A643D7C for ; Tue, 3 May 2005 13:23:14 +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 7D1E91F09D for ; Tue, 3 May 2005 15:23:12 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 6302F615A; Tue, 3 May 2005 15:23:12 +0200 (CEST) Date: Tue, 3 May 2005 15:23:12 +0200 From: Marc Olzheim To: freebsd-threads@freebsd.org Message-ID: <20050503132312.GB66132@stack.nl> References: <20050503110818.GA66132@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DIOMP1UsTsWJauNi" Content-Disposition: inline In-Reply-To: <20050503110818.GA66132@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 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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: Tue, 03 May 2005 13:23:16 -0000 --DIOMP1UsTsWJauNi Content-Type: multipart/mixed; boundary="LpQ9ahxlCli8rRTG" Content-Disposition: inline --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 03, 2005 at 01:08:18PM +0200, Marc Olzheim wrote: > Hi. >=20 > I was wondering whether it was safe to use floating point calculations / > libm functions with 5.4-STABLE's pthread library on HT+SMP. I keep > getting floating point exceptions on places where they should not > happen... :-( I've narrowed it down to the following program. The th version crashes within seconds, while the non th version has no problems. amd64 doesn't have this problem either; it just goes wrong on i386/SMP+HT. i386/SMP (athlon MP) seems to have no problems either. Am I doing something wrong here ? Marc --LpQ9ahxlCli8rRTG-- --DIOMP1UsTsWJauNi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCd3tAezjnobFOgrERAuBwAJwJU4ghNyl3kJcwV/PIBc5974Zj2wCgvkJh qEZ0fjcdsRXpCVomjgz9caE= =DI+R -----END PGP SIGNATURE----- --DIOMP1UsTsWJauNi--