Hello Is this a known & fixed bug? by,e -christian- -- Christian Hammers WESTEND GmbH - Aachen und Dueren Tel 0241/701333-0 [EMAIL PROTECTED] Internet & Security for Professionals Fax 0241/911879 WESTEND ist CISCO Systems Partner - Premium Certified
Package: libdbi-perl Version: 1.14-4 Severity: important Severity motivation: consistent memory leak, making prolonged use of a construct recommended by the manpage difficult. The following code leaks memory for each invocation of "sub flub": #! /usr/bin/perl -w use strict; use DBI; my $dbh = DBI->connect('DBI:Pg:dbname=template1','jdassen', undef, {RaiseError => 1}); #my $dbh = DBI->connect('DBI:CSV:f_dir=/tmp', undef, undef, {RaiseError => 1}); sub flub() { local $dbh->{RaiseError}; # This construct is recommended by DBI(3pm) } while (1) { flub(); }; The memory leak appears to be independent of the specific DBD used, and appears to be DBI specific (attempts to reproduce it by using the "local" construct on a regular hash, rather than a DBI database handler, failed). -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux odin 2.4.2-ac20 #2 Mon Mar 19 13:09:48 CET 2001 i686 Versions of packages libdbi-perl depends on: ii libc6 2.2.2-1 GNU C Library: Shared libraries an ii perl 5.6.0-21 Larry Wall's Practical Extracting ii perl-base [perlapi-5.6.0] 5.6.0-21 The Pathologically Eclectic Rubbis