[PATCH] elf: Keep using minimal malloc after early DTV resize (bug 32412)
Florian Weimer
fweimer@redhat.com
Thu Feb 13 21:14:44 GMT 2025
* DJ Delorie:
> Florian Weimer <fweimer@redhat.com> writes:
>> The support/ stuff isn't designed to be used from within auditors. The
>> error propagation may not work as expected.
>>
>> I don't think we need to document this within every test.
>
> Is it documented *somewhere* ?
It's mentioned in <support/check.h>, but it's somewhat buried:
/* Record a test failure. This function returns and does not
terminate the process. The failure counter is stored in a shared
memory mapping, so that failures reported in child processes are
visible to the parent process and test driver. This function
depends on initialization by an ELF constructor, so it can only be
invoked after the test driver has run. Note that this function
does not support reporting failures from a DSO. */
void support_record_failure (void);
I'm not entirely sure what the consequences are when the framework is
used from an auditor. Surely support_record_failure won't work. But
FAIL_EXIT1 and similar ways of process termination should probably
reveal the test failure. Full cleanup of temporary files will not run.
Thanks,
Florian
More information about the Libc-alpha
mailing list