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

Daniel Moerner dmoerner at gmail.com
Tue Dec 1 00:05:19 UTC 2009


Hi,

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".

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

Thanks,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 910 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20091130/253009a4/attachment-0001.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmr-schroot-config
Type: application/octet-stream
Size: 4933 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20091130/253009a4/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-strace
Type: application/octet-stream
Size: 3186177 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20091130/253009a4/attachment-0003.obj>


More information about the Buildd-tools-devel mailing list