Bug 1226014 - "zypper ps -s" is confused by snaps
Summary: "zypper ps -s" is confused by snaps
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-05 17:43 UTC by Vadim Krevs
Modified: 2024-07-15 15:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Requested zypper debug file (1.31 KB, application/gzip)
2024-06-08 07:33 UTC, Vadim Krevs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Krevs 2024-06-05 17:43:36 UTC
1. Reboot your Linux pc.

2. Follow instructions on https://snapcraft.io/install/skype/opensuse to enable snap on openSUSE and install Skype.

3. Run Skype.

4. Perform "zypper ps -s" or "zypper ps"

Expected result:
No processes are reported using deleted files.

Actual result:
$ zypper ps -s
The following running processes use deleted files:

PID  | PPID | UID  | User       | Command                 | Service
-----+------+------+------------+-------------------------+--------
8476 | 7765 | 1000 | <username> | skypeforlinux           | 
8550 | 8476 | 1000 | <username> | skypeforlinux           | 
8551 | 8476 | 1000 | <username> | skypeforlinux           | 
8553 | 8551 | 1000 | <username> | skypeforlinux           | 
8566 | 2933 | 1000 | <username> | chrome_crashpad_handler | 
8586 | 8550 | 1000 | <username> | skypeforlinux           | 
8588 | 8476 | 1000 | <username> | skypeforlinux           | 
8599 | 8476 | 1000 | <username> | skypeforlinux           | 
8624 | 8586 | 1000 | <username> | skypeforlinux           | 
8680 | 8476 | 1000 | <username> | skypeforlinux           | 

You may wish to restart these processes.
See 'man zypper' for information about the meaning of values in the above table.

$ zypper ps | sort -u

     |      |      |        |                         |         | /lib/x86_64-linux-gnu/ld-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libapparmor.so.1.4.2 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libblkid.so.1.1.0 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libc-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libdl-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libgcc_s.so.1 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/liblzma.so.5.2.2 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libm-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libmount.so.1.1.0 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libnsl-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libpcre.so.3.13.3 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libpthread-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libresolv-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/librt-2.27.so (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libselinux.so.1 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libsystemd.so.0.21.0 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libudev.so.1.6.9 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libuuid.so.1.3.0 (stat: No such file or directory)
     |      |      |        |                         |         | /lib/x86_64-linux-gnu/libz.so.1.2.11 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/lib/x86_64-linux-gnu/libwrap.so.0.7.6 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/libpreload-bindtextdomain.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/libpreload-chromium-content-api.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/libpreload-semaphores.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/aa_DJ.utf8/LC_COLLATE (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/aa_DJ.utf8/LC_CTYPE (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/aa_DJ.utf8/LC_MEASUREMENT (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/aa_DJ.utf8/LC_PAPER (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/aa_ET/LC_NUMERIC (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/bi_VU/LC_NAME (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/cy_GB.utf8/LC_MONETARY (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/cy_GB.utf8/LC_TELEPHONE (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_AG/LC_MESSAGES/SYS_LC_MESSAGES (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_ADDRESS (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_TIME (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/gtk-3.0/modules/libcanberra-gtk3-module.so (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libFLAC.so.8.3.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libcanberra-gtk3.so.0.1.9 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libcanberra.so.0.2.5 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libibus-1.0.so.5.0.517 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libltdl.so.7.3.1 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libogg.so.0.8.2 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libpulse.so.0.20.2 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libsndfile.so.1.0.28 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libtdb.so.1.3.15 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libvorbisfile.so.3.3.7 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libwayland-server.so.0.1.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0 (stat: No such file or directory)
     |      |      |        |                         |         | /snap/skype/348/gnome-platform/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so (stat: No such file or directory)
     |      |      |        |                         |         | /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache (stat: No such file or directory)
     |      |      |        |                         |         | /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1 (stat: No such file or directory)
-----+------+------+--------+-------------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------
8476 | 7765 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8550 | 8476 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8551 | 8476 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8553 | 8551 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8566 | 2933 | 1000 | <user> | chrome_crashpad_handler |         | /lib/x86_64-linux-gnu/ld-2.27.so (stat: No such file or directory)
8586 | 8550 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8588 | 8476 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8599 | 8476 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8624 | 8586 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
8680 | 8476 | 1000 | <user> | skypeforlinux           |         | /snap/skype/348/gnome-platform/usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION (stat: No such file or directory)
No core libraries or services have been updated since the last system boot.
PID  | PPID | UID  | User   | Command                 | Service | Files
Reboot is probably not necessary.
See 'man zypper' for information about the meaning of values in the above table.
The following running processes use deleted files:
You may wish to restart these processes.
Comment 1 Michael Andres 2024-06-05 19:30:35 UTC
Maybe we should exclude the snap mounts below /snap.
Comment 2 Michael Andres 2024-06-06 09:06:36 UTC
@Vadim are you able to tell whether snap updated skype after those instances were launched? Or does every skype you launch immediately show up in the list?
Comment 3 Vadim Krevs 2024-06-06 11:05:59 UTC
(In reply to Michael Andres from comment #2)
> @Vadim are you able to tell whether snap updated skype after those instances
> were launched? Or does every skype you launch immediately show up in the
> list?

If I quit Skype,then zypper does not report any deleted files. As soon as Skype is launched, zypper reports deleted files. No updates of files while Skype is running.
Comment 4 Michael Andres 2024-06-07 15:35:08 UTC
@Vadim: While Skype is running and zypper reports the files, please run 
> zypper ps --debugFile /tmp/zypperps1226014
and attach the created file (/tmp/zypperps1226014) to this report.
(The `Add an attachment` link is above the initial description)

This will help us to verify the fix.
Comment 5 Vadim Krevs 2024-06-08 07:33:25 UTC
Created attachment 875382 [details]
Requested zypper debug file

Done.
Comment 6 Michael Andres 2024-07-04 10:00:56 UTC
Fixed in libzypp-17.35.2