From owner-freebsd-threads@FreeBSD.ORG Tue May 3 14:00:38 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 6C72416A4D1; Tue, 3 May 2005 14:00:38 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0802843D69; Tue, 3 May 2005 14:00:38 +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 C23E21F3D1; Tue, 3 May 2005 16:00:29 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id AA185615A; Tue, 3 May 2005 16:00:29 +0200 (CEST) Date: Tue, 3 May 2005 16:00:29 +0200 From: Marc Olzheim To: Daniel Eischen Message-ID: <20050503140029.GE66132@stack.nl> References: <20050503110818.GA66132@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SWTRyWv/ijrBap1m" Content-Disposition: inline In-Reply-To: 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: Tue, 03 May 2005 14:00:38 -0000 --SWTRyWv/ijrBap1m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 03, 2005 at 09:54:23AM -0400, Daniel Eischen wrote: > > Hi. > > > > 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... :-( >=20 > Yes, it should work fine. If you can verify the problem exists > (or doesn't) on -current, that might help. It sounds like FPU > context isn't getting saved/restored correctly in the kernel. I don't have a -current machine with HyperThreading... :-/ But I mailed a test program in a different thread; perhaps somebody else is willing to run it... Marc --SWTRyWv/ijrBap1m Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCd4P9ezjnobFOgrERAgnkAJ9S+DA362TIorIJyK+TAm3bOPfWoACffSxr 4Jq7lrs3e3xIllXtPgMZ4Fg= =UzGI -----END PGP SIGNATURE----- --SWTRyWv/ijrBap1m--