Your message dated Sun, 16 Aug 2026 13:34:35 +0200
with message-id <[email protected]>
and subject line Re: Bug#996668: cinnamon-settings-daemon: cinnamon shutdown 
hang
has caused the Debian Bug report #996668,
regarding cinnamon delays shutdown
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
996668: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996668
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cinnamon
Version: 5.0.6-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I worked normally with the PC

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

I try to shutdown the PC.

   * What was the outcome of this action?

I get the error message: "A stop job is running for session 2 of user <user>"

The shutdown process then waits 90s before continuing.

sudo journalctl -b-1

shows the following entries:

Dec 28 19:29:14 saturn systemd[1]: session-2.scope: Stopping timed out.
Killing.
Dec 28 19:29:14 saturn systemd[1]: session-2.scope: Killing process 7577
(cinnamon-launch) with signal SIGKILL.
Dec 28 19:29:14 saturn systemd[1]: session-2.scope: Killing process 7623
(gdbus) with signal SIGKILL.
Dec 28 19:29:14 saturn systemd[1]: session-2.scope: Failed with result
'timeout'.

A workaround is to logout first, and then shutdown from the log-in screen.

   * What outcome did you expect instead?

The shutdown process to proceed immediately.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cinnamon depends on:
ii  cinnamon-common                              5.0.6-1
ii  cinnamon-control-center                      5.0.2-2
ii  cinnamon-desktop-data                        5.0.0-2
ii  cinnamon-screensaver                         5.0.7-1
ii  cinnamon-session                             5.0.1-3
ii  cinnamon-settings-daemon                     5.0.4-2
ii  cjs                                          5.0.0-2
ii  cups-pk-helper                               0.2.6-1+b1
ii  dbus                                         1.12.20-3
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-2
ii  gir1.2-accountsservice-1.0                   0.6.55-3
ii  gir1.2-caribou-1.0                           0.4.21-7.2
ii  gir1.2-clutter-1.0                           1.26.4+dfsg-2
ii  gir1.2-cmenu-3.0                             5.0.0-2
ii  gir1.2-cogl-1.0                              1.22.8-3
ii  gir1.2-cvc-1.0                               5.0.0-2
ii  gir1.2-gdkpixbuf-2.0                         2.42.6+dfsg-2
ii  gir1.2-gkbd-3.0                              3.26.1-1+b1
ii  gir1.2-glib-2.0                              1.70.0-2
ii  gir1.2-gnomedesktop-3.0                      41.2-1
ii  gir1.2-gtk-3.0                               3.24.30-4
ii  gir1.2-gtkclutter-1.0                        1.8.4-4+b1
ii  gir1.2-keybinder-3.0                         0.3.2-1.1
ii  gir1.2-nemo-3.0                              5.0.5-1
ii  gir1.2-nm-1.0                                1.32.12-1
ii  gir1.2-nma-1.0                               1.8.32-1
ii  gir1.2-notify-0.7                            0.7.9-3
ii  gir1.2-pango-1.0                             1.48.10+ds1-1
ii  gir1.2-polkit-1.0                            0.105-31
ii  gir1.2-soup-2.4                              2.74.2-1
ii  gir1.2-timezonemap-1.0                       0.4.6-2+b1
ii  gir1.2-upowerglib-1.0                        0.99.13-1
ii  gir1.2-xapp-1.0                              2.2.4-1
ii  gkbd-capplet                                 3.26.1-1+b1
ii  gnome-backgrounds                            41.0-1
ii  gnome-themes-extra                           3.28-1
ii  gsettings-desktop-schemas                    41.0-2
ii  iso-flags-png-320x240                        1.0.2-1.1
ii  libatk-bridge2.0-0                           2.38.0-2
ii  libatk1.0-0                                  2.36.0-3
ii  libc6                                        2.33-1
ii  libcairo2                                    1.16.0-5
ii  libcinnamon-desktop4                         5.0.0-2
ii  libcinnamon-menu-3-0                         5.0.0-2
ii  libcjs0                                      5.0.0-2
ii  libgdk-pixbuf-2.0-0                          2.42.6+dfsg-2
ii  libgirepository-1.0-1                        1.70.0-2
ii  libgl1                                       1.3.4-2+b1
ii  libglib2.0-0                                 2.70.2-1
ii  libglib2.0-bin                               2.70.2-1
ii  libgstreamer1.0-0                            1.18.5-1
ii  libgtk-3-0                                   3.24.30-4
ii  libmuffin0                                   5.0.2-1
ii  libpango-1.0-0                               1.48.10+ds1-1
ii  libpangocairo-1.0-0                          1.48.10+ds1-1
ii  libstartup-notification0                     0.12-6+b1
ii  libx11-6                                     2:1.7.2-2+b1
ii  libxfixes3                                   1:5.0.3-2
ii  libxml2                                      2.9.12+dfsg-5+b1
ii  mesa-utils                                   8.4.0-1+b2
ii  muffin                                       5.0.2-1
ii  nemo                                         5.0.5-1
ii  network-manager-gnome                        1.24.0-1
ii  policykit-1-gnome                            0.105-7+b1
ii  python3                                      3.9.7-1
ii  python3-dbus                                 1.2.18-3+b1
ii  python3-distro                               1.6.0-2
ii  python3-gi                                   3.42.0-2+b1
ii  python3-gi-cairo                             3.42.0-2+b1
ii  python3-pampy                                1.8.4-2
ii  python3-pexpect                              4.8.0-2
ii  python3-pil                                  8.4.0-1
ii  python3-pyinotify                            0.9.6-1.3
ii  python3-setproctitle                         1.2.2-2+b1
ii  python3-tinycss2                             1.0.2-1
ii  python3-tz                                   2021.3-1
ii  xapps-common                                 2.2.4-1

Versions of packages cinnamon recommends:
ii  blueman            2.2.3-1
ii  cinnamon-core      5.0.1
ii  cinnamon-l10n      5.0.2-2
ii  gnome-terminal     3.42.2-1
ii  libcanberra-pulse  0.30-8
ii  metacity-common    1:3.42.0-1

Versions of packages cinnamon suggests:
ii  cinnamon-desktop-environment  5.0.1
pn  cinnamon-doc                  <none>
pn  python3-opencv                <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 5.2.6-1

This issue was fixed upstream by commit 5c1137ec2 ("cinnamon-launcher: use
os.WIFEXITED to interpret the status code when cinnamon exits.", 2021-11-25).

The cause was in /usr/bin/cinnamon-launcher: the exit status returned by
os.waitpid() is an encoded wait status, not a plain exit code, but it was
checked with "if exit_status != 0". At the end of the session cinnamon
terminates normally, yet that check treated it as a crash, so the launcher
entered its crash-recovery path: it forked the metacity fallback session,
started the fallback helpers (polkit agent, nm-applet) and popped up the
"Cinnamon just crashed" dialog. As a result cinnamon-launcher kept running
inside session-N.scope, and systemd waited for its 90 seconds stop timeout
before SIGKILLing it - the "A stop job is running for session N of user X"
message reported here. This also explains why killing cinnamon-launcher by
hand, or logging out before shutting down, avoided the delay, and why no
crash or segfault was visible in the logs.

The fix is included upstream since 5.2.1, and in Debian since cinnamon
5.2.6-1 (experimental) and 5.2.7-2 (unstable, uploaded on 2022-01-26).
All currently supported suites therefore carry it: bookworm (5.6.x),
trixie (6.4.10) and unstable (6.6.9-1).

Closing this bug and #1002832, which was merged with it.

If anyone still runs into a similar shutdown or logout delay on a current
version, please do not reopen this bug: the cause described above is gone,
so the same symptom now would have a different root cause and needs to be
tracked separately. Please file a new report instead, including:

 - the exact versions of cinnamon and cinnamon-session;
 - the output of "journalctl -b -1" around the "A stop job is running"
   message, showing which processes are killed and in which scope/unit;
 - whether the delay also happens with a newly created user account;
 - whether logging out first and then shutting down from the login manager
   avoids it.

Thanks to everyone who reported and helped debugging this.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to