You are not logged in.

#1 2019-09-10 19:49:21

hamelg
Member
From: France
Registered: 2008-06-19
Posts: 116

File descriptor leaked on lvs invocation

When I invoke lvm commands, I get warnings like that :

File descriptor 47 (/usr/share/qt/resources/qtwebengine_resources.pak) leaked on lvs invocation. Parent PID 15827: -bash
File descriptor 48 (/usr/share/qt/resources/qtwebengine_resources_100p.pak) leaked on lvs invocation. Parent PID 15827: -bash
File descriptor 49 (/usr/share/qt/resources/qtwebengine_resources_200p.pak) leaked on lvs invocation. Parent PID 15827: -bash
...

lvm reports that it was executed from environment which left more opened descriptors than stdin/out/err - this may present security problem - that's why lvm tool report this issue. So effectively it means the problem is in the executing shell which leaves descriptors opened while calling lvm.

In my kde session when konsole forks bash it leaves all these fd open (see FD > 2) :

$ lsof -p $$
COMMAND   PID   USER   FD      TYPE             DEVICE SIZE/OFF    NODE NAME
bash    15827 titi  cwd       DIR              254,0    16384 7077889 /home/titi
bash    15827 titi  rtd       DIR              254,1     4096       2 /
bash    15827 titi  txt       REG              254,1   903440 1991503 /usr/bin/bash
bash    15827 titi  mem       REG              254,1    51376 1816195 /usr/lib/libnss_files-2.29.so
bash    15827 titi  mem       REG              254,1  3676528 2064491 /usr/lib/locale/locale-archive
bash    15827 titi  mem       REG              254,1   449040 1814439 /usr/lib/libncursesw.so.6.1
bash    15827 titi  mem       REG              254,1  2133648 1812789 /usr/lib/libc-2.29.so
bash    15827 titi  mem       REG              254,1    14512 1813264 /usr/lib/libdl-2.29.so
bash    15827 titi  mem       REG              254,1   326392 1816214 /usr/lib/libreadline.so.8.0
bash    15827 titi  mem       REG              254,1   198088 1812376 /usr/lib/ld-2.29.so
bash    15827 titi    0u      CHR              136,1      0t0       4 /dev/pts/1
bash    15827 titi    1u      CHR              136,1      0t0       4 /dev/pts/1
bash    15827 titi    2u      CHR              136,1      0t0       4 /dev/pts/1
bash    15827 titi   47r      REG              254,1  4491104  879898 /usr/share/qt/resources/qtwebengine_resources.pak
bash    15827 titi   48r      REG              254,1   715593  879899 /usr/share/qt/resources/qtwebengine_resources_100p.pak
bash    15827 titi   49r      REG              254,1   823947  879900 /usr/share/qt/resources/qtwebengine_resources_200p.pak
bash    15827 titi   50r      REG              254,1  8497106  878818 /usr/share/qt/resources/qtwebengine_devtools_resources.pak
bash    15827 titi   51r      REG              254,1   181903  879912 /usr/share/qt/translations/qtwebengine_locales/en-US.pak
bash    15827 titi   52u     unix 0x0000000000adef54      0t0   45501 type=SEQPACKET
bash    15827 titi   53u     unix 0x00000000fb880c96      0t0   45502 type=SEQPACKET
bash    15827 titi   54r     FIFO               0,12      0t0   45503 pipe
bash    15827 titi   55w     FIFO               0,12      0t0   45503 pipe
bash    15827 titi   56u     unix 0x000000006ec2fdf1      0t0   45504 @00004 type=SEQPACKET
bash    15827 titi   62u  netlink                         0t0   45572 ROUTE
bash    15827 titi   63r  a_inode               0,13        0   11006 inotify
bash    15827 titi   76r  a_inode               0,13        0   11006 inotify
bash    15827 titi   84w      REG              254,0      179 7798786 /home/titi/.local/share/plasmashell/QtWebEngine/Default/Local Storage/leveldb/LOG
bash    15827 titi   85r      REG               0,24   131060   46968 /dev/shm/.org.chromium.Chromium.JLEKHz (deleted)
bash    15827 titi   87u     unix 0x000000005a4882e0      0t0   54549 type=STREAM
bash    15827 titi   88r      REG               0,24   131060   46968 /dev/shm/.org.chromium.Chromium.JLEKHz (deleted)
bash    15827 titi   89u     unix 0x00000000f756b671      0t0   50764 type=STREAM
bash    15827 titi   98u      REG              254,0        0 7809027 /home/titi/.local/share/plasmashell/QtWebEngine/Default/Local Storage/leveldb/LOCK
bash    15827 titi  107u      REG              254,0   524656 8199245 /home/titi/.cache/plasmashell/QtWebEngine/Default/Cache/index
bash    15827 titi  108u      REG              254,0   192512 8199246 /home/titi/.cache/plasmashell/QtWebEngine/Default/Cache/data_0
bash    15827 titi  109u      REG              254,0  1318912 8199247 /home/titi/.cache/plasmashell/QtWebEngine/Default/Cache/data_1
bash    15827 titi  110u      REG              254,0  1056768 8199248 /home/titi/.cache/plasmashell/QtWebEngine/Default/Cache/data_2
bash    15827 titi  111u      REG              254,0 41951232 8199249 /home/titi/.cache/plasmashell/QtWebEngine/Default/Cache/data_3
bash    15827 titi  113w      REG              254,0      149 7809026 /home/titi/.local/share/plasmashell/QtWebEngine/Default/Local Storage/leveldb/MANIFEST-000001
bash    15827 titi  114w      REG              254,0    10080 7798802 /home/titi/.local/share/plasmashell/QtWebEngine/Default/Local Storage/leveldb/000004.log
bash    15827 titi  115r      REG              254,0     4481 7798801 /home/titi/.local/share/plasmashell/QtWebEngine/Default/Local Storage/leveldb/000003.ldb
...

This issue was happened recently, I don't know exactly when.

Offline

Board footer

Powered by FluxBB