Skip Menu |

This queue is for tickets about the Linux-Prctl CPAN distribution.

Report information
The Basics
Id: 77581
Status: resolved
Priority: 0/
Queue: Linux-Prctl

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: t/ptracer.t fail with recent linux
$ make -j24 test PERL_DL_NONLAZY=1 /usr/bin/perl5.16.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-use.t ........ ok t/02-constants.t .. ok t/capabilities.t .. ok t/capbset.t ....... ok t/dumpable.t ...... ok t/endian.t ........ ok t/fpemu.t ......... ok t/fpexc.t ......... ok t/mce_kill.t ...... ok t/name.t .......... ok t/pdeathsig.t ..... ok # Failed test 'Setting ptracer to 1 (init)' # at t/ptracer.t line 9. # got: '-1' # expected: '0' # Looks like you failed 1 test of 2. t/ptracer.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/secbits.t ....... ok t/seccomp.t ....... ok t/timerslack.t .... ok t/timing.t ........ ok t/tsc.t ........... ok t/unalign.t ....... ok Test Summary Report ------------------- t/ptracer.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=18, Tests=510, 1 wallclock secs ( 0.09 usr 0.04 sys + 0.38 cusr 0.05 csys = 0.56 CPU) Result: FAIL Failed 1/18 test programs. 1/510 subtests failed. make: *** [test_dynamic] Error 255
Subject: Re: [rt.cpan.org #77581] t/ptracer.t fail with recent linux
Date: Sat, 02 Jun 2012 22:29:27 +0200
To: bug-Linux-Prctl [...] rt.cpan.org
From: Dennis Kaarsemaker <dennis [...] kaarsemaker.net>
Ah, i see they merged yama into mainline now. I guess your kernel is newer than 2d514487faf188938a4ee4fb3464eeecfbdcf8eb (likely linux 3.4) and you built without yama support (CONFIG_SECURITY_YAMA=n). Can you confirm this?
On Sat Jun 02 16:29:40 2012, dennis@kaarsemaker.net wrote: Show quoted text
> Ah, i see they merged yama into mainline now. I guess your kernel is > newer than 2d514487faf188938a4ee4fb3464eeecfbdcf8eb (likely linux 3.4) > and you built without yama support (CONFIG_SECURITY_YAMA=n). Can you > confirm this?
$ uname -a Linux igor 3.4.1-desktop-0.rc1.1.mga3 #1 SMP Mon May 28 06:43:04 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux $ zgrep YAMA /proc/config.gz # CONFIG_SECURITY_YAMA is not set
Subject: Re: [rt.cpan.org #77581] t/ptracer.t fail with recent linux
Date: Tue, 05 Jun 2012 19:09:32 +0200
To: bug-Linux-Prctl [...] rt.cpan.org
From: Dennis Kaarsemaker <dennis [...] kaarsemaker.net>
Could you try the patch at https://github.com/seveas/Linux-Prctl/commit/febf6e713aa6790e215c9ea97fc048623b21cf76.patch This should skip the test for you. As I don't have a machine on 3.4 but without YAMA, I cannot test it myself.
Show quoted text
> This should skip the test for you. As I don't have a machine on 3.4 > but without YAMA, I cannot test it myself.
this patch fixes the problem, thanks!
I just uploaded 1.5.0 to CPAN, which includes this fix. Thanks for your report!