develooper Front page | perl.perl5.porters | Postings from April 2003

debugging help required

Thread Next
Arthur Bergman
April 18, 2003 04:22
debugging help required
Message ID:

I am having trouble debugging a little script.

use threads;

use strict;
use LWP::UserAgent;
     use LWP::Debug qw(trace);
    my $ua = LWP::UserAgent->new;
     my $request = HTTP::Request->new(GET => "");
     my $blah = $ua->request($request);
my $thread = async {
    #segfaults in perl_clone
    # my $ua = LWP::UserAgent->new;
    # my $request = HTTP::Request->new(GET => "");
    # my $blah = $ua->request($request);
     return 1;

The function that makes us die is the $ua->request() function, 
SOMEWHERE in there this SV is created:

SV = UNKNOWN(0x98) (0x81a86e8) at 0xbffff824
   REFCNT = 2

It seems to live in the pad of some subroutine. The core dump is when 
sv_dup tries to dup this sv.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About