We should backport this upstream commit: commit fd78cfa72ea2bab30fdb4e1e0672b34471426c05 Author: Vitaly Buka <vitalybuka> Date: Sat Feb 18 12:53:41 2023 -0800 stdlib: Undo post review change to 16adc58e73f3 [BZ #27749] Post review removal of "goto restart" from https://sourceware.org/pipermail/libc-alpha/2021-April/125470.html introduced a bug when some atexit handers skipped. Signed-off-by: Vitaly Buka <vitalybuka> Reviewed-by: Adhemerval Zanella <adhemerval.zanella>