Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Exception CPAN distribution.

Report information
The Basics
Id: 55179
Status: resolved
Priority: 0/
Queue: Test-Exception

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

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



Subject: Carp::Heavy Errors when using Test::Exceptino
Here are some of the errors found on my system when testing Carp::Disgnostics (I get the errors with other modules but that one may be small enough to make it suitable for tests) Bizarre copy of ARRAY in sassign at /usr/lib64/perl5/5.10.1/Carp/Heavy.pm line 104. panic: attempt to copy freed scalar 1ad5ac0 to 1ccee98 at /usr/lib64/perl5/5.10.1/Carp/Heavy.pm line 104 Bizarre copy of HASH in sassign at /usr/lib64/perl5/5.10.1/Carp/Heavy.pm line 104 This happened when I update my system perl to 5.10 from 5.8.6. Replacing Test::Exception with Test::Exception::LessClever eliminates the above errors. Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=linux, osvers=2.6.31.1, archname=x86_64-linux uname='linux naquadim 2.6.31.1 #20 smp preempt sun sep 27 21:54:45 cest 2009 x86_64 intel(r) core(tm)2 quad cpu @ 2.66ghz genuineintel gnulinux ' config_args='-des -Duseshrplib -Darchname=x86_64-linux -Dcc=x86_64-pc-linux-gnu-gcc -Doptimize=-march=core2 -O2 -pipe -Dscriptdir=/usr/bin -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dprivlib=/usr/lib64/perl5/5.10.1 -Darchlib=/usr/lib64/perl5/5.10.1/x86_64-linux -Dvendorlib=/usr/lib64/perl5/vendor_perl/5.10.1 -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux -Dsitelib=/usr/lib64/perl5/site_perl/5.10.1 -Dsitearch=/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.10.1 -Dlocincpth= -Duselargefiles -Dd_semctl_semun -Dinc_version_list=5.10.0 5.10.0/x86_64-linux -Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost -Dinstallusrbinperl=n -Ud_csh -Uusenm -Di_ndbm -Di_gdbm -Di_db -Dusrinc=/usr/include -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='x86_64-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-march=core2 -O2 -pipe', cppflags='-fno-strict-aliasing -pipe -fstack-protector' ccversion='', gccversion='4.3.4', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='x86_64-pc-linux-gnu-gcc', ldflags =' -fstack-protector' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.10.1.so, so=so, useshrplib=true, libperl=libperl.so.5.10.1 gnulibc_version='2.10.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -march=core2 -O2 -pipe -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Feb 18 2010 02:19:56 %ENV: PERL_AUTHOR_TESTING="1" PERL_MODULES_PATH="/devel/perl_modules" @INC: /usr/lib64/perl5/site_perl/5.10.1/x86_64-linux /usr/lib64/perl5/site_perl/5.10.1 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.10.1 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.10.1/x86_64-linux /usr/lib64/perl5/5.10.1 .
This is a genuine (fixable) bug in Test::Exception which makes it trigger a genuine (not easily fixable) bug in perl itself. Please release a fixed T::E as described here: http://rt.perl.org/rt3/Public/Bug/Display.html?id=52610#txn-713770 Cheers
From: obrien.jk [...] gmail.com
I'm also bitten by this. Would be terrific to see a fix. Test::Exception is a great module. J.
Subject: Re: [rt.cpan.org #55179] Carp::Heavy Errors when using Test::Exceptino
Date: Wed, 18 Aug 2010 07:57:27 +0200
To: bug-Test-Exception [...] rt.cpan.org
From: nadim khemir <nadim [...] khemir.net>
look at Test-Exception-LessClever that may save your day while a real solution is found
From: obrien.jk [...] gmail.com
Thanks for the tip. Yes, I found T:E:LC (after much googling) and also found that replacing throws_ok with eval {$test}; like( $@, qr/$error_string/ ); works. On Wed Aug 18 01:57:37 2010, nadim@khemir.net wrote: Show quoted text
> look at Test-Exception-LessClever that may save your day while a real > solution > is found
This should all be fixed in 0.30_1 wending its way to CPAN now. Adrian