Louis-David Mitterrand wrote:
[this message elicited no answers so far from mason-users, so maybe the
modperl community might be of help, thanks]
Hi,
Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a
segfault when using MasonX::Request::WithApacheSession:
[Sat May 17 16:14:55 2008] [notice] Apache/2.2.8 (Debian)
mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming
normal operations
[Sat May 17 16:15:03 2008] [notice] child pid 25786 exit signal
Segmentation fault (11)
[Sat May 17 16:15:11 2008] [notice] child pid 25788 exit signal
Segmentation fault (11)
[Sat May 17 16:15:12 2008] [notice] child pid 25789 exit signal
Segmentation fault (11)
Did you rebuild mod_perl and libapreq with perl 5.10?
etc...
I marked the problematic handler.pl block with comments:
my $ah = new HTML::Mason::ApacheHandler(
autohandler_name=>'ah.mc',
dhandler_name=>'dh.mc',
comp_root=>'/var/www',
data_dir=>'/tmp/mason',
error_mode=>'output',
args_method=>'mod_perl',
## When commented out perl 5.10 works fine
request_class => 'MasonX::Request::WithApacheSession',
session_class => 'Apache::Session::Postgres',
session_data_source => 'dbi:Pg:dbname=sessions',
session_user_name => '',
session_password => '',
session_use_cookie => 1,
session_cookie_expires => undef,
## When commented out perl 5.10 works fine
);
When using a vanilla request_class all is well, but then I have to roll
my own %session object (which is not a huge problem).
I upgraded to libmasonx-request-withapachesession-perl_0.31-1_all.deb
with no difference.
Does someone have an idea about that segfault?
Thanks,
--
Red Hot Penguin Consulting LLC
mod_perl/PostgreSQL consulting and implementation
http://www.redhotpenguin.com/