public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values
@ 2022-09-03  9:00 samuel.thibault@ens-lyon.org
  2022-09-03  9:02 ` [Bug hurd/29545] " samuel.thibault@ens-lyon.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2022-09-03  9:00 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

            Bug ID: 29545
           Summary: strerrorname_np returns NULL for some defined errno
                    values
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: hurd
          Assignee: unassigned at sourceware dot org
          Reporter: samuel.thibault@ens-lyon.org
                CC: samuel.thibault@ens-lyon.org, tschwinge at sourceware dot org
  Target Milestone: ---

Created attachment 14314
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14314&action=edit
testcase

From Bruno Haible <bruno@clisp.org>:

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 Hurd, for the errnos with names
  ED_*
  EKERN_*
  EMACH_*
  EMIG_*
it returns NULL.

How to reproduce:
$ gcc -Wall foo.c
$ ./a.out

Seen on Debian GNU/Hurd, with glibc 2.34.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
@ 2022-09-03  9:02 ` samuel.thibault@ens-lyon.org
  2022-09-03 11:37 ` bruno at clisp dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2022-09-03  9:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

--- Comment #1 from Samuel Thibault <samuel.thibault@ens-lyon.org> ---
I guess it's a matter of completing manual/errno.texi with these, help welcome!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
  2022-09-03  9:02 ` [Bug hurd/29545] " samuel.thibault@ens-lyon.org
@ 2022-09-03 11:37 ` bruno at clisp dot org
  2022-09-08  1:47 ` bruno at clisp dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bruno at clisp dot org @ 2022-09-03 11:37 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

Bruno Haible <bruno at clisp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bruno at clisp dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
  2022-09-03  9:02 ` [Bug hurd/29545] " samuel.thibault@ens-lyon.org
  2022-09-03 11:37 ` bruno at clisp dot org
@ 2022-09-08  1:47 ` bruno at clisp dot org
  2022-09-08  7:39 ` schwab@linux-m68k.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bruno at clisp dot org @ 2022-09-08  1:47 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

--- Comment #2 from Bruno Haible <bruno at clisp dot org> ---
Created attachment 14323
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14323&action=edit
test case for Linux/powerpc64le

Similarly, on Linux/powerpc64le: for the errno with name EDEADLOCK
strerrorname_np returns NULL.

How to reproduce:
$ gcc -Wall -O foo-ppc.c
$ ./a.out
strerrorname_np (EDEADLOCK) = (null)

Seen on Linux/ppc64le with glibc 2.35.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
                   ` (2 preceding siblings ...)
  2022-09-08  1:47 ` bruno at clisp dot org
@ 2022-09-08  7:39 ` schwab@linux-m68k.org
  2023-06-25 16:11 ` bruno at clisp dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: schwab@linux-m68k.org @ 2022-09-08  7:39 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
mips, powerpc and sparc use a separate value for EDEADLOCK, while all other
architectures alias it to EDEADLK.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
                   ` (3 preceding siblings ...)
  2022-09-08  7:39 ` schwab@linux-m68k.org
@ 2023-06-25 16:11 ` bruno at clisp dot org
  2023-07-03 19:37 ` adhemerval.zanella at linaro dot org
  2023-07-03 20:21 ` bruno at clisp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: bruno at clisp dot org @ 2023-06-25 16:11 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

--- Comment #4 from Bruno Haible <bruno at clisp dot org> ---
Similarly, on Linux/sparc64: for the errno with name EDEADLOCK strerrorname_np
returns NULL.

How to reproduce:
$ gcc -Wall -O foo-ppc.c
$ ./a.out
strerrorname_np (EDEADLOCK) = (null)

Seen on Linux/sparc64 with glibc 2.36.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
                   ` (4 preceding siblings ...)
  2023-06-25 16:11 ` bruno at clisp dot org
@ 2023-07-03 19:37 ` adhemerval.zanella at linaro dot org
  2023-07-03 20:21 ` bruno at clisp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2023-07-03 19:37 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #5 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Linux missing EDEADLK was already fixed by
3d7d5c10c806ee24f8e35014e41e203002609a3f.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug hurd/29545] strerrorname_np returns NULL for some defined errno values
  2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
                   ` (5 preceding siblings ...)
  2023-07-03 19:37 ` adhemerval.zanella at linaro dot org
@ 2023-07-03 20:21 ` bruno at clisp dot org
  6 siblings, 0 replies; 8+ messages in thread
From: bruno at clisp dot org @ 2023-07-03 20:21 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29545

--- Comment #6 from Bruno Haible <bruno at clisp dot org> ---
(In reply to Adhemerval Zanella from comment #5)
> Linux missing EDEADLK was already fixed by
> 3d7d5c10c806ee24f8e35014e41e203002609a3f.

Indeed, 3d7d5c10c806ee24f8e35014e41e203002609a3f (most likely) fixed the case
of missing EDEADLOCK on Linux.

So, the only remaining errnos to be added are for Hurd, the errnos with names
  ED_*
  EKERN_*
  EMACH_*
  EMIG_*
(as in the original description).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-03 20:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-03  9:00 [Bug hurd/29545] New: strerrorname_np returns NULL for some defined errno values samuel.thibault@ens-lyon.org
2022-09-03  9:02 ` [Bug hurd/29545] " samuel.thibault@ens-lyon.org
2022-09-03 11:37 ` bruno at clisp dot org
2022-09-08  1:47 ` bruno at clisp dot org
2022-09-08  7:39 ` schwab@linux-m68k.org
2023-06-25 16:11 ` bruno at clisp dot org
2023-07-03 19:37 ` adhemerval.zanella at linaro dot org
2023-07-03 20:21 ` bruno at clisp dot org

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).