Grokbase Groups Perl qa October 2003
FAQ
After much research, I've managed to reduce a Devel::Cover bug down to a one-liner which only
fails on one box. This box is unique because it's ActiveState Perl for Linux (not my choice!).
However, that might be a red herring. My 'perl -V' is below the test case. Does anyone have a
similar setup which they can check this against?

------------------------------

$ perl -MDevel::Cover -e 'local *{"foo"} = sub {}'
Devel::Cover 0.26: Collecting coverage data for branch, condition, statement, subroutine and time.
Pod coverage is unvailable. Please install Pod::Coverage from CPAN.
Selecting packages matching:
Ignoring packages matching:
Ignoring packages in:
.
/dp/usr/cxp/perl/lib
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux-multi
/usr/local/stow/perl-5.6.1-a633/lib/perl5/5.6.1
/usr/local/stow/perl-5.6.1-a633/lib/perl5/5.6.1/i686-linux-multi
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl/5.6.1
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl/5.6.1/i686-linux-multi
Can't locate object method "find_cv" via package "B::SPECIAL" (perhaps you forgot to load
"B::SPECIAL"?) at /usr/local/stow/perl-5.6.1-a633/lib/perl5/5.6.1/i686-linux-multi/B.pm line 213.
END failed--call queue aborted.

------------------------------
And the Perl -V
------------------------------

$ perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.9-e.3, archname=i686-linux-multi
uname='linux bulkmailer 2.4.9-e.3 #1 fri may 3 17:02:43 edt 2002 i686 unknown '
config_args='-d -O -Dinstallstyle=lib/perl5 -Dprefix=/usr/local/stow/perl-5.6.1-a633
-Uinstallusrbinperl -Dd_dosuid=define -Dotherlibdirs=/usr/local/lib/perl5/site_perl
-Dusemultiplicity'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)', 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, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
ActivePerl Build 633
Built under linux
Compiled at Mar 24 2003 17:43:39
%ENV:
PERL5LIB="/dp/usr/cxp/perl/lib"
@INC:
/dp/usr/cxp/perl/lib/i686-linux-multi
/dp/usr/cxp/perl/lib
/usr/local/stow/perl-5.6.1-a633/lib/perl5/5.6.1/i686-linux-multi
/usr/local/stow/perl-5.6.1-a633/lib/perl5/5.6.1
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl/5.6.1/i686-linux-multi
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl/5.6.1
/usr/local/stow/perl-5.6.1-a633/lib/perl5/site_perl
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux-multi
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl

------------------------------

Any ideas on where to look next?

Cheers,
Ovid

=====
Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Search Discussions

  • Ovid at Oct 13, 2003 at 9:47 pm
    FYI: I've managed to replicate this error on another ActiveState Perl linux box. The Perl -V
    information is the same, but the module list is quite a bit smaller. The only common element that
    I can find is ActiveState.

    Cheers,
    Ovid

    =====
    Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm
    Ovid http://www.perlmonks.org/index.pl?node_id=17000
    Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/

    __________________________________
    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search
    http://shopping.yahoo.com
  • Paul Johnson at Oct 13, 2003 at 9:48 pm

    On Mon, Oct 13, 2003 at 01:49:58PM -0700, Ovid wrote:

    After much research, I've managed to reduce a Devel::Cover bug down to
    a one-liner which only fails on one box. This box is unique because
    it's ActiveState Perl for Linux (not my choice!). However, that might
    be a red herring. My 'perl -V' is below the test case. Does anyone
    have a similar setup which they can check this against?
    I think the key is that it is perl version 5.6.1. I can reproduce the
    problem on a stock 5.6.1 on linux (well, hacked just enough to get it to
    build).

    Is there any chance that we can just say it is a bug in 5.6.1 that has
    been fixed? I think that is actually the case. Devel::Cover uses the B
    modules which were still a little immature in 5.6.1. The test works (in
    that the bug does not show) for 5.8.0, 5.8.1, maintperl and bleadperl.

    Actually, I wonder whether 5.6.1 should be supported or not. It
    generally works, but then you get cases like this. The results are also
    different between different versions of perl, and often it is 5.6.1 and
    the rest. But this is a problem which will only get worse.

    In any case, thanks a lot for tracking this down. I'm sure it wasn't
    trivial.

    --
    Paul Johnson - paul@pjcj.net
    http://www.pjcj.net
  • Ovid at Oct 13, 2003 at 9:58 pm

    --- Paul Johnson wrote:
    I think the key is that it is perl version 5.6.1. I can reproduce the
    problem on a stock 5.6.1 on linux (well, hacked just enough to get it to
    build).
    Hmmm ... I saw this *after* my second ActiveState email.
    Actually, I wonder whether 5.6.1 should be supported or not.
    I think that 5.6.1 is widespread enough that you might lose much of your intended audience if it's
    not supported. I know that I currently have a project at work that involves code coverage stats,
    but this is part of our plan to migrate to 5.8.1. We don't *need* this information, but it would
    be very helpful.
    In any case, thanks a lot for tracking this down. I'm sure it wasn't
    trivial.
    Not a problem. Devel::Cover has been part of my plan for fixing some serious problems at work.
    I've been hoping to use to help us figure out how much old code we have so we can delete it and
    start refactoring from a cleaner code base.

    I'll dig some more and see if I can come up with a workaround.

    Cheers,
    Ovid

    =====
    Silence is Evil http://users.easystreet.com/ovid/philosophy/indexdecency.htm
    Ovid http://www.perlmonks.org/index.pl?node_id=17000
    Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/

    __________________________________
    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search
    http://shopping.yahoo.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupqa @
categoriesperl
postedOct 13, '03 at 8:50p
activeOct 13, '03 at 9:58p
posts4
users2
websiteqa.perl.org

2 users in discussion

Ovid: 3 posts Paul Johnson: 1 post

People

Translate

site design / logo © 2017 Grokbase