Subject: | Fails tests on _DDEBUGGING perls <= 5.10.0 |
On perls before 5.10.1 (5.10.0 is affected as well) -DDEBUGGING causes
emission of different error messages, which ends up (spuriously) failing
a test. See test results, and perl -V below:
PERL_DL_NONLAZY=1 /home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/01hash_basic................ok
t/02hash_accessor.............ok
t/03hash_predicate............ok
t/04hash_chained..............ok
t/05hash_replace..............ok
t/06hash_constructor..........ok
t/07hash_boolean..............ok
t/08hash_entersub.............ok
t/09hash_use_hash.............ok
t/10hash_lvalue...............ok
t/31array_basic...............ok
t/32array_accessor............ok
t/33array_predicate...........ok
t/34array_chained.............ok
t/35array_replace.............ok
t/36array_constructor.........ok
t/37array_boolean.............ok
t/38array_use_hash............ok
t/39array_lvalue..............ok
t/40hash_bad_call.............ok 1/13
# Failed test at t/40hash_bad_call.t line 39.
t/40hash_bad_call.............NOK 8/13# 'Usage:
Class::XSAccessor::accessor_init(self, ...) at t/40hash_bad_call.t line 36.
# '
# doesn't match '(?-xism:Usage: (Hash::)?foo\(self, \.\.\.\) )'
# Failed test at t/40hash_bad_call.t line 43.
t/40hash_bad_call.............NOK 9/13# 'Usage:
Class::XSAccessor::accessor_init(self, ...) at t/40hash_bad_call.t line 41.
# '
# doesn't match '(?-xism:Usage: (Hash::)?bar\(self, \.\.\.\) )'
# Looks like you failed 2 tests of 13.
t/40hash_bad_call.............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 8-9
Failed 2/13 tests, 84.62% okay
t/41array_bad_call............ok
t/50reentrant_goto_sigsegv....ok
t/70bad_arguments.............ok
t/80threadbomb................skipped
all skipped: Perl not compiled with 'useithreads'
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/40hash_bad_call.t 2 512 13 2 8-9
1 test skipped.
Failed 1/24 test scripts. 2/454 subtests failed.
Files=24, Tests=454, 1 wallclock secs ( 0.54 cusr + 0.08 csys = 0.62 CPU)
Failed 1/24 test programs. 2/454 subtests failed.
make: *** [test_dynamic] Error 255
FAIL
! Installing Class::XSAccessor failed. See /home/rabbit/.cpanm/build.log
for details.
rabbit@Thesaurus:~$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=3.1.0-1-amd64, archname=x86_64-linux
uname='linux thesaurus 3.1.0-1-amd64 #1 smp tue jan 10 06:25:07 utc
2012 x86_64 gnulinux '
config_args='-de
-Dprefix=/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1 -DDEBUGGING'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.6.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib
/usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.13'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Feb 10 2012 17:39:56
%ENV:
PERL5LIB="/home/rabbit/devel/utils/perl:/home/rabbit/devel/distar/lib:"
PERLBREW_HOME="/home/rabbit/.perlbrew"
PERLBREW_PATH="/home/rabbit/perl5/perlbrew/bin:/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/bin"
PERLBREW_PERL="5.10.0_dbg1"
PERLBREW_ROOT="/home/rabbit/perl5/perlbrew"
PERLBREW_VERSION="0.27"
PERL_AUTOINSTALL_PREFER_CPAN="1"
PERL_CPANM_OPT="--verbose --no-interactive"
@INC:
/home/rabbit/devel/utils/perl
/home/rabbit/devel/distar/lib
/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/5.10.0/x86_64-linux
/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/5.10.0
/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/site_perl/5.10.0/x86_64-linux
/home/rabbit/perl5/perlbrew/perls/5.10.0_dbg1/lib/site_perl/5.10.0
.