https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735
--- Comment #11 from David Malcolm <dmalcolm at gcc dot gnu.org> --- FWIW I just noticed that your reproducer is wrong (I think) whilst trying to implement sigaction: if you're going to use sa_sigaction for the function pointer (rather than sa_handler), you have to set the SA_SIGINFO bit within sa_flags; see: https://www.man7.org/linux/man-pages/man2/sigaction.2.html https://linux.die.net/man/2/sigaction