[PATCH v8 6/6] elf: Raise SIGABRT for assert within ld.so
Florian Weimer
fweimer@redhat.com
Fri Apr 10 12:38:21 GMT 2026
* Adhemerval Zanella:
> @@ -188,11 +232,11 @@ __assert_perror_fail (int errnum,
> const char *function)
> {
> char errbuf[400];
> - _dl_fatal_printf ("\
> + _dl_error_printf ("\
> Inconsistency detected by ld.so: %s: %u: %s%sUnexpected error: %s.\n",
> file, line, function ?: "", function ? ": " : "",
> __strerror_r (errnum, errbuf, sizeof errbuf));
> -
> + rtld_abort ();
> }
Would it make sense to change _dl_fatal_printf to abort instead?
It requires changing the _dl_fatal_printf call in _dl_signal_error
because we don't want to abort if loading fails due to a missing
dependency.
Thanks,
Florian
More information about the Libc-alpha
mailing list