Skip Menu |

This queue is for tickets about the Safe CPAN distribution.

Report information
The Basics
Id: 103852
Status: open
Priority: 0/
Queue: Safe

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: DBOOK [...] cpan.org
ether [...] cpan.org
AdminCc:

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



Subject: t/safeload.t fails (with newer version.pm?)
t/safeload.t currently fails with the following output (various perl versions on various OSes): # Failed test 'Can load version.pm in a Safe compartment' # at t/safeload.t line 26. # Unable to create sub named "*Safe::Root0::version::vxs::numify" at /usr/perl5.14.4/lib/site_perl/5.14.4/amd64-freebsd/version.pm line 48. # Compilation failed in require at (eval 10) line 1. # BEGIN failed--compilation aborted at (eval 10) line 1. # Looks like you failed 1 test of 3. t/safeload.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests This could be related to version.pm; http://analysis.cpantesters.org/reports_by_field?distv=Safe-2.35;field=mod%3Aversion shows almost no PASS reports for version 0.9911 and 0.9912.
On 2015-04-21 07:13:56, SREZIC wrote: Show quoted text
> t/safeload.t currently fails with the following output (various perl > versions on various OSes): > > # Failed test 'Can load version.pm in a Safe compartment' > # at t/safeload.t line 26. > # Unable to create sub named "*Safe::Root0::version::vxs::numify" at > /usr/perl5.14.4/lib/site_perl/5.14.4/amd64-freebsd/version.pm line 48. > # Compilation failed in require at (eval 10) line 1. > # BEGIN failed--compilation aborted at (eval 10) line 1. > # Looks like you failed 1 test of 3. > t/safeload.t ....... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > > This could be related to version.pm; > http://analysis.cpantesters.org/reports_by_field?distv=Safe- > 2.35;field=mod%3Aversion shows almost no PASS reports for version > 0.9911 and 0.9912.
Another data point: this seems to happen only for perl <= 5.16.3. perl >= 5.18.0 does not show this kind of failure.
It's not *entirely* the fault of version.pm... on perl 5.8.8 (darwin), I downgraded version.pm to 0.9099 and: PERL_DL_NONLAZY=1 "/Users/ether/perl5/perlbrew/perls/8.8/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/arch', 'blib/arch')" t/*.t t/safenamedcap.t ... skipped: (no reason given) t/safeops.t ........ skipped: PERL_CORE unset t/safe2.t .......... ok t/safe3.t .......... ok t/safe1.t .......... ok # Failed test 'version objects rerooted' # at t/safeload.t line 29. # got: '' # expected: 'Safe::Root0::version' # Undefined subroutine &version::vxs::new called at (eval 18) line 1. # Looks like you failed 1 test of 3. t/safeload.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests t/saferegexp.t ..... ok # Failed test 'isa overridden in compartment' # at t/safeuniversal.t line 29. # got: undef # expected: 'pwned' # Looks like you failed 1 test of 6. t/safeuniversal.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests t/safesort.t ....... ok t/safeutf8.t ....... ok t/safewrap.t ....... ok Test Summary Report ------------------- t/safeload.t (Wstat: 256 Tests: 3 Failed: 1) Failed test: 2 Non-zero exit status: 1 t/safeuniversal.t (Wstat: 256 Tests: 6 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=11, Tests=97, 1 wallclock secs ( 0.05 usr 0.03 sys + 0.63 cusr 0.06 csys = 0.77 CPU) Result: FAIL Failed 2/11 test programs. 2/97 subtests failed. make: *** [test_dynamic] Error 255
On 2015-06-17 17:51:40, ETHER wrote: Show quoted text
> It's not *entirely* the fault of version.pm... on perl 5.8.8 (darwin), > I downgraded version.pm to 0.9099 and:
0.9099 does not exist, do you mean 0.9909?
On 2017-11-27 08:01:04, SREZIC wrote: Show quoted text
> On 2015-06-17 17:51:40, ETHER wrote:
> > It's not *entirely* the fault of version.pm... on perl 5.8.8 (darwin), > > I downgraded version.pm to 0.9099 and:
> > 0.9099 does not exist, do you mean 0.9909?
I surely must have. but that was 2 years ago so who knows :)