From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CF5143858C98; Tue, 21 Nov 2023 14:50:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF5143858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1700578249; bh=nENK7NhPyQauWUBwr006ZeeGqUvD94uVCXeZwin0Tbs=; h=From:To:Subject:Date:From; b=ruxMaKvbIdqJlOPNMwKEtdo3uebtMFp6sp/oLMpbN6hhIXv/NlqlKOEQxzlTRYE3F Gb7YoxZ9LXThkXOu8DTNRtIGgZB6swsn6rS38H7nOSABje0MhYeoGosFZIAWETABcz RB3vLSp3R8s7Ok0k2KUV44MNNUgrdT7MAJxJrJe4= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/31080] New: strerrorname_np and strerror don't know about ENOSYM and EREMOTERELEASE on Linux/hppa Date: Tue, 21 Nov 2023 14:50:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31080 Bug ID: 31080 Summary: strerrorname_np and strerror don't know about ENOSYM and EREMOTERELEASE on Linux/hppa Product: glibc Version: 2.37 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: bruno at clisp dot org CC: drepper.fsp at gmail dot com Target Milestone: --- Created attachment 15225 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15225&action=3Ded= it test case foo.c The function strerrorname_np is supposed to return non-NULL for all defined errno values. https://www.gnu.org/software/libc/manual/html_node/Error-Messages.html On Linux/hppa, for the errnos with names ENOSYM EREMOTERELEASE it returns NULL. $ grep -rw ENOSYM /usr/include /usr/include/asm/errno.h:#define ENOSYM 215 /* symbol does not exist in executable */ $ grep -rw EREMOTERELEASE /usr/include=20 /usr/include/asm/errno.h:#define EREMOTERELEASE 240 /* Remote p= eer released connection */ How to reproduce: $ gcc -Wall foo.c $ ./a.out Expected output: strerrorname_np (ENOSYM) =3D "ENOSYM" strerrorname_np (EREMOTERELEASE) =3D "EREMOTERELEASE" strerror (ENOSYM) =3D Symbol does not exist in executable strerror (EREMOTERELEASE) =3D Remote peer released connection Actual output: strerrorname_np (ENOSYM) =3D (null) strerrorname_np (EREMOTERELEASE) =3D (null) strerror (ENOSYM) =3D Unknown error 215 strerror (EREMOTERELEASE) =3D Unknown error 240 Seen on T2-SDE Linux, with glibc 2.37. --=20 You are receiving this mail because: You are on the CC list for the bug.=