Package: libapt-pkg-perl
Version: 0.1.17
Severity: normal

Hello,

I've tried to use the AptPkg::Cache to receive information about all packages.
However this leads to a unacceptable grow of the memory usage (I killed
my script, short before it reached 200 MB).

The problem is easily reproducable by patching the apt-cache example:

# diff /usr/share/doc/libapt-pkg-perl/examples/apt-cache apt-cache-example.pl
30c30,35
< for my $pack (@ARGV)
---
> open(FH, "apt-cache pkgnames --no-all-names |");
> my @packages = <FH>;
> chomp(@packages);
> close FH;
>
> for my $pack (@packages)

Running this, you will see the memory growth (make sure to kill the 
script in time to avoid destabelizing your system!)

I am not sure if it is appropriate to file a bug, but I considered it to
be useful for tracking this issue.

Please let me know if you can (will) do anything to solve this issue, 
with an estimation when you will do it. Currently I am stuck with my own
script due to this issue.

Greetings Ben


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: 
LC_ALL set to [EMAIL PROTECTED])

Versions of packages libapt-pkg-perl depends on:
ii  apt [libapt-pkg-libc6.3-6-3.1 0.6.40.1   Advanced front-end for dpkg
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.1-3  GCC support library
ii  libstdc++6                    4.0.1-3    The GNU Standard C++ Library v3
ii  perl-base [perlapi-5.8.7]     5.8.7-4    The Pathologically Eclectic Rubbis

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to