Is it possible that libapt is leaking these fds? I checked the code, and aptitude appears to clean up all the structures associated with the cache. (and I know I'm not explicitly opening pkgcache.bin)
Daniel ----- Forwarded message from Michel Daenzer <[EMAIL PROTECTED]> ----- From: Michel Daenzer <[EMAIL PROTECTED]> Subject: Bug#250583: Leaks file handles for /var/cache/apt/pkgcache.bin To: Debian Bug Tracking System <[EMAIL PROTECTED]> Date: Mon, 24 May 2004 00:42:41 +0200 X-Mailer: reportbug 2.58 Package: aptitude Version: 0.2.14.1-2 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It seems to leak one for each installation run. Consequently, more than 6 MB of the filesystem per stale handle are inaccessible here; has grown to hundreds of MBs after some days of building and installing stuff. - -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 2.6.5-rc2-ben0-ck1 Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 Versions of packages aptitude depends on: ii apt [libapt-pkg-libc6.3-5-3 0.5.25 Advanced front-end for dpkg ii libc6 2.3.2.ds1-12 GNU C Library: Shared libraries an ii libgcc1 1:3.4.0-2 GCC support library ii libncurses5 5.4-3 Shared libraries for terminal hand ii libsigc++-1.2-5c102 1.2.5-1 Type-safe Signal Framework for C++ ii libstdc++5 1:3.3.3-6 The GNU Standard C++ Library v3 - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAsSjgWoGvjmrbsgARAr+3AJ4gmZcdLgWj/0Cm7RPd5iPEZBKAwgCgqiDr gnSfLamEztrEenfidY9vIZk= =s2P5 -----END PGP SIGNATURE----- ----- End forwarded message ----- -- /-------------------- Daniel Burrows <[EMAIL PROTECTED]> -------------------\ | I haven't lost my mind, | | I know exactly where I left it. | \----------------- The Turtle Moves! -- http://www.lspace.org ----------------/

