public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Internal asserts cleanups
@ 2022-08-01 10:45 Florian Weimer
  2022-08-01 10:45 ` [PATCH 1/3] stdio: Clean up __libc_message after unconditional abort Florian Weimer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Florian Weimer @ 2022-08-01 10:45 UTC (permalink / raw)
  To: libc-alpha

Internal asserts do not need to write to stderr (and call into libio).
These small series redefines __assert_fail inside libc itself, so that
it more reliably terminates the process.

Thanks,
Florian

Florian Weimer (3):
  stdio: Clean up __libc_message after unconditional abort
  nptl: Remove uses of assert_perror
  assert: Do not use stderr in libc-internal assert

 assert/Makefile             |  7 +++++-
 assert/__libc_assert_fail.c | 33 ++++++++++++++++++++++++++
 assert/assert.c             |  1 -
 debug/fortify_fail.c        |  4 +---
 elf/Makefile                |  1 +
 include/assert.h            | 12 +++++++---
 include/stdio.h             |  9 +------
 malloc/malloc.c             | 19 +--------------
 stdlib/tst-bz20544.c        |  2 +-
 sysdeps/nptl/gai_misc.h     | 11 +++------
 sysdeps/posix/libc_fatal.c  | 47 +++++++++++++++++--------------------
 11 files changed, 77 insertions(+), 69 deletions(-)
 create mode 100644 assert/__libc_assert_fail.c


base-commit: 5fded9c44537283593a7f839347f831e15726572
-- 
2.35.3


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

end of thread, other threads:[~2022-08-02 13:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 10:45 [PATCH 0/3] Internal asserts cleanups Florian Weimer
2022-08-01 10:45 ` [PATCH 1/3] stdio: Clean up __libc_message after unconditional abort Florian Weimer
2022-08-01 19:59   ` Adhemerval Zanella Netto
2022-08-02  8:03     ` Florian Weimer
2022-08-02 13:43       ` Adhemerval Zanella Netto
2022-08-01 10:45 ` [PATCH 2/3] nptl: Remove uses of assert_perror Florian Weimer
2022-08-01 20:01   ` Adhemerval Zanella Netto
2022-08-01 10:45 ` [PATCH 3/3] assert: Do not use stderr in libc-internal assert Florian Weimer
2022-08-01 20:04   ` Adhemerval Zanella Netto

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