Summary: | lgamma() pole error sets errno to EDOM, should be ERANGE | ||
---|---|---|---|
Product: | glibc | Reporter: | Michael Kerrisk <mtk.manpages> |
Component: | math | Assignee: | Andreas Jaeger <aj> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | glibc-bugs |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | test program |
Description
Michael Kerrisk
2008-07-30 10:55:15 UTC
Created attachment 2842 [details]
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
This bug appears to have been fixed in glibc 2.10, and man-pages-3.27 is updated accordingly. |