Bug#315669: Followup on libcgi-session-perl bug

Martín Ferrari martin.ferrari at gmail.com
Thu May 22 03:35:01 UTC 2008


Hi,

while trying to isolate the described bug, I found that what was
happening is that Storable is causing Perl to segfault. I don't know
why aren't you seeing it, but I can consistently reproduce it as
described in http://bugs.debian.org/482355

With this short snippet I can make it fail:

perl -e 'use CGI; use CGI::Session; my $cgi = new CGI(); our $session
=  CGI::Session->new("driver:file;serializer:storable", $cgi,
{Directory=>"/tmp"});'

I'd suggest, as a workaround, to force your CGI::Session object to be
destroyed before the program ends. Also, as documented, you should be
calling flush() explictly. So this should solve your problem by now:

$session->flush();
undef $session;


Cheers, Tincho.
-- 
Martín Ferrari





More information about the pkg-perl-maintainers mailing list