|
I have been having some problems with generating sessions. After much inquiry, the code below seems to isolate and reliably reproduce the problem.
# set up the connection and all that
.....
for (my $i; $i < 100; $i++) {
my %session;
my $id;
tie %session, 'Apache::Session::MySQL', $id, {
Handle => $dbh,
LockHandle => $dbh,
};
$id = $session{_session_id};
print "$id\n";
}
.....
when this is run, every other iteration of the loop generates an error: *** malloc[2944]: error for object 0x30cf20: Incorrect checksum for freed object - object was probably modified after being freed; break at szone_error
I am really stumped on how to deal with this. Under modperl, this behavior seems to be causing intermittent segmentation fault crashes. Any pointers or ideas would be appreciated.
|