Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > ActiveState Perl crashs, why ?

Reply
Thread Tools

ActiveState Perl crashs, why ?

 
 
perl
Guest
Posts: n/a
 
      10-24-2006
Hello,

when i run my little perl script, Perl crashes (using Win2000+ActiveState
Perl 5.8..
I have no idea why.

Here the little script:
---------------------------------
#!/usr/bin/perl -w

use LWP::UserAgent;
use strict;

my $url = "http://www.google.de";
my $ua = LWP::UserAgent->new(); # create virtual browser
$ua->agent("someagent/v 0.1a"); # giving browser a name

my $req = HTTP::Request->new(GET => $url);
my $webpage = $ua->request($req);

if ($webpage->is_success){ print $webpage->content;}
else {print $webpage->status_line, "\n";}
-----------------------------------

It works under Linux, so there should be no reason to crash. I discovered
that the crash happens, when GET is called.


 
Reply With Quote
 
 
 
 
Sisyphus
Guest
Posts: n/a
 
      10-24-2006

"perl" <> wrote in message
news:ehla17$nto$...
> Hello,
>
> when i run my little perl script, Perl crashes (using Win2000+ActiveState
> Perl 5.8..
> I have no idea why.
>
> Here the little script:
> ---------------------------------
> #!/usr/bin/perl -w
>
> use LWP::UserAgent;
> use strict;
>
> my $url = "http://www.google.de";
> my $ua = LWP::UserAgent->new(); # create virtual browser
> $ua->agent("someagent/v 0.1a"); # giving browser a name
>
> my $req = HTTP::Request->new(GET => $url);
> my $webpage = $ua->request($req);
>
> if ($webpage->is_success){ print $webpage->content;}
> else {print $webpage->status_line, "\n";}
> -----------------------------------
>


Can't reproduce the problem. That script works fine for me using ActiveState
perl 5.8.8 (build 817) on Windows 2000.

What exactly happens when "Perl crashes" ? Do you get any error messages ?

Cheers,
Rob


 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      10-24-2006
perl <> wrote:

> Perl crashes



What does "crashes" mean when you say it?

That is, what symptoms do you observe?


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
perl
Guest
Posts: n/a
 
      10-25-2006
> > when i run my little perl script, Perl crashes (using
Win2000+ActiveState
> > Perl 5.8..
> > I have no idea why.
> >
> > Here the little script:
> > ---------------------------------
> > #!/usr/bin/perl -w
> >
> > use LWP::UserAgent;
> > use strict;
> >
> > my $url = "http://www.google.de";
> > my $ua = LWP::UserAgent->new(); # create virtual browser
> > $ua->agent("someagent/v 0.1a"); # giving browser a name
> >
> > my $req = HTTP::Request->new(GET => $url);
> > my $webpage = $ua->request($req);
> >
> > if ($webpage->is_success){ print $webpage->content;}
> > else {print $webpage->status_line, "\n";}
> > -----------------------------------
> >

>
> Can't reproduce the problem. That script works fine for me using

ActiveState
> perl 5.8.8 (build 817) on Windows 2000.
>
> What exactly happens when "Perl crashes" ? Do you get any error messages ?



Thnx for your quick answer, Rob. The error message i got is the typical
popup window (translated from german):
perl.exe caused an error an will be closed. Start the program again. An
errrorprotocol is created.
Now that's really helpfull . I looked where the error could be stored,
but
i have not found it.

Fortunately i solved the problem. I was quite stupid. I detected an older
version of ActiveState Perl (5.6.1) which was also installed. I simply
removed both ones and reinstalled the actual 5.8.8. Now it seems to work.

I feel ashamed

Zed


 
Reply With Quote
 
Bart Lateur
Guest
Posts: n/a
 
      10-25-2006
perl wrote:

>The error message i got is the typical
>popup window (translated from german):
>perl.exe caused an error an will be closed.


Ouch. That sounds bad.

I think LWP is pure perl, otherwise I'd first think of an incompatible
DLL from a module somewhere.

Can you reproduce it, or not reproduce it, with other modules?

--
Bart.
 
Reply With Quote
 
perl
Guest
Posts: n/a
 
      10-27-2006
> >The error message i got is the typical
> >popup window (translated from german):
> >perl.exe caused an error an will be closed.

>
> Ouch. That sounds bad.
>
> I think LWP is pure perl, otherwise I'd first think of an incompatible
> DLL from a module somewhere.
>
> Can you reproduce it, or not reproduce it, with other modules?


I had the same kind of crash with XML:Twig. I first thought i was writing
really bad code, but i got suspicious when it also happend with LWP.

I cannot reproduce it anymore, since i solved the problem.


 
Reply With Quote
 
Sisyphus
Guest
Posts: n/a
 
      10-27-2006

"perl" <> wrote in message
..
..
> I detected an older
> version of ActiveState Perl (5.6.1) which was also installed. I simply
> removed both ones and reinstalled the actual 5.8.8. Now it seems to work.
>


Perl 5.6.1 and 5.8.8 are "binary incompatible". The error you reported is
fairly typical of what happens when the perl 5.8.8 executable finds a binary
built for perl 5.6.1 (or, conversely, when the perl 5.6.1 executable finds a
binary built for 5.8..

By removing the older version of perl, you've eliminated one way for a
"binary incompatibility" to arise

Cheers,
Rob


 
Reply With Quote
 
J. Gleixner
Guest
Posts: n/a
 
      10-27-2006
perl wrote:
>>> The error message i got is the typical
>>> popup window (translated from german):
>>> perl.exe caused an error an will be closed.

>> Ouch. That sounds bad.
>>
>> I think LWP is pure perl, otherwise I'd first think of an incompatible
>> DLL from a module somewhere.
>>
>> Can you reproduce it, or not reproduce it, with other modules?

>
> I had the same kind of crash with XML:Twig. [...]


Maybe if you tried XML::Twig it would have helped.
 
Reply With Quote
 
perl
Guest
Posts: n/a
 
      10-30-2006
> >>> The error message i got is the typical
> >>> popup window (translated from german):
> >>> perl.exe caused an error an will be closed.
> >> Ouch. That sounds bad.
> >>
> >> I think LWP is pure perl, otherwise I'd first think of an incompatible
> >> DLL from a module somewhere.
> >>
> >> Can you reproduce it, or not reproduce it, with other modules?

> >
> > I had the same kind of crash with XML:Twig. [...]

>
> Maybe if you tried XML::Twig it would have helped.


Ahm, that's what i was meaning of course


 
Reply With Quote
 
perl
Guest
Posts: n/a
 
      10-30-2006
> > I detected an older
> > version of ActiveState Perl (5.6.1) which was also installed. I simply
> > removed both ones and reinstalled the actual 5.8.8. Now it seems to

work.
> >

>
> Perl 5.6.1 and 5.8.8 are "binary incompatible". The error you reported is
> fairly typical of what happens when the perl 5.8.8 executable finds a

binary
> built for perl 5.6.1 (or, conversely, when the perl 5.6.1 executable finds

a
> binary built for 5.8..
>
> By removing the older version of perl, you've eliminated one way for a
> "binary incompatibility" to arise


I did not expect of such trouble having 2 different (incompatible) versions.
Good to know this.

Thank you,
Zed


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveState Perl and MinGW [was: Perl 5.14 Windows Strawberry Perl 64 bits] Dilbert Perl Misc 0 11-10-2011 02:20 PM
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Activestate Perl and original Perl both on Mac OS Tiger Jake Wiley Perl Misc 14 06-16-2005 10:12 PM
Boxed Perl or ActiveState Perl? Vittorio Perl Misc 3 04-02-2004 05:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57