Bug 478147 - fwupd shows segmentation fault
Summary: fwupd shows segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages Unstable Edition (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-06 06:57 UTC by Dennis
Modified: 2024-09-11 07:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis 2023-12-06 06:57:02 UTC
SUMMARY
fwupd-service does not run (core-dump) and fwupdmgr/fwupdtool shows segmentation fault.


STEPS TO REPRODUCE
1. pkcon update to latest
2. `sudo systemctl status fwupd.service`
3. `sudo fwupdtool refresh` && `sudo fwupdmgr get-updates`

OBSERVED RESULT
1. `sudo systemctl status fwupd.service
2. `fwupd.service - Firmware update daemon`
```
     Loaded: loaded (/lib/systemd/system/fwupd.service; static)
     Active: failed (Result: core-dump) since Wed 2023-12-06 07:32:01 CET; 10min ago
       Docs: https://fwupd.org/
    Process: 32744 ExecStart=/usr/libexec/fwupd/fwupd (code=dumped, signal=SEGV)
   Main PID: 32744 (code=dumped, signal=SEGV)
        CPU: 1.345s

dec 06 07:31:57 xps13-edge systemd[1]: Starting Firmware update daemon...
dec 06 07:31:58 xps13-edge fwupd[32744]: 06:31:58.395 FuEngine             failed to add device usb:06:00:01:02: No de>
dec 06 07:31:59 xps13-edge fwupd[32744]: 06:31:59.466 FuPluginIntelMe      failed to get public key using /fpf/OemCred>
dec 06 07:32:01 xps13-edge fwupd[32744]: 06:32:01.051 FuCommon             fu_path_get_files: assertion 'path != NULL'>
dec 06 07:32:01 xps13-edge systemd[1]: fwupd.service: Main process exited, code=dumped, status=11/SEGV
dec 06 07:32:01 xps13-edge systemd[1]: fwupd.service: Failed with result 'core-dump'.
dec 06 07:32:01 xps13-edge systemd[1]: Failed to start Firmware update daemon.
dec 06 07:32:01 xps13-edge systemd[1]: fwupd.service: Consumed 1.345s CPU time.
```
2. `sudo fwupdtool refresh`
```
Loading…                 [***************                        ]06:42:49.363 FuEngine             failed to add device usb:06:00:01:02: No device GType set
Loading…                 [*******************                    ]06:42:50.458 FuPluginIntelMe      failed to get public key using /fpf/OemCred: generic failure [0xb]
Loading…                 [************************************** ]06:42:51.949 FuCommon             fu_path_get_files: assertion 'path != NULL' failed
Segmentation fault
```
3. `sudo fwupdmgr get-updates`
```
Failed to connect to daemon: Error calling StartServiceByName for org.freedesktop.fwupd: Failed to activate service 'org.freedesktop.fwupd': timed out (service_start_timeout=25000ms)
```
EXPECTED RESULT
1. the system service fwupd.service should be running, yes?

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

`sudo fwupdtool --version`:
```
Loading…                 [************************************** ]06:42:40.741 FuEngine             failed to update history database: device ID a45df35ac0e948ee180fe216a5f703f32dda163f was not found

compile   org.freedesktop.fwupd         1.9.7
compile   com.hughsie.libxmlb           0.3.14
compile   com.hughsie.libjcat           0.1.9
runtime   org.freedesktop.fwupd-efi     1.4
compile   org.freedesktop.gusb          0.3.10
runtime   org.freedesktop.gusb          0.3.10
runtime   org.freedesktop.fwupd         1.9.7
runtime   org.kernel                    6.2.0-37-generic
```

ADDITIONAL INFORMATION
- apt packages:
```
fwupd-signed/jammy-updates,now 1.51.1~22.04.1+1.4-0ubuntu0.1 amd64 [installed,automatic]
fwupd/jammy,now 1.9.7-1+22.04+jammy+unstable+build1 amd64 [installed,automatic]
libfwupd2/jammy,now 1.9.7-1+22.04+jammy+unstable+build1 amd64 [installed,automatic]
```
Comment 1 Dennis 2024-01-04 09:09:36 UTC
sudo fwupdmgr get-updates

results currently in: 
Failed to connect to daemon: Error calling StartServiceByName for org.freedesktop.fwupd: Failed to activate service 'org.freedesktop.fwupd': timed out (service_start_timeout=25000ms)

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Kernel Version: 6.2.0-39-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: XPS 13 9380
Comment 2 Dennis 2024-02-27 13:42:35 UTC
Seems to be fixed in:

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: XPS 13 9380