[PATCH v7 2/5] nptl: Add __raise_direct
Florian Weimer
fw@deneb.enyo.de
Mon Mar 16 10:04:43 GMT 2026
* Samuel Thibault:
> Hello,
>
> Florian Weimer, le lun. 02 mars 2026 10:39:07 +0100, a ecrit:
>> * Adhemerval Zanella:
>>
>> > diff --git a/sysdeps/htl/raise.c b/sysdeps/htl/raise.c
>> > index 3200f91634..9c8bccc5a9 100644
>> > --- a/sysdeps/htl/raise.c
>> > +++ b/sysdeps/htl/raise.c
>> > @@ -51,6 +51,9 @@ raise (int signo)
>> > else
>> > return __kill (__getpid (), signo);
>> > }
>> > +/* TODO: __raise_direct should not change errno and work during process
>> > + startup. */
>> > +weak_alias (raise, __raise_direct)
>>
>> Sam, Guy, could you help with this?
>
> Sure. But what point of "process startup" is that about? Are we sure
> that no pthread was created so it's really only to be sent to the
> process, for instance?
It's for an internal assertion failure during static process startup.
The dynamic linker currently redefines __assert_fail to something that
does not use signals (see elf/dl-minimal.c). However, we should
probably generate coredumps for ld.so assertion failures, too, so I
would like to change that eventually.
More information about the Libc-alpha
mailing list