On Mon Nov 22 07:04:15 2010, OPI wrote:
Show quoted text> Do you use selinux? What puzzles me is the exit code 9. That means the
> process has been killed by a SIGKILL. The test suite itself uses a
> SIGKILL to terminate a subprocess. But that comes much later. Also, here
> the main process is killed by SIGKILL. I know selinux does such things.
Actually I don't know. It's vps with Ubuntu 10.4 in OpenVZ environment. But I'll ask
vps-provider.
Show quoted text> In t/Linux-Smaps.t you find these lines of code:
>
> 33 SKIP: {
> 34 skip "Your kernel lacks /proc/PID/smaps support", 8
> 35 unless( -r '/proc/self/smaps' );
> 36
> 37 $s=Linux::Smaps->new;
> 38
> 39 $old=Linux::Smaps->new;
>
> I suspect it gets killed in line 37 by selinux.
You are right. I checked it with some debug print and yes - it gets killed in line 37.
Show quoted text> If that is not the case please provide the output of "perl -V", the
> output of "cat /proc/self/smaps" and rerun the tests in verbose mode:
And as I said before with 'use bignum qw/hex/;' it seems that module works
correctly.
Output of 'perl -V' and 'cat /proc/self/smaps' attached.
Show quoted text> make test TEST_VERBOSE=1
===
vps5:/tmp/Linux-Smaps-0.06$ make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/Linux-Smaps.t ..
1..35
ok 1 - use Linux::Smaps;
ok 2 - VMA method "size" unknown before first smaps file read
ok 3 - Smaps method "shared_dirty" unknown before first smaps file read
ok 4 - VMA method "size" known after first smaps file read
ok 5 - Smaps method "shared_dirty" known after first smaps file read
ok 6 - summary size
ok 7 - summary rss
ok 8 - summary shared_clean
ok 9 - summary shared_dirty
ok 10 - summary private_clean
ok 11 - summary private_dirty
ok 12 - summary referenced
Integer overflow in hexadecimal number at /tmp/Linux-Smaps-
0.06/blib/lib/Linux/Smaps.pm line 83, <$f> line 369.
# Looks like you planned 35 tests but ran 12.
# Looks like your test exited with 9 just after 12.
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 23/35 subtests
Test Summary Report
-------------------
t/Linux-Smaps.t (Wstat: 2304 Tests: 12 Failed: 0)
Non-zero exit status: 9
Parse errors: Bad plan. You planned 35 tests but ran 12.
Files=1, Tests=12, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.06 cusr 0.00 csys =
0.09 CPU)
Result: FAIL
Failed 1/1 test programs. 0/12 subtests failed.
make: *** [test_dynamic] Error 9
===