Hi,
On one of our server, when running CGI scripts we receive segmentation fault error.
The error.log reported " Premature end of script headers: " . But suexec.log reports no error at all.
When executed the script on command line I received " Segmentation fault error".
# perl test5.pl
Segmentation fault
I have tried the same code on a CPanel server and is working fine.
The sample code is as below.
----------------------------------------------------
"
#!/usr/bin/perl
use strict;
use CGI::Carp qw/fatalsToBrowser/;
use LWP;
my $url = "https://www.xxxx.com/signup";
my $agent = LWP::UserAgent->new;
my $request = HTTP::Request->new(GET => $url);
my $response = $agent->request($request);
$response->is_success or die "$url: ", $response->message, "\n";
print $response->content;
"
I think the error is shown when it parses the line " my $request = HTTP::Request->new(GET => $url);"
----------------------------------------
Any help please.
Thanks,
Mahesh.
On one of our server, when running CGI scripts we receive segmentation fault error.
The error.log reported " Premature end of script headers: " . But suexec.log reports no error at all.
When executed the script on command line I received " Segmentation fault error".
# perl test5.pl
Segmentation fault
I have tried the same code on a CPanel server and is working fine.
The sample code is as below.
----------------------------------------------------
"
#!/usr/bin/perl
use strict;
use CGI::Carp qw/fatalsToBrowser/;
use LWP;
my $url = "https://www.xxxx.com/signup";
my $agent = LWP::UserAgent->new;
my $request = HTTP::Request->new(GET => $url);
my $response = $agent->request($request);
$response->is_success or die "$url: ", $response->message, "\n";
print $response->content;
"
I think the error is shown when it parses the line " my $request = HTTP::Request->new(GET => $url);"
----------------------------------------
Any help please.
Thanks,
Mahesh.