From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA5AC385AC19; Tue, 26 May 2020 10:26:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA5AC385AC19 From: "mtk.manpages at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug math/6807] y0(), y1(), yn() do not raise exception and give wrong errno for pole error Date: Tue, 26 May 2020 10:26:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mtk.manpages at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 10:26:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D6807 --- Comment #9 from Michael Kerrisk --- y0(3) manual page has been patched to note the fix. diff --git a/man3/y0.3 b/man3/y0.3 index 07e20bd78..460a63ad9 100644 --- a/man3/y0.3 +++ b/man3/y0.3 @@ -187,15 +187,11 @@ Pole error: \fIx\fP is 0.0 .\" as a range error. .I errno is set to -.\" FIXME . y0(0.0) gives EDOM .BR ERANGE -(but see BUGS). -No +and an .B FE_DIVBYZERO -exception is returned by -.BR fetestexcept (3) -for this case. -.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=3D6808 +exception is raised +(but see BUGS). .TP Range error: result underflow .\" e.g., y0(1e33) on glibc 2.8/x86-32 @@ -253,15 +249,18 @@ conform to SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008. The others are nonstandard functions that also exist on the BSDs. .SH BUGS -On a pole error, these functions set +Before glibc 2.19, +.\" http://sourceware.org/bugzilla/show_bug.cgi?id=3D6807 +these functions misdiagnosed pole errors: .I errno -to +was set to .BR EDOM , instead of .BR ERANGE +and no +.B FE_DIVBYZERO +exception was raised. as POSIX.1-2004 requires. -.\" FIXME . -.\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=3D6807 .PP In glibc version 2.3.2 and earlier, .\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet --=20 You are receiving this mail because: You are on the CC list for the bug.=