perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis-David Mitterrand <vindex+lists-modp...@apartia.org>
Subject Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession
Date Mon, 19 May 2008 14:34:24 GMT
On Mon, May 19, 2008 at 10:31:06AM -0400, Perrin Harkins wrote:
> On Mon, May 19, 2008 at 5:12 AM, Louis-David Mitterrand
> >                        ## 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
> 
> My guess would be that your Postgres driver has a problem.  Try
> running some Pg queries from Mason.

I thought about that too, but declaring in my handler.pl:

	sub handler {
	....

	$HTML::Mason::Commands::dbc = DBI->connect("dbi:Pg:dbname=critik", "",
				"", {RaiseError=>1, PrintError=>1, AutoCommit=>1});
	....
	}

and using $dbc in my mason code works fine.

Mime
View raw message