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

Roger Leigh rleigh at codelibre.net
Mon Nov 30 21:17:57 UTC 2009


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)?

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.

Once we know what it is, we can fix it.


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/20091130/b1b5e344/attachment.pgp>


More information about the Buildd-tools-devel mailing list