From: H.Merijn Brand Date: Tue, 22 Sep 2020 11:17:11 +0000 (+0200) Subject: Trap SIGBUS when Configure checks for va_copy (#18148) X-Git-Tag: v5.33.3~197 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/bec07c3af574f0f22a318c6273a2c4f29afc1251 Trap SIGBUS when Configure checks for va_copy (#18148) On several systems the attempt to determine if we "need va_copy() or similar" results in a SIGBUS instead of a SIGSEGV because the fault happens pointing at an io device address. While reviewing accounting logs during the OpenBSD system build, bluhm@ noticed a core dump and deraadt@ tracked it down. While researching it was discovered that this is a fairly common case in other systems as well. Original diff by deraadt@ --- diff --git a/Configure b/Configure index a01c409..e064b3f 100755 --- a/Configure +++ b/Configure @@ -21511,6 +21511,9 @@ int main(int ac, char **av) { signal(SIGSEGV, exit); +#ifdef SIGBUS + signal(SIGBUS, exit); +#endif myprintf("%s%cs all right, then\n", "that", '\''); exit(0);