Posted on 2005-07-06 21:10:29-07 by snakeyes
Errors with Apache::Session::MySQL
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.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.