Subject: | segfault when using file and storable serializer |
When using the following code, the program segfaults during object destruction.
---
#! /usr/bin/perl
use strict;
use CGI::Session::File;
my $session = new CGI::Session("driver:File;serializer:Storable", undef, {Directory => '/tmp/'});
sub skip_this{
$session->debug();
}
print "done\n";
---
I found that if I used the default or FreezeThaw serializer it would not setfault. This initially led me to believe it might be the serializer, however, if I use a mysql store and the Storable serializer it does not segfault.
So, I'm not sure if it is the serializer or the storage mechanism, or something else. That is why I'm posting this under CGI::Session instead of CGI::Session::File...
I tried to reduce the problem further, but I've not been able to cause the Storable module (used in CGI::Session::File for freeze/thawing) itself to segfault and the fact that it works for the mysql driver also leads me to think it is somewhere in the session code.
Thanks,
--Phillip