Tim Connors
unread,Jan 30, 2022, 9:10:03 PM1/30/22You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: needrestart
Version: 3.5-4
Severity: normal
After an upgrade of `xdg-desktop-portal/bullseye-backports` (which
needrestart didn't detect should be restarted, BTW:
tconnors 4388 0.0 0.0 617848 5372 ? Sl 2021 2:14 /usr/libexec/xdg-desktop-portal
tconnors 4396 0.0 0.0 602912 2396 ? Sl 2021 0:31 /usr/libexec/xdg-document-portal
root 4405 0.0 0.0 2572 1684 ? Ss 2021 0:00 \_ fusermount -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/738/doc
tconnors 4411 0.0 0.0 529116 27656 ? Sl 2021 8:13 /usr/libexec/xdg-desktop-portal-gtk
)
I was wondering why needrestart was taking even longer than usual. So
I ran a few 'ps axfu' and discovered it was continually restarting
dpkg-query --search /bin/dash over and over again:
root 1130884 1.3 0.3 137036 123668 pts/125 S+ 12:41 0:04 | | \_ apt install xdg-desktop-portal/bullseye-backports
root 1131701 0.0 0.0 137036 32332 pts/125 S+ 12:41 0:00 | | \_ apt install xdg-desktop-portal/bullseye-backports
root 1141619 0.0 0.0 2424 596 pts/125 S+ 12:41 0:00 | | \_ sh -c test -x /usr/lib/needrestart/apt-pinvoke && /usr/lib/needrestart/apt-pinvoke || true
root 1141622 0.3 0.0 29212 23020 pts/125 S+ 12:41 0:01 | | \_ /usr/bin/perl -w /usr/share/debconf/frontend /usr/sbin/needrestart
root 1141782 14.3 0.2 83300 77220 pts/125 S+ 12:42 0:45 | | \_ /usr/bin/perl /usr/sbin/needrestart
root 1152868 1.0 0.0 12052 6076 pts/125 S+ 12:47 0:00 | | \_ /usr/bin/perl /etc/needrestart/hook.d/10-dpkg /bin/dash
root 1152870 99.0 0.3 134264 129920 pts/125 R+ 12:47 0:00 | | \_ dpkg-query --search /bin/dash
With /etc/needrestart/hook.d/10-dpkg and dpkg-query --search /bin/dash
constantly recycling PIDs (but /usr/sbin/needrestart remaining at the
root of the process tree the whole time).
After a while, it finally moved onto /bin/bash, and then eventually
finished. Since every time I looked, it was executing `dpkg-query
--search`, which takes 3 seconds when the filesystem cache is warm on
my system, it seems those results should be cached in the
/usr/sbin/needrestart process and 10-dpkg hook not asked to keep
reprocessing the same file, since they're obviously not able to change
when you're at the final step of a dpkg run with the dpkg lock held.
-- Package-specific info:
needrestart output:
Your outdated processes:
blueman-applet[5988], blueman-tray[6581], cura[267343], dconf-service[4428], emacs[1624828], file:// Content[497712], firefox-esr[2340505], fvwm[5484], FvwmAnimate[2591535], FvwmButtons[2591539, 2593188], FvwmCommandS[2591537], FvwmPager[2593140, 2593330], gconfd-2[3813503], gnuplot[5473, 5480], gthumb[2057638], gvfs-afc-volume[1396368], gvfsd[4286], gvfsd-dnssd[1396447], gvfsd-http[33183], gvfsd-metadata[1396504], gvfsd-network[1396433], gvfsd-trash[1396378], gvfs-goa-volume[1396363], gvfs-gphoto2-vo[1396358], gvfs-mtp-volume[1396374], gvfs-udisks2-vo[1396062], ibus-daemon[4274], ibus-engine-sim[4415], ibus-extension-[4311], ibus-memconf[4308], ibus-portal[4318], ibus-ui-gtk3[4310], ibus-x11[4316], klauncher[1738491], pasystray[5464], pavucontrol[1395977], pnmixer[5987], pqiv[3247724], Privileged Cont[2341539], procmeter3[5381, 5378], pulseaudio[2475427], RDD Process[2350394], slic3r_main[271311], soffice.bin[3382689], solaar[5989], systemd[3436], teams[3883205, 3883066, 3883390, 3006485, 3883222, 3883061, 3005930, 3006471, 3883067, 3883320, 3005929], trayer[5463], WebExtensions[2341812], xbiff[6196, 7981], xclock[4902, 4903], xdg-desktop-por[4388, 4411], xdg-document-po[4396], xdg-permission-[4400], xload[2593144, 2593343], xmms2d[4141], xmms2-scrobbler[4152], xscreensaver[2443046], xterm[1701718, 531788, 241095, 2866935, 44828, 2893255, 2894250, 2849956, 2786598, 245266, 1528207, 1719135, 21443, 2370287, 2740199, 1132330, 211602, 88413, 2772560, 2375656, 2902583, 1912045, 1781102, 110242, 1478635, 1148690, 3081636, 2847751, 393443, 2439030, 2979687, 2132518, 2607852, 36770, 2354803, 3494011, 1789291, 4158013, 1713740, 1780214, 4887, 2341755, 3891991, 3010070, 1910392, 1375767, 1665193, 2610142, 2577114, 1585541, 3835957, 2738287, 2335579, 455387, 3390674, 1890801, 2411578, 915658, 3521849, 1780344, 1881688, 4888, 3364489, 854647, 1788777, 3015586, 1333721, 1912867, 2353805, 1183448, 1577276, 1147033, 2346460, 3461117, 2414908, 2344642, 1793822, 2340866, 1442080, 247038, 4018243, 5370, 1792550, 3419460, 1050139, 2520658, 2663801, 38535, 3381218, 110127, 2593345, 2854561, 2895087, 2416821, 2534132, 2513780, 1697027, 1696510, 2337920, 464879, 2344030, 241769, 2441787, 2365086, 409817, 2423313], x11vnc[5369, 5368, 5365, 5366]
-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (5, 'testing'), (2, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-9-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages needrestart depends on:
ii binutils 2.35.2-2
ii dpkg 1.20.9
ii gettext-base 0.21-4
ii libintl-perl 1.26-3
ii libmodule-find-perl 0.15-1
ii libmodule-scandeps-perl 1.30-1
ii libproc-processtable-perl 0.59-2+b1
ii libsort-naturally-perl 1.03-2
ii libterm-readkey-perl 2.38-1+b2
ii perl 5.32.1-4+deb11u2
ii xz-utils 5.2.5-2
Versions of packages needrestart recommends:
ii libpam-systemd 247.3-6
Versions of packages needrestart suggests:
ii iucode-tool 2.3.1-1
pn needrestart-session | libnotify-bin <none>
-- no debconf information