Bug#590290: lvdisplay leaking file descriptors

Milan Broz mbroz at redhat.com
Thu Aug 26 14:40:51 UTC 2010



On 08/26/2010 03:54 PM, Christoph Anton Mitterer wrote:
> Not sure if this is actually your fd leak,... but there will be a leaked
> fd fix in 2.02.74 (see

please do not confuse people:-) it is completely unrelated problem,
lvm cvs fix is just code cleanup, fixed error is very uncommon.


Reported problem is
 File descriptor 5 (/tmp/tmpfYDdkby (deleted)) leaked on lvdisplay
   invocation. Parent PID 3291: /bin/sh

It means, that application running lvdisplay did not close file descriptor
before running lvm. See "man lvm"

"On invocation, lvm requires that only the standard file descriptors
stdin, stdout and stderr are available.  If others are found, they get
closed and  messages  are  issued warning about the leak."

this is surely not bug in lvm but in cron or whatever forks lvm process..

Leaked descriptor can be security problem in theory, lvm closes
all such leaked descriptors on start and just screams here.
You should get similar warning on SElinux enabled systems.

Also read http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466138#15

If it it not badly written cron job, it is probably bug in cron then.

Milan





More information about the pkg-lvm-maintainers mailing list