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:17:11 +0000 (13:17 +0200)
committerH.Merijn Brand <perl5@tux.freedom.nl>
Tue, 22 Sep 2020 11:17:11 +0000 (13:17 +0200)
commitbec07c3af574f0f22a318c6273a2c4f29afc1251
tree2d42a67d8caa85b56ce34d132502b12449866423
parent2adfde9e14b336c8266d84ba513fb119f028c1ab
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@
Configure