alexmurray / indicator-sensors

73 stars 11 forks source link

libgtk3-nocsd cannot be preloaded #35

Open Cyrille37 opened 4 years ago

Cyrille37 commented 4 years ago

Hello

~$ indicator-sensors --help
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Usage:
  indicator-sensors [OPTION…] - hardware sensors monitor

indicator-sensors does not display it's version but I found that in snap folder :

$ ls -l /snap/indicator-sensors/
total 0
drwxr-xr-x 9 root root 167 nov.  27  2019 261
drwxr-xr-x 9 root root 110 juil. 27 04:17 291
lrwxrwxrwx 1 root root   3 juil. 28 11:57 current -> 291

My environment:

$ snap version
snap    2.47.1
snapd   2.47.1
series  16
ubuntu  18.04.5
kernel  5.4.0-52-generic
Cyrille37 commented 4 years ago

I found another message about libgtk3-nocsd in /var/log/syslog when launching indicator-sensors --help

Oct 24 13:36:12 ubuntu-N141CU kernel: [  902.066870] audit: type=1400 audit(1603539372.418:88):
apparmor="DENIED" operation="file_mmap" profile="/snap/core/10185/usr/lib/snapd/snap-confine"
name="/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0" pid=4697
comm="snap-confine" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
alexmurray commented 4 years ago

Does this error cause indicator-sensors to fail? From what I can tell it should still run correctly and so should be harmless. Also what Ubuntu version are you running and does this have the gtk3-nocsd package installed?

Cyrille37 commented 4 years ago

Hi indicator-sensors is running and gtk3-nocsd installed. It seems to me that apparmor denied some operation to gtk3-nocsd, or some thing like ...

alexmurray commented 4 years ago

I have just made a change to the snap which should be published to the edge channel within the next hour or two that should hopefully resolve this. So if you refresh indicator-sensors from edge in an hour say, can you let me know if it resolves the issue?