(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
CC: (none) => pterjan
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
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 => enhancementPriority: Normal => LowCC: (none) => thierry.vignaud
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"
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
Keywords: NEEDINFO => (none)Whiteboard: (none) => MGA2TOOCC: (none) => davidwhodgins
Source RPM: drakxtools ? => drakxtoolsWhiteboard: MGA2TOO => (none)
That's very minor and it's not fixable
Resolution: (none) => WONTFIXStatus: NEW => RESOLVED
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 => 9Resolution: WONTFIX => (none)Status: RESOLVED => REOPENED
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.vignaudKeywords: (none) => FOR_ERRATA9Source RPM: drakxtools => drakxtools, lvm2-2.03.16-1.mga9.src.rpm
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)