Memory Leak in DBD::Mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libdbd-mysql-perl (Ubuntu) |
Fix Released
|
Undecided
|
Dave Morley |
Bug Description
Binary package hint: libdbd-mysql-perl
I think I found a memory leak in some point in Perl/Mysql infraestructure. I am not sure that if it is in DBD::mysql, general DBI or possible in libmysql-client, but it's very easy to reproduce the memory leak:
#!/usr/bin/perl
use strict;
use warnings;
use DBI; # DB interface with MySQL
while (1){
}
sub keep_alive_check {
my $dbh = DBI->connect(
undef $dbh;
}
If you run this script, it lost aprox 32bytes per second. I calculated that exactly lost 4 bytes per iteration. My library versions are:
Ubuntu Dapper (also tested with Debian Woody) with the same results.
/usr/local/
$VERSION = '3.0006';
/usr/lib/
$VERSION = '3.0002';
Please, if anybody knows something about this, contact me or post here some light to the problem.
Thanks.
Changed in libdbd-mysql-perl: | |
assignee: | nobody → davmor2-gmail |
status: | Unconfirmed → Fix Released |
Its fixed, at 16th Jun 2006. I found a reference for this leak in a maillist, please fix ASAP.
http:// www.nntp. perl.org/ group/perl. dbi.dev/ 4583
Thanks.