This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Trap SIGBUS when Configure checks for va_copy (#18148)
authorH.Merijn Brand <perl5@tux.freedom.nl>
Tue, 22 Sep 2020 11:14:51 +0000 (13:14 +0200)
committerH.Merijn Brand <perl5@tux.freedom.nl>
Tue, 22 Sep 2020 11:14:51 +0000 (13:14 +0200)
commitdc54b0a7b282b5f3dcd1a0920ef7943113562fd5
treec94b92a788c1c91fb92c9a621902b431f06b8ece
parent97c4f810a142aad38e32c1d0263158f61c7fee08
Trap SIGBUS when Configure checks for va_copy (#18148)

On several systems the attempt to determine if we &quot;need va_copy() or
similar&quot; 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@
U/perl/need_va_copy.U