Kyle R . Burton on Thu, 28 Feb 2002 16:47:22 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Help, LWP::UserAgent and Devel::DProf incompatible?


> I'm trying to profile code by using Devel::DProf.  The code happens to also
> be making use of LWP::UserAgent.  For some reason when I run code by itself,
> it runs fine.  When it run it with Devel::DProf, it fails.  Running it 
> like this:

Er, I meant:

  When I run the code by itself it runs fine.  For some reason, when
  I run it ith Devel::DProf it fails.

My co-worker is still laughing at me as I write this :^)

Kyle

>   perl -d:Dprof test.pl
> 
> causes a segfault.  Running it like this:
> 
>   perl -d -MDevel::DProf test.pl
> 
> at least lets it run, but LWP::UserAgent seems to immeadly return a 500
> error with the message:
> 
>   500 Can't report tag lists yet
> 
> My perl -v indicates that I've got: v5.6.1 
> 
> 
> Are there well known incompatabilities between LWP and DProf that I just
> don't know about?
> 
> Does anyone know anything that might be able to help?
> 
> 
> Thanks for your help,
> Kyle
> 
> 
> ################################################################################
> #!/usr/bin/perl 
> use strict;
> use warnings;
> use Carp;
> use LWP::UserAgent;
> $|++;
> my $ua = LWP::UserAgent->new();
> 
> my $x = 100;
> print "fetching $x copies of index.html.";
> for( 1 .. $x ) {
>   my $res = $ua->request( HTTP::Request->new('GET','http://localhost/') );
>   unless( $res->is_success() ) {
>     confess $res->error_as_HTML(),"\n";
>   }
>   print '.';
> }
> print "done\n";
> ################################################################################
> 
> -- 
> 
> ------------------------------------------------------------------------------
> Wisdom and Compassion are inseparable.
>         -- Christmas Humphreys
> mortis@voicenet.com                            http://www.voicenet.com/~mortis
> ------------------------------------------------------------------------------
> **Majordomo list services provided by PANIX <URL:http://www.panix.com>**
> **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**

-- 

------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
        -- Christmas Humphreys
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**