[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep-3.7.98-c9ac on AIX in 32-bit mode
From: |
Jim Meyering |
Subject: |
Re: grep-3.7.98-c9ac on AIX in 32-bit mode |
Date: |
Sun, 3 Jul 2022 11:11:53 -0700 |
On Sun, Jul 3, 2022 at 5:25 AM Bruno Haible <bruno@clisp.org> wrote:
>
> On AIX 7.1, with xlc compiler in 32-bit mode (CC="xlc -qthreaded -qtls"),
> "make check-expensive" produces 1 test failure:
>
> FAIL: long-pattern-perf
> =======================
...
> + base_ms=450
> ++ user_time_ 1 grep -f re-10x in
> ++ perl -le '
> my $expected_exit_status = $ARGV[0];
> shift @ARGV;
>
> system (@ARGV);
> my ($user, $system, $child_user, $child_system) = times;
>
> my $me = q(long-pattern-perf);
> $? == -1
> and die qq($me: failed to exec ") . join (" ", @ARGV) . qq(": $!\n);
> my $rc = $?;
> my $sig = ($rc & 127);
> $sig and die "$me: child died with signal $sig\n";
> $rc >>= 8;
> $rc == $expected_exit_status
> or die "$me: bad exit status: expected $expected_exit_status; got
> $rc\n";
>
> # Print milliseconds of child user time.
> $child_user *= 1000;
> print int ($child_user + 0.5)' 1 grep -f re-10x in
> grep: program error
> long-pattern-perf: child died with signal 6
...
Thanks for the report.
> On this platform, also 'test-c-stack' dumps core. Maybe that's related?
Could well be.
The latter grep instance with larger, 2MiB regex aborted,
while the one with a 200kB regex completed normally.
> In 64-bit mode, OTOH, all tests pass.
At least for now, I'm inclined to let this slide, since this test is
already marked as an expensive one and the 32-bit AIX platform feels
like a barely-relevant porting target.
grep-3.7.98-c9ac on Linux/s390x, Bruno Haible, 2022/07/03