Thanks for the suggestion. I tried it with prefork and the problem
still occurred. HOWEVER, I then decided to remove all modules down to a
minimal example, and discovered that the mere inclusion of the following
module:
use Test::MockObject;
was causing the segmentation fault after several su
I think I've been bitten by this too, years ago.
I *think* I solved it by switching to mpm_prefork, which was
unsatisfying, but adequate for my needs.
On Tue, Jan 3, 2012 at 5:21 PM, David Booth wrote:
> I tried redirecting stderr to /dev/null and it did not help:
> system("date >> $f 2> /dev/nu
I tried redirecting stderr to /dev/null and it did not help:
system("date >> $f 2> /dev/null");
I am using the worker processing model. Does it work for you (or anyone
else) without causing periodic child process segmentation faults?
On Tue, 2012-01-03 at 16:29 -0500, Daniel Risacher wrote:
> I
It's been a while since I looked at doing this, but IIRC it's fairly
dependent on the processing model that Apache is using. Are you
mpm_prefork, or mpm_worker?
Also, I found it was important to redirect stderr to /dev/null:
sub play {
system "/usr/bin/xmms -t 2> /dev/null";
}
On Tue, Jan
Josh Narins wrote:
How about a little perl string manipulation?
#my $a = 'key1=value1&key2=&key3=value3';
my $a = 'key1=value1&key2&key3=value3';
my $b = join "&", map { my $c = ($_ =~ m/(\S+)=(\S*)?/o) ? $_ : "$_=";
$c; } split "&", $a;
print "a= $a\nb= $b\n";
This is not a good idea becaus
> How about a little perl string manipulation?
>
> #my $a = 'key1=value1&key2=&key3=value3';
> my $a = 'key1=value1&key2&key3=value3';
>
> my $b = join "&", map { my $c = ($_ =~ m/(\S+)=(\S*)?/o) ? $_ : "$_=";
> $c; } split "&", $a;
>
> print "a= $a\nb= $b\n";
This is not a good idea because of HT
How about a little perl string manipulation?
#my $a = 'key1=value1&key2=&key3=value3';
my $a = 'key1=value1&key2&key3=value3';
my $b = join "&", map { my $c = ($_ =~ m/(\S+)=(\S*)?/o) ? $_ : "$_="; $c; }
split "&", $a;
print "a= $a\nb= $b\n";
-James
-Original Message-
From: Randolf Ri
> Tommaso Torti wrote:
> > Hi all,
> >
> > i'm using mod_perl in order to retrieve all keys from a POST request with:
> >
> > my $request = Apache2::Request->new($r);
> > my $data = $request->param();
> >
> > When i receive something like
> > key1=value1&key2=&key3=value3
> > $data contains all
I am trying to run a shell command from a mod_perl2 response handler.
It works properly for some number of HTTP requests, but sometimes it
fails (somewhat randomly) and I see in my Apache2 error log that one of
the Apache2 child processes has died with a segmentation fault.
For example, /var/log/
Hi Andrè
the input i'm receiving is not directly invoked from an html form, but
it could be built from java code or php or other sources i don't even
know.
So i can't use javascript to fix the problem ..
Thank you,
Tommaso Torti wrote:
Hi all,
i'm using mod_perl in order to retrieve all keys from a POST request with:
my $request = Apache2::Request->new($r);
my $data = $request->param();
When i receive something like
key1=value1&key2=&key3=value3
$data contains all 3 keys
but with
key1=value1&key2&key3=v
Hi all,
i'm using mod_perl in order to retrieve all keys from a POST request with:
my $request = Apache2::Request->new($r);
my $data = $request->param();
When i receive something like
key1=value1&key2=&key3=value3
$data contains all 3 keys
but with
key1=value1&key2&key3=value3
$data contains on
12 matches
Mail list logo