[buildd-tools-devel] Bug#558712: Bug#558712: Bug#558712: File descriptor 3 leaked on lv* invocation.

Roger Leigh rleigh at codelibre.net
Mon Nov 8 20:05:29 UTC 2010


On Mon, Nov 30, 2009 at 04:05:19PM -0800, Daniel Moerner wrote:
> On Mon, Nov 30, 2009 at 1:17 PM, Roger Leigh <rleigh at codelibre.net> wrote:
>> On Sun, Nov 29, 2009 at 04:44:40PM -0800, Daniel Moerner wrote:
>>> I'm not actually sure if this is a bug in sbuild, or just the shell being
>>> overly verbose, or a bug in something else. I'm running sbuild with lvm
>>> snapshots. Every time I call something like "sbuild-distupgrade", I get
>>> this message on the start of the creation of the snapshot, and this message
>>> on the end:
>>>
>>> File descriptor 3 (pipe:[6647]) leaked on lvcreate invocation. Parent PID 22902: /bin/sh
>>>
>>> File descriptor 3 (pipe:[6647]) leaked on lvremove invocation. Parent PID 23479: /bin/sh
>>>
>>> This occurs in both bash and zsh. A quick google didn't reveal anything.
>>> The actual process works fine.
>>
>> It's just a harmless warning.  lvcreate checks if any file descriptors other
>> than 0, 1 or 2 are open when it starts up (as do all the LVM tools).  What's
>> probably still open is our connection to syslog, though that shouldn't be
>> the case any more.
>>
>> Which version of schroot are you using?  Is sbuild configured to use schroot
>> or sudo?  If schroot, what's your schroot configuration (schroot --config)?
>
> I am using schroot version 1.2.3-1+b1. sbuild is using schroot. I have attached the config as "dmr-schroot-config". I don't have sudo installed. This shouldn't matter, but I use approx.
>
>> To check which process and which file are at fault, could you run this:
>>
>> sudo strace -f -o /tmp/sbuild-trace sbuild <my sbuild args>
>>
>> and attach the log to your reply?  This needs running as root because strace
>> won't work on setuid executables such as schroot or sudo for security
>> reasons, so you need to be root to begin with to have it work.  This should
>> log each file open so we can see what's on fd 3.
>
> I've attached this as "sbuild-strace".

Thanks.  I've not been able to reproduce the problem with the
current versions of sbuild, schroot and LVM in Debian unstable.
Is this still a problem for you?

Apologies for leaving this so long; I wasn't able to reproduce it
last year or now.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101108/5c328662/attachment.pgp>


More information about the Buildd-tools-devel mailing list