Alright, monks - I'm at a total loss and can't seem to find anyone who's seen this issue before and was hoping you all could help ...
I am trying to get a mod_perl2 app (I will detail the specifics here in a bit) running Devel::Cover while being tested with Apache::Test. From everything I've read from
Devel::Cover's POD to
different forums (one of many examples including the mod_perl mailing lists) it's supported and been done before, yet I keep running into wall after wall. Here's where I've gotten:
- I have Apache::Test working against my application, alone, with no problems
- I have Devel::Cover, alone, working with no problems; proper output and everything I would expect.
- Adding PerlSwitches -MDevel::Cover to my conf/extra_conf.in almost seems to work, but I get the following output:
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/trevor/Downloads/t/TEST -bugr
+eport -verbose=0
/usr/local/apache2/trevor/bin/httpd -d /home/trevor/Downloads/t -f /h
+ome/trevor/Downloads/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.2.9 (prefork MPM)
waiting 60 seconds for server to start: ..Devel::Cover 0.64: Collectin
+g coverage data for branch, condition, statement, subroutine and time
+.
Pod coverage is unavailable. Please install Pod::Coverage from CP
+AN.
Collecting under mod_perl/2.0.3
Selecting packages matching:
Ignoring packages matching:
/Devel/Cover[./]
Ignoring packages in:
.
/etc/perl
/usr/lib/perl/5.8.8
/usr/lib/perl5
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/share/perl/5.8.8
/usr/share/perl5
.[ error]
server has died with status 255 (please examine t/logs/error_log)
sh: line 1: 23494 Terminated /usr/bin/perl /home/trevor/D
+ownloads/t/TEST -bugreport -verbose=0
With the following in my error logs:
Undefined subroutine &main:: called.
END failed--call queue aborted.
Now, when compared to a normal
Devel::Cover output on the same server, I get:
Devel::Cover 0.64: Collecting coverage data for branch, condition, sta
+tement, subroutine and time.
Pod coverage is unavailable. Please install Pod::Coverage from CP
+AN.
Selecting packages matching:
Ignoring packages matching:
/Devel/Cover[./]
Ignoring packages in:
.
/etc/perl
/usr/lib/perl/5.8.8
/usr/lib/perl5
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/share/perl/5.8.8
/usr/share/perl5
ok 1
1..1
Devel::Cover: Writing coverage database to /home/trevor/Downloads/t/co
+ver_db/runs/1224700621.23673.54862
With that, and without stepping through every tedious line of code of mine, Test, Apache and Devel, I can only assume Devel::Cover is dying when trying to attach to the unit test with Aapche::Test embedded within it... but I don't know.
Has anyone ever ran into this before and/or have any ideas/hints/hacks for a solution?
System Stats
- Perl 5.8.8 standard Debian install
- Apache::Test v1.29, packaged with mod_perl 2.0.3
- Devel::Cover v0.64
- Debian v4.0
- ... I'm not sure what else you need, but feel free to ask
---------
perl -le '$.=[qw(104 97 124 124 116 97)];*p=sub{[@{$_[0]},(45)x 2]};*d=sub{[(45)x 2,@{$_[0]}]};print map{chr}@{p(d($.))}'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.