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: shutdown delayed by 90s, cinnamon-launcher does not exit at 
session end
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-settings-daemon
Version: 5.0.4-2
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

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

   * What led up to the situation?

When shutting down from the cinnamon menu, there is a 1 minute 29 second delay
with a message "A stop job is running...".  In review os syslog, it appears
that the job is related to cinnamon-settings-daemon.  Example messages from
syslog:

Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06708s:
Application 'cinnamon-settings-daemon-a11y-settings.desktop' killed by signal
15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06711s:
Application 'cinnamon-settings-daemon-orientation.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06713s:
Application 'cinnamon-settings-daemon-power.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06714s:
Application 'cinnamon-settings-daemon-sound.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06717s:
Application 'cinnamon-settings-daemon-mouse.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06719s:
Application 'cinnamon-settings-daemon-background.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06729s:
Application 'cinnamon-settings-daemon-a11y-keyboard.desktop' killed by signal
15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06731s:
Application 'cinnamon-settings-daemon-wacom.desktop' killed by signal 15
Oct 17 01:01:23 duster cinnamon-session[5028]: WARNING: t+30492.06733s:
Application 'cinnamon.desktop' killed by signal 15


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

If the user first logs out of cinnamon before initiating shutdown, there is no
delay.

   * What was the outcome of this action?

Normal shutdown if user logs out of cinnamon session before initiating
shutdown,

   * What outcome did you expect instead?

Normal shutdown when initiating shutdown from cinnamon menu.

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


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

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
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 cinnamon-settings-daemon depends on:
ii  cinnamon-desktop-data                        5.0.0-2
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-2
ii  gir1.2-cvc-1.0                               5.0.0-2
ii  libc6                                        2.32-4
ii  libcairo2                                    1.16.0-5
ii  libcanberra-gtk3-0                           0.30-8
ii  libcanberra0                                 0.30-8
ii  libcinnamon-desktop4                         5.0.0-2
ii  libcolord2                                   1.4.5-3
ii  libcups2                                     2.3.3op2-7
ii  libcvc0                                      5.0.0-2
ii  libdbus-glib-1-2                             0.112-2
ii  libfontconfig1                               2.13.1-4.2
ii  libgdk-pixbuf-2.0-0                          2.42.6+dfsg-2
ii  libglib2.0-0                                 2.70.0-1+b1
ii  libgnomekbd8                                 3.26.1-1+b1
ii  libgtk-3-0                                   3.24.30-3
ii  libgudev-1.0-0                               237-2
ii  liblcms2-2                                   2.12~rc1-2
ii  libnotify4                                   0.7.9-3
ii  libnspr4                                     2:4.32-1
ii  libnss3                                      2:3.70-1
ii  libpango-1.0-0                               1.48.10+ds1-1
ii  libpolkit-gobject-1-0                        0.105-31
ii  libpulse0                                    15.0+dfsg1-2
ii  librsvg2-2                                   2.50.7+dfsg-2
ii  libsystemd0                                  249.5-1
ii  libupower-glib3                              0.99.13-1
ii  libwacom2                                    1.11-1
ii  libx11-6                                     2:1.7.2-2+b1
ii  libxext6                                     2:1.3.4-1
ii  libxfixes3                                   1:5.0.3-2
ii  libxi6                                       2:1.8-1
ii  libxklavier16                                5.4-4
ii  libxtst6                                     2:1.2.3-1
ii  python3-tinycss                              0.4-3+b4

Versions of packages cinnamon-settings-daemon recommends:
ii  cinnamon-l10n  5.0.2-2
ii  pulseaudio     15.0+dfsg1-2

Versions of packages cinnamon-settings-daemon suggests:
ii  cinnamon [x-window-manager]      5.0.5-2
ii  cinnamon-screensaver             5.0.6-2
ii  gnome-calculator                 1:41.0-1
pn  gnome-power-manager              <none>
ii  gnome-screenshot                 40.0-1
ii  i3-wm [x-window-manager]         4.19.1-1
ii  muffin [x-window-manager]        5.0.1-2
ii  openbox [x-window-manager]       3.6.1-9+deb11u1
pn  tracker-gui | gnome-search-tool  <none>
ii  x11-xserver-utils                7.7+8
ii  xfwm4 [x-window-manager]         4.16.1-1

--- 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