public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/6777] New: lgamma() pole error sets errno to EDOM, should be ERANGE
@ 2008-07-30 10:56 mtk dot manpages at gmail dot com
2008-07-31 8:26 ` [Bug math/6777] " mtk dot manpages at gmail dot com
2010-09-11 14:21 ` mtk dot manpages at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: mtk dot manpages at gmail dot com @ 2008-07-30 10:56 UTC (permalink / raw)
To: glibc-bugs
For the pole error, POSIX.1 says of lgamma():
Pole Error
The x argument is a negative integer or zero.
If the integer expression (math_errhandling & MATH_ERRNO) is non-zero, then
errno shall be set to [ERANGE]. If the integer expression (math_errhandling &
MATH_ERREXCEPT) is non-zero, then the divide-by-zero floating-point exception
shall be raised.
==
glibc 2.8's lgamma() does raise the divide-by-zero exception, as expected.
It also sets errno, but to the wrong value: errno is set to EDOM, when it should
instead be ERANGE.
--
Summary: lgamma() pole error sets errno to EDOM, should be ERANGE
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: mtk dot manpages at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6777
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug math/6777] lgamma() pole error sets errno to EDOM, should be ERANGE
2008-07-30 10:56 [Bug math/6777] New: lgamma() pole error sets errno to EDOM, should be ERANGE mtk dot manpages at gmail dot com
@ 2008-07-31 8:26 ` mtk dot manpages at gmail dot com
2010-09-11 14:21 ` mtk dot manpages at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: mtk dot manpages at gmail dot com @ 2008-07-31 8:26 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From mtk dot manpages at gmail dot com 2008-07-31 08:25 -------
Created an attachment (id=2842)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2842&action=view)
test program
Attached a test program. Sample run showing the problem:
$ /tmp/mt_lgamma -- -1
errno == EDOM
fetestexcept() says: FE_DIVBYZERO
lgamma(-1.00000000000000000e+00)=inf
EDOM FE_DIVBYZERO +inf
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6777
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug math/6777] lgamma() pole error sets errno to EDOM, should be ERANGE
2008-07-30 10:56 [Bug math/6777] New: lgamma() pole error sets errno to EDOM, should be ERANGE mtk dot manpages at gmail dot com
2008-07-31 8:26 ` [Bug math/6777] " mtk dot manpages at gmail dot com
@ 2010-09-11 14:21 ` mtk dot manpages at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: mtk dot manpages at gmail dot com @ 2010-09-11 14:21 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From mtk dot manpages at gmail dot com 2010-09-11 14:21 -------
This bug appears to have been fixed in glibc 2.10, and man-pages-3.27 is updated
accordingly.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=6777
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-11 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-30 10:56 [Bug math/6777] New: lgamma() pole error sets errno to EDOM, should be ERANGE mtk dot manpages at gmail dot com
2008-07-31 8:26 ` [Bug math/6777] " mtk dot manpages at gmail dot com
2010-09-11 14:21 ` mtk dot manpages at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).