Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Readonly CPAN distribution.

Report information
The Basics
Id: 18550
Status: resolved
Priority: 0/
Queue: Readonly

People
Owner: sanko [...] cpan.org
Requestors: Bernhard.Schmalhofer [...] biomax.de
Cc:
AdminCc:

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



Subject: Error when running under Devel::Cover
When running my regression test under Devel::Cover I run into a problem with Readonly. I have boiled it dowm to a small test script: Show quoted text
> perl --version
This is perl, v5.8.0 built for i686-linux ... Show quoted text
> perl readonly_devel_cover.pl
asdf Show quoted text
> perl -MDevel::Cover readonly_devel_cover.pl
Devel::Cover 0.55: Collecting coverage data for branch, condition, pod, statement, subroutine and time. Selecting packages matching: Ignoring packages matching: /Devel/Cover[./] Ignoring packages in: . /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/5.8.0 /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/5.8.0/i686-linux /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl/5.8.0 /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl/5.8.0/i686-linux Invalid tie at (eval 22)[/BioInformatics/soft/perl/lib/site_perl/5.8.0/Readonly.pm:338] line 9 Devel::Cover: Can't find file "blib/lib/Storable.pm": ignored. Devel::Cover: Writing coverage database to /mnt/MP1/BioInformatics/BPSDEVEL/cvs/products/ReqALLer2/ReqALLer.v2_2/runtime/cover_db/runs/1144231362.28647.57188 ---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ readonly_devel_cover.pl n/a n/a n/a n/a n/a n/a n/a Total n/a n/a n/a n/a n/a n/a n/a ---------------------------- ------ ------ ------ ------ ------ ------ ------ For now I have commented out my constants in my test scripts, but it would be nice to be able to use Readonly and Devel::Cover. Regards, Bernhard
On Wed Apr 05 06:05:46 2006, guest wrote: Show quoted text
> When running my regression test under Devel::Cover I run into a > problem > with Readonly. I have boiled it dowm to a small test script: >
> > perl --version
> > This is perl, v5.8.0 built for i686-linux > ... >
> > perl readonly_devel_cover.pl
> asdf
> > perl -MDevel::Cover readonly_devel_cover.pl
> Devel::Cover 0.55: Collecting coverage data for branch, condition, > pod, statement, subroutine and time. > Selecting packages matching: > Ignoring packages matching: > /Devel/Cover[./] > Ignoring packages in: > . > /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/5.8.0 > /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/5.8.0/i686-linux > /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl > /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl/5.8.0 > /mnt/MP1/BioInformatics/soft/perl5.8.0/lib/site_perl/5.8.0/i686- > linux > Invalid tie at (eval > 22)[/BioInformatics/soft/perl/lib/site_perl/5.8.0/Readonly.pm:338] > line 9 > > Devel::Cover: Can't find file "blib/lib/Storable.pm": ignored. > Devel::Cover: Writing coverage database to > /mnt/MP1/BioInformatics/BPSDEVEL/cvs/products/ReqALLer2/ReqALLer.v2_2/runtime/cover_db/runs/1144231362.28647.57188 > ---------------------------- ------ ------ ------ ------ ------ ------ > ------ > File stmt bran cond sub pod time > total > ---------------------------- ------ ------ ------ ------ ------ ------ > ------ > readonly_devel_cover.pl n/a n/a n/a n/a n/a n/a > n/a > Total n/a n/a n/a n/a n/a n/a > n/a > ---------------------------- ------ ------ ------ ------ ------ ------ > ------ > > > For now I have commented out my constants in my test scripts, > but it would be nice to be able to use Readonly and Devel::Cover. > > Regards, > Bernhard
Readonly croaks with 'Invalid tie' when it thinks Readonly-type ties are being made from outside of Readonly itself. It's an unfortunate paranoia check that really only trips us up when something modifies the value of caller() (Devel::Cover, Devel::NYTProf, etc. do this) and we're using a pre-v5.8.8 version of perl. If it were purely up to me, I'd downgrade it from croak to carp as it's not very useful and gives users no clue about *why* the tie is invalid but since it only really crops up on perl built before Jan 2006, I'll leave it alone. ...for now. :\ Thanks for the report, btw. Sorry it's taken so long (8 years!) for anyone to get back to you. -- Sanko Robinson sanko@cpan.org