Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2129479 - xdg-desktop-portal-kde crashed when run by sddm during boot with Qt 5.15.6
Summary: xdg-desktop-portal-kde crashed when run by sddm during boot with Qt 5.15.6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sddm
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Bříza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedFreezeException
Depends On:
Blocks: F37FinalFreezeException F38FinalFreezeException
TreeView+ depends on / blocked
 
Reported: 2022-09-23 23:15 UTC by Matt Fagnani
Modified: 2023-03-21 01:54 UTC (History)
14 users (show)

Fixed In Version: sddm-0.19.0^git20221025.fc24321-1.fc37 sddm-0.19.0^git20230320.e07e805-2.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-21 01:54:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matt Fagnani 2022-09-23 23:15:59 UTC
Description of problem:

I updated a Fedora 37 KDE Plasma installation with updates-testing enabled. The update contained the Qt 5.15.6 update at https://bodhi.fedoraproject.org/updates/FEDORA-2022-d8cd3b01b7 I'm using sddm on Wayland with kwin_wayland compositor as configured by sddm-wayland-plasma-5.25.5-1.fc37

xdg-desktop-portal-kde crashed when run by the sddm user 989 during each boot with Qt 5.15.6. plasma-xdg-desktop-portal-kde.service was run with the control group /user.slice/user-989.slice/user/session.slice/plasma-xdg-desktop-portal-kde.service
The backtrace was as follows.

Program terminated with signal SIGABRT, Aborted.
Missing separate debuginfos, use: dnf debuginfo-install xdg-desktop-portal-kde-5.25.5-1.fc37.x86_64
--Type <RET> for more, q to quit, c to continue without paging--
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, 
    no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7f03425db980 (LWP 1236))]
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, 
    no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007f0341016d33 in __pthread_kill_internal (signo=6, threadid=<optimized out>)
    at pthread_kill.c:78
#2  0x00007f0340fc6aa6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007f0340fb07fc in __GI_abort () at abort.c:79
#4  0x00007f0340ab14d5 in qt_message_fatal (message=<synthetic pointer>..., context=...)
    at global/qlogging.cpp:1914
#5  QMessageLogger::fatal (this=this@entry=0x7ffc01bbb650, msg=msg@entry=0x7f0341d585a7 "%s")
    at global/qlogging.cpp:893
#6  0x00007f034196341b in init_platform (argv=<optimized out>, argc=<optimized out>, 
    platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...)
    at kernel/qguiapplication.cpp:1254
#7  QGuiApplicationPrivate::createPlatformIntegration (this=0x558a0f831680)
    at kernel/qguiapplication.cpp:1477
#8  0x00007f03419638c8 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>)
    at kernel/qguiapplication.cpp:1494
#9  0x00007f0340caeab1 in QCoreApplicationPrivate::init (this=this@entry=0x558a0f831680)
    at kernel/qcoreapplication.cpp:835
#10 0x00007f0341965c83 in QGuiApplicationPrivate::init (this=this@entry=0x558a0f831680)
    at kernel/qguiapplication.cpp:1523
#11 0x00007f03427b431d in QApplicationPrivate::init (this=0x558a0f831680)
    at kernel/qapplication.cpp:513
#12 0x0000558a0f661ad3 in main ()

The journal from the time of the crash included the following errors.

Sep 23 18:02:46 systemd[1024]: Starting plasma-xdg-desktop-portal-kde.service - Xdg Desktop Portal For KDE...
Sep 23 18:02:46 sddm-greeter[1077]: Failed to find a Kirigami platform plugin
Sep 23 18:02:46 audit[1236]: ANOM_ABEND auid=989 uid=989 gid=982 ses=1 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=1236 comm="xdg-desktop-por" exe="/usr/libexec/xdg-desktop-portal-kde" sig=6 res=1
Sep 23 18:02:46 xdg-desktop-portal-kde[1236]: qt.qpa.xcb: could not connect to display
Sep 23 18:02:46 xdg-desktop-portal-kde[1236]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Sep 23 18:02:46 xdg-desktop-portal-kde[1236]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                              
                                              Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.


Version-Release number of selected component (if applicable):
xdg-desktop-portal-kde-5.25.5-1.fc37.x86_64
qt5-qtbase-5.15.6-1.fc37.x86_64
sddm-wayland-plasma-5.25.5-1.fc37

How reproducible:
xdg-desktop-portal-kde crashed 14/14 boots when run by sddm with Qt 5.15.6

Steps to Reproduce:
1. Boot a Fedora 37 KDE Plasma installation with sddm-wayland-plasma-5.25.5-1.fc37 installed
2. Log in to Plasma on Wayland
3. start konsole
4. sudo dnf offline-upgrade download (with updates-testing enabled)
5. sudo dnf offline-upgrade reboot
6. On the boot after the upgrade, xdg-desktop-portal-kde crashes when run by sddm

Actual results:
xdg-desktop-portal-kde crashed when run by sddm during boot with Qt 5.15.6

Expected results:
xdg-desktop-portal-kde wouldn't crash when run by sddm during boot with Qt 5.15.6

Additional info:
xdg-desktop-portal-kde didn't crash during boot with Qt 5.15.5 or earlier. plasma-xdg-desktop-portal-kde.service ran normally when I loggged in to Plasma on Wayland as run with the cgroup /user.slice/user-1000.slice/user/session.slice/plasma-xdg-desktop-portal-kde.service

Comment 1 Adam Williamson 2022-10-12 10:36:26 UTC
I'm guessing this and https://bugzilla.redhat.com/show_bug.cgi?id=2133795 are likely the same. Is it OK with you if we close this as a dupe of that? This report is earlier, but that one has a full backtrace. Thanks!

Comment 2 Matt Fagnani 2022-10-12 15:41:59 UTC
(In reply to Adam Williamson from comment #1)
> I'm guessing this and https://bugzilla.redhat.com/show_bug.cgi?id=2133795
> are likely the same. Is it OK with you if we close this as a dupe of that?
> This report is earlier, but that one has a full backtrace. Thanks!

The trace was a generic Qt abort one so the errors from the journal were likely more informative and specific than the trace. https://bugzilla.redhat.com/show_bug.cgi?id=2133795 didn't explain that the crash started with Qt 5.15.6 and happened only when xdg-desktop-portal-kde was run by sddm. If you think it's better to mark this report as a duplicate of that one, that's fine with me. I don't recall being asked before a report of mine was marked as a duplicate before :) xdg-desktop-portal-kde crashed in the same way with Plasma 5.26.0 in Fedora-KDE-Live-x86_64-Rawhide-20221010.n.0.iso and earlier when I disabled autologin from sddm in System Settings and logged out to sddm.

Comment 3 Fedora Update System 2022-10-25 14:22:07 UTC
FEDORA-2022-24b141d508 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-24b141d508

Comment 4 Fedora Update System 2022-10-25 14:22:09 UTC
FEDORA-2022-239ba8f359 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-239ba8f359

Comment 5 Matt Fagnani 2022-10-25 16:13:37 UTC
I updated to sddm-0.19.0^git20221025.fc24321-1.fc37 from koji in Plasma 5.26.1 in a F37 KDE Plasma installation. xdg-desktop-portal-kde crashed when run by sddm during each of three boots with sddm-0.19.0^git20221025.fc24321-1.fc37 with the same trace and errors in the journal as I reported. The commit "disable automatic portal launching" at https://github.com/sddm/sddm/commit/fc24321541f6f65b7d1aac89cd82336ffd53e1a0 looks like it's intended to fix this problem, but it might not be sufficient to do so.

Comment 6 Fedora Update System 2022-10-26 16:18:25 UTC
FEDORA-2022-239ba8f359 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-239ba8f359`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-239ba8f359

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-10-26 18:31:42 UTC
FEDORA-2022-24b141d508 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-24b141d508`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-24b141d508

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-10-28 11:15:47 UTC
FEDORA-2022-24b141d508 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Blocker Bugs Application 2022-10-29 16:42:18 UTC
Proposed as a Freeze Exception for 37-final by Fedora user ngompa using the blocker tracking app because:

 Fixes crashes for xdg-desktop-portal-kde with KDE Plasma and should go along with Plasma 5.26.

Comment 10 Neal Gompa 2022-10-30 06:34:09 UTC
Fixing component for FE

Comment 11 Adam Williamson 2022-10-30 22:37:53 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/995 , marking accepted.

Comment 12 Matt Fagnani 2022-11-07 01:57:33 UTC
sddm on Wayland (and sddm on X) still crashed with sddm-0.19.0^git20221025.fc24321-1.fc37 each time it started. Nicolas Fella wrote "https://invent.kde.org/qt/qt/qtbase/-/commit/725ab072130ca3ce4104f4351e48fe50f57ae330 is needed for the fix to be effective" at https://bugs.kde.org/show_bug.cgi?id=458865#c60 So that patch might need to be added to qt5-qtbase to fix this crash. Thanks.

Comment 13 Fedora Update System 2022-11-08 01:49:06 UTC
FEDORA-2022-239ba8f359 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Matt Fagnani 2023-03-16 03:32:03 UTC
xdg-desktop-portal-kde has continued crashing each time sddm on Wayland started since sddm-0.19.0^git20221025.fc24321-1.fc37 was pushed so I'm reopening this report. xdg-desktop-portal-kde crashed twice each time sddm on Wayland started when run by the sddm user 989 with the same errors and traces in my F38 KDE Plasma installation with sddm-0.19.0^git20230306.572b128-1.fc38.x86_64, kwin-5.27.3-1.fc38.x86_64, and qt5-qtbase-5.15.8-6.fc38.x86_64. These crashes were followed by repeated errors like xdg-desktop-portal-gnome[1152]: Failed to initialize display server connection: Unsupported or missing session type ''  as I reported at https://bugzilla.redhat.com/show_bug.cgi?id=2176759 As I mentioned in comment 12, Nicolas Fella wrote "https://invent.kde.org/qt/qt/qtbase/-/commit/725ab072130ca3ce4104f4351e48fe50f57ae330 is needed for the fix to be effective" at https://bugs.kde.org/show_bug.cgi?id=458865#c60 That patch might need to be added to qt5-qtbase to fix this crash. Thanks.

Comment 15 Fedora Blocker Bugs Application 2023-03-16 03:40:03 UTC
Proposed as a Freeze Exception for 38-final by Fedora user mattf using the blocker tracking app because:

 xdg-desktop-portal-kde crashed twice each time sddm on Wayland started when run by the sddm user 989 with the same errors and traces as I reported for F37 in my F38 KDE Plasma installation with sddm-0.19.0^git20230306.572b128-1.fc38.x86_64, kwin-5.27.3-1.fc38.x86_64, and qt5-qtbase-5.15.8-6.fc38.x86_64. These crashes were followed by repeated errors like xdg-desktop-portal-gnome[1152]: Failed to initialize display server connection: Unsupported or missing session type ''  as I reported at https://bugzilla.redhat.com/show_bug.cgi?id=2176759 This problem was accepted as a freeze exception for F37 https://bugzilla.redhat.com/show_bug.cgi?id=2129479#c11 but the update sddm-0.19.0^git20221025.fc24321-1.fc37 wasn't sufficient to fix the problem. As I mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=2129479#c12  Nicolas Fella wrote "https://invent.kde.org/qt/qt/qtbase/-/commit/725ab072130ca3ce4104f4351e48fe50f57ae330 is needed for the fix to be effective" at https://bugs.kde.org/show_bug.cgi?id=458865#c60 That patch might need to be added to qt5-qtbase to fix this crash.

Comment 16 Matt Fagnani 2023-03-18 16:39:05 UTC
I updated to sddm-0.19.0^git20230312.d00b2ce-0.fc38.1 from Neal's COPR https://bugzilla.redhat.com/show_bug.cgi?id=2178971#c7 with Aleix's patch https://bugzilla.redhat.com/show_bug.cgi?id=2178971#c6 in my F38 KDE Plasma installation. I rebooted and logged in and out a few times. The xdg-desktop-portal-kde crashes didn't happen on boot. One xdg-desktop-portal-kde crash when run by sddm appeared to have happened when logging out along with crashes of plasmashell, org_kde_powerdevil, drkonqi, and xdg-desktop-portal-kde run by my user. I booted Fedora-KDE-Live-x86_64-38-20230317.n.0.iso in a QEMU/KVM VM with GNOME Boxes and logged out and in 2 times, and the xdg-desktop-portal-kde crashes happened 5 times each when sddm started. I updated to sddm-0.19.0^git20230312.d00b2ce-0.fc38.1 from a VT and ran sudo systemctl restart sddm. I logged in and out of Plasma a few times. xdg-desktop-portal-kde crashes didn't happen when run by sddm. Aleix's patch appears to prevent the xdg-desktop-portal-kde crashes when run by sddm most if not all of the time.

Comment 17 Fedora Update System 2023-03-20 15:01:09 UTC
FEDORA-2023-dad8b1e03f has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-dad8b1e03f

Comment 18 Fedora Update System 2023-03-21 01:54:58 UTC
FEDORA-2023-dad8b1e03f has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.