Are you still seeing this?  I've been trying to reproduce it, but without
much success.  The number of fds used by the program (as shown in
/proc/<pid>/fd) is constant.  I can see one apparently extraneous mapping
in /proc/<pid>/maps, but only one:

jester:~/programming/aptitude/branches/aptitude-0.3/aptitude> grep 
pkgcache\\.bin /proc/`pidof aptitude`/maps
b3d13000-b44cf000 r--s 00000000 fe:00 1376293    /var/cache/apt/pkgcache.bin
b44cf000-b44d0000 rw-s 00c00000 fe:00 1376293    /var/cache/apt/pkgcache.bin
b44d0000-b44d1000 rw-s 00c00000 fe:00 1376292    /var/cache/apt/pkgcache.bin 
(deleted)
b44d1000-b44d2000 rw-s 00c00000 fe:00 1376291    /var/cache/apt/pkgcache.bin 
(deleted)
b44d2000-b44d3000 rw-s 00c00000 fe:00 1376263    /var/cache/apt/pkgcache.bin 
(deleted)

  I assume that the "deleted" maps are ones that were munmap'd, but that
the kernel remembers them for some reason or other.  So there is what appears
to be one extra mapping, but that's all I see.

  Daniel

-- 
/------------------- Daniel Burrows <[EMAIL PROTECTED]> ------------------\
|         "Systems in which an event can happen before itself do            |
|          not seem to be physically meaningful." -- Leslie Lamport         |
\---------------- The Turtle Moves! -- http://www.lspace.org ---------------/

Attachment: pgp06BGipffIk.pgp
Description: PGP signature

Reply via email to