In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/977bf595c1bc70192c4fe5cb9d2a0053130146b1?hp=b99dfd93f5b9b7f9cde5b9fa259b66c2bc08bcf1>
- Log ----------------------------------------------------------------- commit 977bf595c1bc70192c4fe5cb9d2a0053130146b1 Author: David Mitchell <[email protected]> Date: Thu Apr 9 15:23:42 2015 +0100 skip t/op/dump.t under Address Sanitizer On my Fedora 20 system, when a process built with "clang -fsanitize=address" coredumps, some clever root process called abrt-install-ccpp-hook spends hours reading in zillions of zero bytes from stdin. I guess this is due to ASan storing instrumentation data at very high addresses, so the memory image of the dumping process consists of terrabytes of intervening zeroes. Whether the abrt system is doing doing something useful or is merely buggy, the net effect is that t/op/dump.t (which purposely does a coredump) causes the entire test harness to hang. This commit just makes t/op/dump.c skip tests if -fsanitize is in $Config{ccflags}. ----------------------------------------------------------------------- Summary of changes: t/op/dump.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/op/dump.t b/t/op/dump.t index a858643..1db1637 100644 --- a/t/op/dump.t +++ b/t/op/dump.t @@ -25,6 +25,9 @@ skip_all("only tested on devel builds") skip_all("no point in dumping on $^O") unless $^O =~ /^(linux|.*bsd|solaris)$/; +skip_all("avoid coredump under ASan") + if $Config{ccflags} =~ /-fsanitize=/; + # execute in a work directory so File::Temp can clean up core dumps my $tmp = tempdir(CLEANUP => 1); -- Perl5 Master Repository
