Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479766 - sys-boot/grub-2.00_p5086: "File descriptor leaked on vgs invocation" during grub2-mkconfig
Summary: sys-boot/grub-2.00_p5086: "File descriptor leaked on vgs invocation" during g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL: https://savannah.gnu.org/bugs/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-05 01:03 UTC by Coacher
Modified: 2013-08-16 18:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info grub (info,5.05 KB, text/plain)
2013-08-05 01:04 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2013-08-05 01:03:22 UTC
Hello.

After upgrade to sys-boot/grub-2.00_p5086 I have the following warning(?) messages during grub2-mkconfig invocation:

File descriptor 4 (pipe:[1016827]) leaked on vgs invocation. Parent PID 28778: /usr/sbin/grub2-probe
File descriptor 5 (pipe:[1016826]) leaked on vgs invocation. Parent PID 28778: /usr/sbin/grub2-probe
File descriptor 4 (pipe:[1017877]) leaked on vgs invocation. Parent PID 28787: /usr/sbin/grub2-probe
File descriptor 5 (pipe:[1017876]) leaked on vgs invocation. Parent PID 28787: /usr/sbin/grub2-probe
File descriptor 4 (pipe:[1017896]) leaked on vgs invocation. Parent PID 28794: /usr/sbin/grub2-probe
File descriptor 5 (pipe:[1017895]) leaked on vgs invocation. Parent PID 28794: /usr/sbin/grub2-probe
File descriptor 4 (pipe:[1017923]) leaked on vgs invocation. Parent PID 28801: /usr/sbin/grub2-probe
File descriptor 5 (pipe:[1017922]) leaked on vgs invocation. Parent PID 28801: /usr/sbin/grub2-probe
File descriptor 4 (pipe:[1017338]) leaked on vgs invocation. Parent PID 28808: /usr/sbin/grub2-probe
File descriptor 5 (pipe:[1017930]) leaked on vgs invocation. Parent PID 28808: /usr/sbin/grub2-probe

Machine boots fine with generated config, but there were no such warnings on grub-2.00-r4.

Partition layout:
/boot is on RAID 1 via mdadm, / and /var are lvm volumes on top of RAID 5 via mdadm.
grub installed via `grub2-install /dev/sd{a,b,c,d}`. Hard drives are GPT formatted.

If there is any other needed info I am ready to provide it.

Reproducible: Always
Comment 1 Coacher 2013-08-05 01:04:56 UTC
Created attachment 355136 [details]
emerge --info grub
Comment 2 Mike Gilbert gentoo-dev 2013-08-05 01:32:06 UTC
It seems that sys-fs/lvm2 has a silly "feature" that warns you about "leaked" file descriptors by default. It is easy enough to reproduce:

#!/bin/sh
exec 3>/dev/null
lvs

As a workaround, you can set LVM_SUPPRESS_FD_WARNINGS in the environment. The warnings are completely harmless from what I can tell.
Comment 3 Mike Gilbert gentoo-dev 2013-08-05 01:53:34 UTC
Upstream bug in URL.
Comment 4 Coacher 2013-08-05 04:27:08 UTC
Thanks for explanation and reporting this upstream.
Comment 5 Mike Gilbert gentoo-dev 2013-08-16 00:55:40 UTC
Do you still see this with grub-2.00_p5107?
Comment 6 Coacher 2013-08-16 18:09:50 UTC
(In reply to Mike Gilbert from comment #5)
> Do you still see this with grub-2.00_p5107?

Just tested it. No such messages are produced anymore. The problem is resolved, thanks.