Bug 5405 - File descriptor leaked on lvm2 invocation @ starting mcc, diskdrake...
Summary: File descriptor leaked on lvm2 invocation @ starting mcc, diskdrake...
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Low enhancement
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 02:19 CEST by Morgan Leijström
Modified: 2023-12-02 12:14 CET (History)
3 users (show)

See Also:
Source RPM: drakxtools, lvm2-2.03.16-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2012-04-15 02:19:25 CEST
(cloned off from Bug 5383)

Description of problem:
Upon starting mcc from terminal, and again when starting some drak* tools such as diskdrake, i see in terminal several iteratios of the two lines

File descriptor 8 (/dev/pts/1) leaked on lvm2 invocation. Parent PID 15650: /usr/bin/perl
File descriptor 9 (/dev/pts/1) leaked on lvm2 invocation. Parent PID 15650: /usr/bin/perl


This happens to at least one i586 and one x86_64 install of cauldron a week ago.


Steps to Reproduce:
Use LVM ( i have /, /home and swap in LVM, and /boot as normal partition.
Start mcc in terminal
Manuel Hiebel 2012-04-15 17:53:10 CEST

CC: (none) => pterjan

Comment 1 Pascal Terjan 2012-04-15 18:34:14 CEST
This is a minor bug, something does not close some file descriptors before running lvm2.

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.

Severity: normal => minor

Comment 2 Thierry Vignaud 2012-04-19 09:41:53 CEST
They should not be closed are they are actively used by the parent.
CLOSONEXEC would be an option, but we're at some high level, not low level C.
AFAIC I would close at WONTFIX but you can look if you want

Severity: minor => enhancement
Priority: Normal => Low
CC: (none) => thierry.vignaud

Comment 3 Morgan Leijström 2012-04-19 10:31:52 CEST
It is generally good to minimise warning messages, as it makes it less confusing for us bug reporters... and looks more polished.

Or make something first output a message "Now you will see some lines containing 'leaked on lvm2 invocation' but it is OK"
Comment 4 Marja Van Waes 2012-05-26 13:08:33 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Dave Hodgins 2012-06-20 04:40:36 CEST

Keywords: NEEDINFO => (none)
Whiteboard: (none) => MGA2TOO
CC: (none) => davidwhodgins

Thierry Vignaud 2012-06-20 10:58:08 CEST

Source RPM: drakxtools ? => drakxtools
Whiteboard: MGA2TOO => (none)

Comment 5 Thierry Vignaud 2012-09-20 10:56:00 CEST
That's very minor and it's not fixable

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED

Comment 6 Morgan Leijström 2023-11-26 22:00:53 CET
I see this again, in journal when drakx11 installed nvidia driver:


nov 26 20:19:19 svarten.tribun plasmashell[27516]: File descriptor 10 (/dev/urandom) leaked on lvm2 invocation. Parent PID 17488: /usr/bin/perl
nov 26 20:19:19 svarten.tribun plasmashell[27516]: File descriptor 21 (/proc/meminfo) leaked on lvm2 invocation. Parent PID 17488: /usr/bin/perl

plus many more.

Reopening because i can read " Solution Verified" at
https://access.redhat.com/solutions/49144

Unfortunately i am not allowed to read details...

Also a ref:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592834#109


I wonder if this may be the reason the driver di dnot work for the then running kernel?
kernel-linus-devel-6.5.12-0.1.mga9.x86_64
After rebooting to another kernel dkms-autorebuld built that driver and it worked.

Version: Cauldron => 9
Resolution: WONTFIX => (none)
Status: RESOLVED => REOPENED

Comment 7 Lewis Smith 2023-12-01 22:06:27 CET
The RedHat URL says:
---------------------------------------------------------------------------
 SOLUTION VERIFIED - Updated November 15 2023 at 10:50 PM
with a popup which says "This solution has been verified to work by RedHat Customers and Support Engineers for the specified product version(s)".
 Issue
Getting "leaked on pvdisplay invocation" errors when pvdisplay command is executed. Similar is the case for other lvm commands. [*******]
ERRORS:
#  pvdisplay
File descriptor 5 (/dev/pts/0) leaked on pvdisplay invocation. Parent PID 8593: bash
#  pvs
File descriptor 5 (/dev/pts/0) leaked on pvs invocation. Parent PID 8593: bash
#  vgs
File descriptor 5 (/dev/pts/0) leaked on vgs invocation. Parent PID 32693: bash
------------------------------------------------------------------------------
but it is for RedHat subscribers to see all the details. Maybe Mageia should subscribe (if not already).

The Debian reference makes no mention of LVM, but the error is for "vgs invocation" [vgs — Display information about volume groups] from updating Grub.
And offers no further info.

Assigning to ThierryV who does LVM, and replied years ago to this bug. You may want to close WontFix again. If it is harmless, we can Errata it.

Assignee: bugsquad => thierry.vignaud
Keywords: (none) => FOR_ERRATA9
Source RPM: drakxtools => drakxtools, lvm2-2.03.16-1.mga9.src.rpm

Comment 8 Morgan Leijström 2023-12-02 12:14:37 CET
I believe it is harmless, but it would be good to get rid of the noise.

I dont think it suits Errata, there are so much other noise too in the journal that in such case should be equally explained...  Everything from BIOS and graphics related to plenty of noise from Plasma and company.

---

Yes it seems to be regarding updating Grub.
Here is a passage of drakx11 during install of nvidia-current:

nov 29 20:45:21 svarten.tribun drakx11[741077]: running: udevadm settle
nov 29 20:45:21 svarten.tribun drakx11[741077]: running: dmsetup table
nov 29 20:45:21 svarten.tribun drakx11[741077]: running: blkid -o udev -p /dev/mapper/crypt_sda2
nov 29 20:45:21 svarten.tribun drakx11[741077]: blkid gave:  ajW3wM-jl3R-lbIH-1ppg-wmU9-77Jy-j7N9qP
nov 29 20:45:21 svarten.tribun drakx11[741077]: dmcrypt: found mapper/crypt_sda2 type  with rootDevice sda2
nov 29 20:45:21 svarten.tribun drakx11[741077]: looking for vgs in mapper/crypt_sda2
nov 29 20:45:21 svarten.tribun drakx11[741077]: running: lvm2 pvs --noheadings --nosuffix -o vg_name /dev/dm-0
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 10 (/dev/urandom) leaked on lvm2 invocation. Parent PID 741077: /usr/bin/perl
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 21 (/proc/meminfo) leaked on lvm2 invocation. Parent PID 741077: /usr/bin/perl
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 22 (/proc/zoneinfo) leaked on lvm2 invocation. Parent PID 741077: /usr/bin/perl
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 23 (/proc/740981/cgroup) leaked on lvm2 invocation. Parent PID 741077: /usr/bin/perl
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 24 (/sys/fs/cgroup/user.slice/user-10702.slice/user@10702.service/app.slice/app-mageia\x2ddrakconf\x20\x283\x29-f8a8eb72160d40538c>
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 25 (/sys/fs/cgroup/user.slice/user-10702.slice/user@10702.service/app.slice/app-mageia\x2ddrakconf\x20\x283\x29-f8a8eb72160d40538c>
nov 29 20:45:21 svarten.tribun plasmashell[766026]: File descriptor 26 (/sys/fs/cgroup/user.slice/user-10702.slice/user@10702.service/app.slice/app-mageia\x2ddrakconf\x20\x283\x29-f8a8eb72160d40538c>
nov 29 20:45:21 svarten.tribun drakx11[741077]: running: lvm2 vgs --noheadings --nosuffix --units s -o vg_extent_size vg-mga
nov 29 20:45:21 svarten.tribun plasmashell[766027]: File descriptor 10 (/dev/urandom) leaked on lvm2 invocation. Parent PID 741077: /usr/bin/perl

etc...

Keywords: FOR_ERRATA9 => (none)


Note You need to log in before you can comment on or make changes to this bug.