Package: needrestart
Version: 3.6-4+deb12u3
Severity: important
X-Debbugs-Cc: austin.sc...@gmail.com

Dear Maintainer,

   * What led up to the situation?

I did a `bazel build //... --sandbox_base=/dev/shm` on a repo and
then `apt-get update; apt-get ugprade`

(https://github.com/RealtimeRoboticsGroup/aos, but I have seen nothing
 which indicates it is specific to that repo)

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

needrestart is then very slow to check if anything needs a restart.
Like 30 seconds to 1 minute slow.

   * What was the outcome of this action?

Slow updates

   * What outcome did you expect instead?

I expect needupdate to be fast.

When it was slow, I attached to needupdate with strace, and looked at
what it was doing.  I saw it iterating through all the files in
/dev/shm/bazel-sandbox.[hash], which makes me suspect it is looking for
PIDs in there or something like that.

I believe I've also seen this on Ubuntu 22.04.

strace needrestart ->
...
newfstatat(AT_FDCWD, 
"/dev/shm/bazel-sandbox.1a8fd8fe52184f204b77ecb09e16bedf91b97f6f4e780924d561d9f0b2bd820d/sandbox_stash/CppCompile/6395/execroot/aos/external/amd64_debian_sysroot/usr/lib/tasksel/tests/laptop",
 {st_mode=S_IFREG|0755, st_size=259, ...}, 0) = 0
newfstatat(AT_FDCWD, 
"/dev/shm/bazel-sandbox.1a8fd8fe52184f204b77ecb09e16bedf91b97f6f4e780924d561d9f0b2bd820d/sandbox_stash/CppCompile/6395/execroot/aos/external/amd64_debian_sysroot/usr/lib/tasksel/tests/laptop",
 {st_mode=S_IFREG|0755, st_size=259, ...}, 0) = 0
...

-- Package-specific info:
needrestart output:
Your outdated processes:
at-spi-bus-laun[146257], dbus-daemon[146200, 146263], dconf-service[146372], 
gnome-keyring-d[1023841], gvfsd-dnssd[1252047], gvfsd-metadata[146632], 
gvfs-udisks2-vo[1024206], systemd[146178], xdg-desktop-por[1024350], 
xdg-document-po[146823], xdg-permission-[146827]



-- System Information:
Debian Release: 12.10
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-28-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages needrestart depends on:
ii  binutils                   2.40-2
ii  dpkg                       1.21.22
ii  gettext-base               0.21-12
ii  libintl-perl               1.33-1
ii  libmodule-find-perl        0.16-2
ii  libproc-processtable-perl  0.634-1+b2
ii  libsort-naturally-perl     1.03-4
ii  libterm-readkey-perl       2.38-2+b1
ii  perl                       5.36.0-7+deb12u2
ii  xz-utils                   5.4.1-1

Versions of packages needrestart recommends:
ii  libpam-systemd  252.36-1~deb12u1
ii  systemd         252.36-1~deb12u1

Versions of packages needrestart suggests:
pn  iucode-tool    <none>
ii  libnotify-bin  0.8.1-1

-- no debconf information

Reply via email to