Public bug reported:

[ Impact ]
When the UKUI greeter runs ukui-settings-daemon as the lightdm user,
the housekeeping plugin skips creating its manager. During greeter
shutdown, the plugin can pass an uninitialized pointer to
HousekeepingManagerStop() and crash the daemon with SIGSEGV. The fix
initializes the pointer to null so the plugin skips stopping a manager
that was never created.

[ Test Plan ]
1. On Resolute with 4.0.10.0-0ubuntu1 installed, use LightDM with
   the UKUI greeter and core dump collection enabled. At the greeter,
   confirm that "ps -u lightdm -o pid,args" lists ukui-settings-daemon.
2. Log in and log out. Check "sudo coredumpctl info 
/usr/bin/ukui-settings-daemon"
   for a new SIGSEGV in HousekeepingManagerStop() under the lightdm user.
   The crash is intermittent. Repeat as needed and record the number
   of cycles and whether it occurred.
3. Install ukui-settings-daemon and ukui-settings-daemon-common from
   resolute-proposed, record their versions and reboot. Repeat the same
   number of cycles. The greeter's daemon should exit on login, the
   desktop daemon should start and exit on logout, and there should
   be no new housekeeping SIGSEGV.

[ Where problems could occur ]
The normal UKUI session uses the same pointer when it starts and stops
the housekeeping manager. A regression could prevent housekeeping
from starting or crash the daemon on logout. Check the user session
as well as the greeter.

[ Other Info ]
Debian #1144731 reports the same shutdown crash. The patch comes from
commit 2dac25e. Stonking and Tenacious both ship the fix in 4.0.10.2-0ubuntu1.

https://bugs.debian.org/1144731
https://gitee.com/openkylin/ukui-settings-daemon/commit/2dac25eca3a41464d9c7b7376624b43c3a2a7594

** Affects: ukui-settings-daemon (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173821

Title:
  [SRU] ukui-settings-daemon can crash when the LightDM greeter exits on
  Resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ukui-settings-daemon/+bug/2173821/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to