Click here to get back home

"Devel::DProf" on a PERL script uses "Test::More"

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
"Devel::DProf" on a PERL script uses "Test::More" Tom 12-05-2005
Posted by Tom on December 5, 2005, 5:36 pm
Please log in for more thread options


Dear all,

I encountered a problem while run profiling on a script which uses
"Test::More". May I ask whether anybody have some idea or wrap around
solution?

perl -d:DProf test.pl

Tom


Errror
-------
panic: Devel::DProf inconsistent subroutine return at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/threads/shared.pm line 18.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/threads/shared.pm line 35.
Compilation failed in require at /usr/lib/perl5/5.8.5/Test/Builder.pm
line 21.
BEGIN failed--compilation aborted at
/usr/lib/perl5/5.8.5/Test/Builder.pm line 28.
Compilation failed in require at /usr/lib/perl5/5.8.5/Test/More.pm line
6.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.5/Test/More.pm
line 6.



Posted by Henry McGuinness on December 6, 2005, 2:14 pm
Please log in for more thread options


Well, I'm just learning to use these 2 modules, but in the docs for DProf
(for perl 5.8.7, this note wasn't there a couple of Perl versions ago) it
says, under "Bugs":

"Another problem is that if(3,n) a subroutine exits using goto(LABEL),
last(LABEL) or next(LABEL) then perl may crash or Devel::DProf will die
with the error:

panic: Devel::DProf inconsistent subroutine return

For example, this code will break under Devel::DProf:

sub foo {
last FOO;
}
FOO: {
foo();
}

A pattern like this is used by Test::More's skip() function, for
exam-
ple. See perldiag for more details."


HTH
Henry

> Dear all,
>
> I encountered a problem while run profiling on a script which uses
> "Test::More". May I ask whether anybody have some idea or wrap around
> solution?
>
> perl -d:DProf test.pl
>
> Tom




Posted by Tom on December 7, 2005, 6:15 pm
Please log in for more thread options


Thanks a lot.

I will investigate deeper in this direction. :)



Similar ThreadsPosted
[RFC] Devel::Dependencies January 4, 2006, 7:47 am
Devel::StackTrace November 16, 2006, 9:06 am
Need to test this Captcha on somebody's Perl December 9, 2005, 1:52 pm
WARNING do not install Devel::Fail::MakeTest February 11, 2005, 7:53 am
make test failing on Berkeley DB 4.5/perl 5.8 (and 5.6) on BSD6/AMD64 November 29, 2006, 4:44 pm
Understanding the Devel::Cover module generated reports August 17, 2004, 12:10 pm
Devel::Cover failing with 'bizarre copy of hash in leave' error October 21, 2004, 2:09 pm
Executables out of perl script? April 20, 2006, 7:30 am
Executables out of perl script? April 20, 2006, 7:30 am
Executables out of perl script? April 20, 2006, 7:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap