Public bug reported:

1) lsb_release -rd:
Description: Ubuntu Kylin 26.04

2) apt-cache policy pkgname:
Package: libkysdk-system (3.0.1.2-0ubuntu1)

3) What you expected to happen:
The `/usr/bin/bluetoothService` should start normally during system boot 
without any errors, allowing the system to provide standard Bluetooth 
functionality.

4) What happened instead:
Immediately after system startup, `/usr/bin/bluetoothService` (provided by 
`ukui-bluetooth`) crashes and generates a coredump.
According to the stack trace, the segmentation fault occurs in the D-Bus 
message handling (`dbus_message_iter_recurse` in `libdbus-1.so.3`), which is 
triggered by a call to `kdk_system_get_eUser` from `libkysysinfo.so.3` (part of 
the `libkysdk-system` package) during initialization.

==============================================
SRU JUSTIFICATION
==============================================

[Impact]
On Ubuntu Kylin 26.04, the crash of `/usr/bin/bluetoothService` renders 
Bluetooth services completely unavailable upon login. The root cause is within 
the `libkysdk-system` package, specifically in how `kdk_system_get_eUser` 
handles D-Bus interactions. Updating `libkysdk-system` resolves the underlying 
D-Bus crash and restores Bluetooth functionality for the user.

[Test Plan]
1. Boot a standard Ubuntu Kylin 26.04 system.
2. Check the status of the Bluetooth service: `systemctl status 
bluetoothService`
3. Observe that the service fails and a crash file is generated in 
`/var/crash/`.
4. Enable the proposed repository and upgrade the `libkysdk-system` package to 
the patched version.
5. Reboot the system.
6. Verify that `/usr/bin/bluetoothService` is now in an 'active (running)' 
state.
7. Confirm that no new coredumps are generated in `/var/crash/`.

[Where problems could occur]
`libkysdk-system` (specifically `libkysysinfo.so.3`) is a foundational SDK 
library used by various UKUI desktop components. The fix modifies the internal 
D-Bus handling within `kdk_system_get_eUser`. If the fix introduces logic 
errors, it could impact other UKUI components (like the panel or sidebar) that 
query current user information, potentially causing them to fail or crash. 
Regression testing will include verifying general desktop login and UKUI panel 
stability to ensure they continue functioning properly alongside the restored 
Bluetooth service.

** Affects: libkysdk-system (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  1) lsb_release -rd:
  Description: Ubuntu Kylin 26.04
  
  2) apt-cache policy pkgname:
- Package: libkysdk-system (Current version in Ubuntu Kylin 26.04)
+ Package: libkysdk-system (3.0.1.2-0ubuntu1)
  
  3) What you expected to happen:
  The `/usr/bin/bluetoothService` should start normally during system boot 
without any errors, allowing the system to provide standard Bluetooth 
functionality.
  
  4) What happened instead:
- Immediately after system startup, `/usr/bin/bluetoothService` (provided by 
`ukui-bluetooth`) crashes and generates a coredump. 
+ Immediately after system startup, `/usr/bin/bluetoothService` (provided by 
`ukui-bluetooth`) crashes and generates a coredump.
  According to the stack trace, the segmentation fault occurs in the D-Bus 
message handling (`dbus_message_iter_recurse` in `libdbus-1.so.3`), which is 
triggered by a call to `kdk_system_get_eUser` from `libkysysinfo.so.3` (part of 
the `libkysdk-system` package) during initialization.
  
  ==============================================
  SRU JUSTIFICATION
  ==============================================
  
  [Impact]
  On Ubuntu Kylin 26.04, the crash of `/usr/bin/bluetoothService` renders 
Bluetooth services completely unavailable upon login. The root cause is within 
the `libkysdk-system` package, specifically in how `kdk_system_get_eUser` 
handles D-Bus interactions. Updating `libkysdk-system` resolves the underlying 
D-Bus crash and restores Bluetooth functionality for the user.
  
  [Test Plan]
  1. Boot a standard Ubuntu Kylin 26.04 system.
  2. Check the status of the Bluetooth service: `systemctl status 
bluetoothService`
  3. Observe that the service fails and a crash file is generated in 
`/var/crash/`.
  4. Enable the proposed repository and upgrade the `libkysdk-system` package 
to the patched version.
  5. Reboot the system.
  6. Verify that `/usr/bin/bluetoothService` is now in an 'active (running)' 
state.
  7. Confirm that no new coredumps are generated in `/var/crash/`.
  
  [Where problems could occur]
  `libkysdk-system` (specifically `libkysysinfo.so.3`) is a foundational SDK 
library used by various UKUI desktop components. The fix modifies the internal 
D-Bus handling within `kdk_system_get_eUser`. If the fix introduces logic 
errors, it could impact other UKUI components (like the panel or sidebar) that 
query current user information, potentially causing them to fail or crash. 
Regression testing will include verifying general desktop login and UKUI panel 
stability to ensure they continue functioning properly alongside the restored 
Bluetooth service.

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

Title:
  [SRU] /usr/bin/bluetoothService crashes in kdk_system_get_eUser during
  startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libkysdk-system/+bug/2151287/+subscriptions


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

Reply via email to