From owner-freebsd-threads@FreeBSD.ORG Wed May 4 23:22: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 BC96916A4CE; Wed, 4 May 2005 23:22:38 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7645143D7C; Wed, 4 May 2005 23:22: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 998D01F088; Thu, 5 May 2005 01:21:36 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 7A80C6393; Thu, 5 May 2005 01:21:36 +0200 (CEST) Date: Thu, 5 May 2005 01:21:36 +0200 From: Marc Olzheim To: Daniel Eischen Message-ID: <20050504232136.GD1886@stack.nl> References: <20050504230157.GA1886@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kvUQC+jR9YzypDnK" 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: David Schultz 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 23:22:38 -0000 --kvUQC+jR9YzypDnK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 04, 2005 at 07:07:48PM -0400, Daniel Eischen wrote: > > Question remains why the truncf() doesn't trigger it and the ceilf() and > > floorf() does. I just checked all files in /usr/src/lib/msun/i387/. The following functions are the only ones using stackspace in the i387 dir, the rest just uses the arguments directly: ceil*(), floor*(), {,l}lrint*(), trunc*(). Of those, only the ceilf(),floorf() and truncf() used more than %esp was lowered. > > And why it only triggers with threads (even a single thread is enough). >=20 > For the latter, the threads library may place a stackframe on > top of the swapped-out thread's stack. Without threads, or > even with libthr, the thread's stack doesn't get used by > anything else. Ah, that explains. Thanks a lot, Daniel and David, for your help and time today! Marc --kvUQC+jR9YzypDnK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCeVkAezjnobFOgrERAmFmAKC/zsD38W54raMw3i+b/Au/TuNX3gCgzCDx oweH6vCoN1c0I0N00YZS8XY= =nkLN -----END PGP SIGNATURE----- --kvUQC+jR9YzypDnK--