[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#339319: marked as done (Bug in fesetenv() [LIBC6.1])



Your message dated Sun, 20 Nov 2005 12:06:21 -0500
with message-id <20051120170621.GA28243@nevyn.them.org>
and subject line Bug#339319: Bug in fesetenv() [LIBC6.1]
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Nov 2005 13:51:33 +0000
>From jlr@mpq.mpg.de Tue Nov 15 05:51:33 2005
Return-path: <jlr@mpq.mpg.de>
Received: from post.rzg.mpg.de ([130.183.7.21])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Ec1Dg-0000WS-Vv
	for submit@bugs.debian.org; Tue, 15 Nov 2005 05:51:33 -0800
Received: from mpq3p32.mpq.mpg.de (mpq3p32.mpq.mpg.de [130.183.93.32])
	by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id OAA3153952
	for <submit@bugs.debian.org>; Tue, 15 Nov 2005 14:51:31 +0100
X-Envelope-To: <submit@bugs.debian.org>
Subject: Bug in fesetenv() [LIBC6.1]
From: Juan Jose Garcia Ripoll <jlr@mpq.mpg.de>
To: submit@bugs.debian.org
Content-Type: text/plain
Date: Tue, 15 Nov 2005 14:50:37 +0100
Message-Id: <[🔎] 1132062637.30677.57.camel@mpq3p32.mpq.mpg.de>
Mime-Version: 1.0
X-Mailer: Evolution 2.4.1 
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package:	libc6.1
Version:	2.2.5-11.5
Architecture:	Linux usf-cf-alpha-linux-1 2.2.20 #2 Wed Mar 20 19:57:28 EST 2002 alpha unknown
Summary:	Under some circumstances, invoking fesetenv() results
		in a floating point exception being raised.

Description:

I have a piece of code which may result in underflows. I enclose
the code in between

	fenv_t env;
	feholdexcept(&env);

	...

	fesetenv(&env);

Now the code in [...] is reading floating point numbers which may
be very small and result in underflow floating point signals.
However, since we have used feholdexcept() the signals should not
be produced. And indeed they are not, until we reach fesetenv()
where the signal is raised.

If you read the manual of LIBC for fesetenv()

       The fesetenv function restores the floating point environ-
       ment  from the object *envp.  This object must be known to
       be valid, e.g., the  result  of  a  call  to  fegetenv  or
       feholdexcept  or  equal to FE_DFL_ENV.  This call does not
       raise exceptions.

it says no exception should be raised.




---------------------------------------
Received: (at 339319-close) by bugs.debian.org; 20 Nov 2005 17:06:25 +0000
>From drow@nevyn.them.org Sun Nov 20 09:06:25 2005
Return-path: <drow@nevyn.them.org>
Received: from nevyn.them.org ([66.93.172.17] ident=Debian-exim)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Edsdz-0007tZ-DM
	for 339319-close@bugs.debian.org; Sun, 20 Nov 2005 09:06:25 -0800
Received: from drow by nevyn.them.org with local (Exim 4.54)
	id 1Edsdx-0007Mn-9d; Sun, 20 Nov 2005 12:06:21 -0500
Date: Sun, 20 Nov 2005 12:06:21 -0500
From: Daniel Jacobowitz <drow@false.org>
To: Juan Jose Garcia Ripoll <jlr@mpq.mpg.de>, 339319-close@bugs.debian.org
Subject: Re: Bug#339319: Bug in fesetenv() [LIBC6.1]
Message-ID: <20051120170621.GA28243@nevyn.them.org>
References: <[🔎] 1132062637.30677.57.camel@mpq3p32.mpq.mpg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 1132062637.30677.57.camel@mpq3p32.mpq.mpg.de>
User-Agent: Mutt/1.5.8i
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

On Tue, Nov 15, 2005 at 02:50:37PM +0100, Juan Jose Garcia Ripoll wrote:
> Package:	libc6.1
> Version:	2.2.5-11.5
> Architecture:	Linux usf-cf-alpha-linux-1 2.2.20 #2 Wed Mar 20 19:57:28 EST 2002 alpha unknown
> Summary:	Under some circumstances, invoking fesetenv() results
> 		in a floating point exception being raised.

This is a duplicate of 339318, closing - will follow up there.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: