Front page | perl.perl5.porters |
Postings from July 2008
[perl #56908] DBI memory leak
Thread Next
From:
lav@yar.ru
Date:
July 14, 2008 08:13
Subject:
[perl #56908] DBI memory leak
# New Ticket Created by lav@yar.ru
# Please include the string: [perl #56908]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56908 >
This is a bug report for perl from lav@yar.ru,
generated with the help of perlbug 1.36 running under perl 5.10.0.
-----------------------------------------------------------------
[Please enter your report here]
Under perl-5.10.0 the following simple program leaks memory,
while under perl-5.8.8 it does not. DBI module version is the
same under both perl versions (1.605). The leak seems to be not
specific to DBD driver, as it also happens with mysql and
oracle drivers.
use DBI;
my $dbh=DBI->connect('DBI:NullP:');
while(1) {
my $q=$dbh->prepare(q{select 1 from dual});
}
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl 5.10.0:
Configured by lav at Thu May 29 18:31:21 MSD 2008.
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi
uname='sunos night 5.8 generic_117350-39 sun4u sparc '
config_args='-Dprefix=/usr/local/perl-5.10.0 -Doptimize=-O2 -Dusethreads -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.3.0', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl 5.10.0:
/usr/local/perl-5.10.0/lib/5.10.0/sun4-solaris-thread-multi
/usr/local/perl-5.10.0/lib/5.10.0
/usr/local/perl-5.10.0/lib/site_perl/5.10.0/sun4-solaris-thread-multi
/usr/local/perl-5.10.0/lib/site_perl/5.10.0
.
---
Environment for perl 5.10.0:
HOME=/root
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH=/ORACLE/app/oracle/product/9.2.0.1/lib:/usr/lib:/usr/openwin/lib:/usr/openwin/server/lib:/usr/dt/lib:/usr/local/lib
LOGDIR (unset)
PATH=/ORACLE/app/oracle/product/9.2.0.1/bin:/usr/local/bin:/opt/bin:/bin:/sbin:/usr/sbin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #56908] DBI memory leak
by lav@yar.ru