From owner-freebsd-threads@FreeBSD.ORG Tue May 3 13:54:30 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 EFD9816A4CE for ; Tue, 3 May 2005 13:54:30 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62A9143D2D for ; Tue, 3 May 2005 13:54:30 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j43DsN3N008410; Tue, 3 May 2005 09:54:23 -0400 (EDT) Date: Tue, 3 May 2005 09:54:23 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Marc Olzheim In-Reply-To: <20050503110818.GA66132@stack.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) 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 Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2005 13:54:31 -0000 On Tue, 3 May 2005, Marc Olzheim 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... :-( 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. -- DE