Bug 508085

Summary: xdg-desktop-portal-kde crashes when opening and closing file dialog
Product: [Plasma] xdg-desktop-portal-kde Reporter: Nicolas Fella <nicolas.fella>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: crash CC: aleixpol, kde, kde, kde, kdedev, nate, nyanpasu64, rodrigo.pedra, sitter
Priority: HI Keywords: drkonqi
Version First Reported In: 6.4.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=508745
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/232084/events/7a05269aac6d45bbb49dbfda9909fb36/
Attachments: Reproducing program

Description Nicolas Fella 2025-08-10 14:57:26 UTC
Application: xdg-desktop-portal-kde (6.4.4)

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.1
Frameworks Version: 6.17.0
Operating System: Linux 6.15.9-201.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)"
DrKonqi: 6.4.4 [CoredumpBackend]

-- Information about the crash:
- Open Firefox
- Press Ctrl+S
- Once the file dialog opens quickly press Esc

The crash can be reproduced every time.

-- Backtrace:
Application: xdg-desktop-portal-kde (xdg-desktop-portal-kde), signal: Segmentation fault

Downloading 30.51 M separate debug info for /usr/libexec/xdg-desktop-portal-kde...
[New LWP 3343]
[New LWP 3429]
[New LWP 3431]
[New LWP 186547]
[New LWP 3424]
[New LWP 3426]
[New LWP 3428]
[New LWP 3430]
[New LWP 3371]
[New LWP 3391]
[New LWP 3427]
[New LWP 3390]
[New LWP 186557]
[New LWP 186548]
[New LWP 186549]
[New LWP 186582]
[New LWP 186572]
[New LWP 186550]
[New LWP 186574]
[New LWP 186556]
[New LWP 186571]
[New LWP 186573]

warning: BFD: warning: /home/nico/.cache/debuginfod_client/126a08bf502f4950b215dc773e52df8dcf50c393/debuginfo has a section extending past end of file

warning: `/home/nico/.cache/debuginfod_client/126a08bf502f4950b215dc773e52df8dcf50c393/debuginfo': can't read symbols: file format not recognized.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/xdg-desktop-portal-kde'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fea1228209c in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fea0cf60dc0 (LWP 3343))]
Cannot QML trace cores :(
add symbol table from file "/lib64/libc.so.6"
warning: `/home/nico/.cache/debuginfod_client/126a08bf502f4950b215dc773e52df8dcf50c393/debuginfo': can't read symbols: file format not recognized.
Downloading 1.52 M separate debug info for /lib64/libKF6Crash.so.6...
add symbol table from file "/lib64/libKF6Crash.so.6"
Downloading 115.50 M separate debug info for /lib64/libQt6Widgets.so.6...
Downloading 28.03 M separate debug info for /home/nico/.cache/debuginfod_client/a87e702dbb5b7144a1e0831769683d5e68ea7acc/debuginfo...
add symbol table from file "/lib64/libQt6Widgets.so.6"
Downloading 18.21 M separate debug info for /lib64/libKF6KIOFileWidgets.so.6...
Downloading 4.55 M separate debug info for /home/nico/.cache/debuginfod_client/2be0c8fe30938ed855af93ed7a4b17c63b24150d/debuginfo...
add symbol table from file "/lib64/libKF6KIOFileWidgets.so.6"
Downloading 86.28 M separate debug info for /lib64/libQt6Core.so.6...
add symbol table from file "/lib64/libQt6Core.so.6"
add symbol table from file "/lib64/libglib-2.0.so.0"
add symbol table from file "/usr/libexec/xdg-desktop-portal-kde"
Downloading 2.43 K source file /usr/src/debug/xdg-desktop-portal-kde-6.4.4-1.fc42.x86_64/src/xdg-desktop-portal-kde.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp...
Downloading 14.21 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qtimerinfo_unix.cpp...
Downloading 145.23 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp...
Downloading 6.61 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/corelib/Core_autogen/include/moc_qtimer.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs.h...
Downloading 28.70 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h...
Downloading 109.68 K source file /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp...
Downloading 113.96 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qcombobox.cpp...
Downloading 68.68 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qlineedit.cpp...
Downloading 15.75 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qwidgetlinecontrol_p.h...
Downloading 72.35 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/text/qstring.h...
Downloading 19.90 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/tools/qarraydatapointer.h...
Downloading 34.56 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp...
Downloading 25.87 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp...
add symbol table from file "/lib64/libgallium-25.1.4.so"
Downloading 14.47 M separate debug info for /lib64/libQt6WaylandClient.so.6...
Downloading 6.11 M separate debug info for /home/nico/.cache/debuginfod_client/f44df1d165f0d6c2071f3fd43fa99853ee5ed2c8/debuginfo...
add symbol table from file "/lib64/libQt6WaylandClient.so.6"
Downloading source file /usr/src/debug/qt6-qtwayland-6.9.1-3.fc42.x86_64/src/client/qwaylanddisplay.cpp...
Downloading 17.63 M separate debug info for /lib64/libQt6DBus.so.6...
add symbol table from file "/lib64/libQt6DBus.so.6"
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/dbus/qdbusconnectionmanager.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread.cpp...
Downloading 39.79 M separate debug info for /lib64/libQt6Network.so.6...
add symbol table from file "/lib64/libQt6Network.so.6"
Downloading 30.36 M separate debug info for /lib64/libKF6KIOCore.so.6...
add symbol table from file "/lib64/libKF6KIOCore.so.6"
Downloading source file /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/workerthread.cpp...
Downloading 45.11 K source file /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/slavebase.cpp...
Downloading 6.30 K source file /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connection.cpp...
Downloading 9.13 K source file /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connectionbackend.cpp...
Downloading source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qabstractsocket.cpp...
Downloading 48.00 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine.cpp...
Downloading 49.17 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine_unix.cpp...
Downloading 4.13 K source file /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp...
[Current thread is 11 (Thread 0x7fe9d7fff6c0 (LWP 3427))]

Thread 22 (Thread 0x7fe9a48e86c0 (LWP 186573)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x55b69d0c7cb0, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x55b69d1aaed0, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x55b69d1aaec0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x55b69d1aaec0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 21 (Thread 0x7fe9d6ffd6c0 (LWP 186571)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b8020180, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b8001450, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b8001440) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b8001440) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 20 (Thread 0x7fe9a77fe6c0 (LWP 186556)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227c9a4 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fea122f6136 in ppoll () from /lib64/libc.so.6
#4  0x00007fea12ac2821 in ppoll (__fds=<optimized out>, __nfds=<optimized out>, __timeout=<optimized out>, __ss=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:100
#5  qt_ppoll (fds=0x7fe9a77fd4c0, nfds=1, timeout_ts=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:103
#6  qt_ppoll (fds=0x7fe9a77fd4c0, nfds=1, timeout_ts=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:100
#7  qt_safe_poll (fds=fds@entry=0x7fe9a77fd4c0, nfds=nfds@entry=1, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:126
#8  0x00007fea11b1b592 in QNativeSocketEnginePrivate::nativeSelect (this=<optimized out>, deadline=..., checkRead=<optimized out>, checkWrite=<optimized out>, selectForRead=0x7fe9a77fd59e, selectForWrite=0x7fe9a77fd59f) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine_unix.cpp:1372
#9  0x00007fea11a8ec93 in QNativeSocketEngine::waitForReadOrWrite (this=0x7fe9b0002870, readyToRead=<optimized out>, readyToWrite=<optimized out>, checkRead=<optimized out>, checkWrite=<optimized out>, deadline=..., timedOut=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine.cpp:1084
#10 0x00007fea11a8a495 in QAbstractSocket::waitForReadyRead (this=0x7fe9b0002478, msecs=-1) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qabstractsocket.cpp:2169
#11 0x00007fea146854b8 in KIO::ConnectionBackend::waitForIncomingTask (this=0x7fe9b0002060, ms=-1) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connectionbackend.cpp:153
#12 KIO::Connection::waitForIncomingTask (this=<optimized out>, ms=-1) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connection.cpp:214
#13 0x00007fea146c7669 in KIO::SlaveBase::dispatchLoop() [clone .constprop.0] (this=<optimized out>) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/slavebase.cpp:353
#14 0x00007fea14762a07 in KIO::WorkerThread::run (this=0x55b69cd12350) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/workerthread.cpp:47
#15 0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#16 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#17 QThreadPrivate::start (arg=0x55b69cd12350) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#18 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#19 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 19 (Thread 0x7fe993fff6c0 (LWP 186574)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x55b69d1aaf80, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x55b69d1a7bb0, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x55b69d1a7ba0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x55b69d1a7ba0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 18 (Thread 0x7fe9d57fa6c0 (LWP 186550)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b80228e0, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b800c8e0, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b800c8d0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b800c8d0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 17 (Thread 0x7fe9d67fc6c0 (LWP 186572)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b800b510, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b800f2c0, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b800f2b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b800f2b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 16 (Thread 0x7fe9dd7fa6c0 (LWP 186582)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x55b69cc84d70, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x55b69cc854a0, mutex=mutex@entry=0x7fe9f4005aa8, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x55b69cc85490) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x55b69cc85490) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 15 (Thread 0x7fe9d5ffb6c0 (LWP 186549)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b8032610, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b802a0c0, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b802a0b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b802a0b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 14 (Thread 0x7fe9d77fe6c0 (LWP 186548)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b8028070, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b802d810, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b802d800) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b802d800) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 13 (Thread 0x7fe9a6ffd6c0 (LWP 186557)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227c9a4 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fea122f6136 in ppoll () from /lib64/libc.so.6
#4  0x00007fea12ac2821 in ppoll (__fds=<optimized out>, __nfds=<optimized out>, __timeout=<optimized out>, __ss=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:100
#5  qt_ppoll (fds=0x7fe9a6ffc4c0, nfds=1, timeout_ts=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:103
#6  qt_ppoll (fds=0x7fe9a6ffc4c0, nfds=1, timeout_ts=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:100
#7  qt_safe_poll (fds=fds@entry=0x7fe9a6ffc4c0, nfds=nfds@entry=1, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcore_unix.cpp:126
#8  0x00007fea11b1b592 in QNativeSocketEnginePrivate::nativeSelect (this=<optimized out>, deadline=..., checkRead=<optimized out>, checkWrite=<optimized out>, selectForRead=0x7fe9a6ffc59e, selectForWrite=0x7fe9a6ffc59f) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine_unix.cpp:1372
#9  0x00007fea11a8ec93 in QNativeSocketEngine::waitForReadOrWrite (this=0x7fe99c002870, readyToRead=<optimized out>, readyToWrite=<optimized out>, checkRead=<optimized out>, checkWrite=<optimized out>, deadline=..., timedOut=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qnativesocketengine.cpp:1084
#10 0x00007fea11a8a495 in QAbstractSocket::waitForReadyRead (this=0x7fe99c002478, msecs=-1) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/network/socket/qabstractsocket.cpp:2169
#11 0x00007fea146854b8 in KIO::ConnectionBackend::waitForIncomingTask (this=0x7fe99c002060, ms=-1) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connectionbackend.cpp:153
#12 KIO::Connection::waitForIncomingTask (this=<optimized out>, ms=-1) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/connection.cpp:214
#13 0x00007fea146c7669 in KIO::SlaveBase::dispatchLoop() [clone .constprop.0] (this=<optimized out>) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/slavebase.cpp:353
#14 0x00007fea14762a07 in KIO::WorkerThread::run (this=0x55b69c817ef0) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/core/workerthread.cpp:47
#15 0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#16 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#17 QThreadPrivate::start (arg=0x55b69c817ef0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#18 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#19 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 12 (Thread 0x7fe9fe3ff6c0 (LWP 3390)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227c9a4 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fea122f5c0e in poll () from /lib64/libc.so.6
#4  0x00007fea15a1a559 in poll (__fds=0x7fe9fe3fe780, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44
#5  QtWaylandClient::EventThread::run (this=0x55b69c84fbe0) at /usr/src/debug/qt6-qtwayland-6.9.1-3.fc42.x86_64/src/client/qwaylanddisplay.cpp:183
#6  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#8  QThreadPrivate::start (arg=0x55b69c84fbe0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#9  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#10 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 11 (Thread 0x7fe9d7fff6c0 (LWP 3427)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69c95a020) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 10 (Thread 0x7fe9fdbfe6c0 (LWP 3391)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227c9a4 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fea122f5c0e in poll () from /lib64/libc.so.6
#4  0x00007fea15a1a559 in poll (__fds=0x7fe9fdbfd780, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44
#5  QtWaylandClient::EventThread::run (this=0x55b69c83cb60) at /usr/src/debug/qt6-qtwayland-6.9.1-3.fc42.x86_64/src/client/qwaylanddisplay.cpp:183
#6  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#8  QThreadPrivate::start (arg=0x55b69c83cb60) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#9  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#10 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fe9fefff6c0 (LWP 3371)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227c9a4 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fea122f6136 in ppoll () from /lib64/libc.so.6
#4  0x00007fea118f48b0 in ppoll (__fds=0x55b69c7d1d70, __nfds=3, __timeout=0x0, __ss=0x0) at /usr/include/bits/poll2.h:101
#5  g_main_context_poll_unlocked (priority=<optimized out>, context=0x7fe9f8000c80, timeout_usec=<optimized out>, fds=0x55b69c7d1d70, n_fds=3) at ../glib/gmain.c:4632
#6  g_main_context_iterate_unlocked (context=context@entry=0x7fe9f8000c80, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4309
#7  0x00007fea118f4973 in g_main_context_iteration (context=0x7fe9f8000c80, may_block=1) at ../glib/gmain.c:4379
#8  0x00007fea12c0f9ad in QEventDispatcherGlib::processEvents (this=0x7fe9f8000b70, flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#9  0x00007fea12907b03 in QEventLoop::exec (this=this@entry=0x7fe9feffe730, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h:77
#10 0x00007fea12a2808d in QThread::exec (this=this@entry=0x7fea13bfecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread.cpp:659
#11 0x00007fea13b4c821 in QDBusConnectionManager::run (this=0x7fea13bfecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/dbus/qdbusconnectionmanager.cpp:144
#12 0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#13 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#14 QThreadPrivate::start (arg=0x7fea13bfecc0 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#15 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#16 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fe9de7fc6c0 (LWP 3430)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69ca26840) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fe9df7fe6c0 (LWP 3428)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69c98f200) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fe9dffff6c0 (LWP 3426)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69c987590) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fe9fd0a66c0 (LWP 3424)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69c91dfc0) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fe9dcff96c0 (LWP 186547)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f8a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fea12ad3a26 in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:57
#5  QWaitConditionPrivate::wait (this=0x7fe9b802f840, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:65
#6  QWaitCondition::wait (this=this@entry=0x7fe9b8022b40, mutex=mutex@entry=0x7fe9b8003c78, deadline=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qwaitcondition_unix.cpp:145
#7  0x00007fea12ad05f7 in QThreadPoolThread::run (this=0x7fe9b8022b30) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthreadpool.cpp:119
#8  0x00007fea12ac5b9f in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:434
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:366
#10 QThreadPrivate::start (arg=0x7fe9b8022b30) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/thread/qthread_unix.cpp:394
#11 0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#12 0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fe9ddffb6c0 (LWP 3431)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69ca6b3e0) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fe9deffd6c0 (LWP 3429)):
#0  0x00007fea12288642 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fea1227c95a in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fea1227cfcc in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fea1227f69e in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#4  0x00007fe9ed54715d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:111
#5  0x00007fe9ed5010fc in util_queue_thread_func (input=input@entry=0x55b69c9e1cd0) at ../src/util/u_queue.c:275
#6  0x00007fe9ed54708c in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:43
#7  0x00007fea12280154 in start_thread () from /lib64/libc.so.6
#8  0x00007fea12302cac in __clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7fea0cf60dc0 (LWP 3343)):
[KCrash Handler]
#4  QArrayDataPointer<char16_t>::QArrayDataPointer (this=0x7ffc16869860, other=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/tools/qarraydatapointer.h:37
#5  QString::QString (this=0x7ffc16869860, other=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/text/qstring.h:1340
#6  QWidgetLineControl::text (this=0xb1) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qwidgetlinecontrol_p.h:210
#7  QLineEdit::text (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qlineedit.cpp:289
#8  0x00007fea13da7185 in QComboBox::currentText (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qcombobox.cpp:2262
#9  0x00007fea15d00608 in KFileWidgetPrivate::locationEditCurrentText() const [clone .isra.0] (this=0x55b69d2862a0) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp:3005
#10 0x00007fea15d0296b in KFileWidgetPrivate::updateLocationEditExtension (this=this@entry=0x55b69d2862a0, lastExtension=...) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp:2545
#11 0x00007fea15d037d8 in KFileWidgetPrivate::updateAutoSelectExtension (this=<optimized out>) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp:2481
#12 0x00007fea15cfbb97 in KFileWidgetPrivate::updateAutoSelectExtension (this=0x55b69d2862a0) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp:2365
#13 KFileWidgetPrivate::slotMimeFilterChanged (this=0x55b69d2862a0) at /usr/src/debug/kf6-kio-6.17.0-1.fc42.x86_64/src/filewidgets/kfilewidget.cpp:1613
#14 0x00007fea129657ba in QtPrivate::QSlotObjectBase::call (this=0x55b69ccec1c0, r=0x55b69d1eeaa0, a=0x7ffc16869dd0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461
#15 doActivate<false> (sender=0x55b69d2863b8, signal_index=3, argv=argv@entry=0x7ffc16869dd0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146
#16 0x00007fea1295c089 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fea12ea4060 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc16869dd0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4206
#17 0x00007fea12975a83 in QMetaObject::activate<void, QTimer::QPrivateSignal> (sender=<optimized out>, mo=0x7fea12ea4060 <QTimer::staticMetaObject>, local_signal_index=0, ret=0x0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs.h:306
#18 QTimer::timeout (this=<optimized out>, _t1=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/corelib/Core_autogen/include/moc_qtimer.cpp:182
#19 0x00007fea129565b5 in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:1461
#20 0x00007fea13c3d97f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55b69d2863b8, e=0x7ffc16869f80) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#21 0x00007fea128f9f38 in QCoreApplication::notifyInternal2 (receiver=0x55b69d2863b8, event=0x7ffc16869f80) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#22 0x00007fea128fa19d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#23 0x00007fea12ac4238 in QTimerInfoList::activateTimers (this=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qtimerinfo_unix.cpp:426
#24 0x00007fea12c0f6f1 in timerSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:152
#25 idleTimerSourceDispatch (source=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:199
#26 0x00007fea118eb880 in g_main_dispatch (context=0x7fe9f8000f00) at ../glib/gmain.c:3398
#27 g_main_context_dispatch_unlocked (context=0x7fe9f8000f00) at ../glib/gmain.c:4249
#28 0x00007fea118f47c8 in g_main_context_iterate_unlocked (context=context@entry=0x7fe9f8000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4314
#29 0x00007fea118f4973 in g_main_context_iteration (context=0x7fe9f8000f00, may_block=1) at ../glib/gmain.c:4379
#30 0x00007fea12c0f9ad in QEventDispatcherGlib::processEvents (this=0x55b69c7c8ac0, flags=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#31 0x00007fea12907b03 in QEventLoop::exec (this=this@entry=0x7ffc1686a230, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/global/qflags.h:77
#32 0x00007fea12903419 in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#33 0x000055b69753e6fc in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/xdg-desktop-portal-kde-6.4.4-1.fc42.x86_64/src/xdg-desktop-portal-kde.cpp:68

Reported using DrKonqi
Comment 1 Nicolas Fella 2025-08-10 14:59:53 UTC
Sentry has lots of similar-ish issues where we crash somewhere in KFileWidget, starting with 6.4

Based on that I suspect https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/6d48d32ef8c125687208519d8477b1e315f14db5 causes this
Comment 2 Kai Uwe Broulik 2025-08-10 15:04:20 UTC
QWidgetLineControl::text (this=0xb1) 

We got a nullptr somewhere
Comment 3 Nicolas Fella 2025-08-10 16:51:40 UTC
Created attachment 183934 [details]
Reproducing program

I can reproduce it relatively reliably with this program.

It depends a bit on timing/number of files in the relevant directory though
Comment 4 Nicolas Fella 2025-08-10 22:15:52 UTC
=================================================================
==199634==ERROR: AddressSanitizer: heap-use-after-free on address 0x7c4f162b62e8 at pc 0x7f0f252b31e3 bp 0x7ffcae7362a0 sp 0x7ffcae736298
READ of size 8 at 0x7c4f162b62e8 thread T0
    #0 0x7f0f252b31e2 in QString::size() const /home/nico/kde-qtdev/usr/include/QtCore/qstring.h:239
    #1 0x7f0f25368d31 in QConcatenable<QString>::size(QString const&) /home/nico/kde-qtdev/usr/include/QtCore/qstringbuilder.h:251
    #2 0x7f0f253da2d9 in QConcatenable<QStringBuilder<QStringBuilder<QStringView, QStringView&>, QString&> >::size(QStringBuilder<QStringBuilder<QStringV
    #3 0x7f0f253d8397 in QString QStringBuilder<QStringBuilder<QStringView, QStringView&>, QString&>::convertTo<QString>() const /home/nico/kde-qtdev/usr
    #4 0x7f0f253d5866 in QStringBuilder<QStringBuilder<QStringView, QStringView&>, QString&>::operator QString() const /home/nico/kde-qtdev/usr/include/Q
    #5 0x7f0f253b3fda in KFileWidgetPrivate::updateLocationEditExtension(QString const&) /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:254
    #6 0x7f0f253b34da in KFileWidgetPrivate::updateAutoSelectExtension() /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:2481
    #7 0x7f0f253a68e0 in KFileWidgetPrivate::slotMimeFilterChanged() /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:1613
    #8 0x7f0f253a03c9 in operator() /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:1361
    #9 0x7f0f253c9b85 in operator() /home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:116
    #10 0x7f0f253cb653 in call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>, QtPrivate::List<>, void, KFileWidgetPrivat
    #11 0x7f0f253c9c8b in call /home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:115
    #12 0x7f0f253c6276 in call<QtPrivate::List<>, void> /home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:337
    #13 0x7f0f253c4e1c in impl /home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:547
    #14 0x7f0f19eeeeb2 in QtPrivate::QSlotObjectBase::call(QObject*, void**) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobjectdefs_impl.h:46
    #15 0x7f0f19eeeeb2 in void doActivate<false>(QObject*, int, void**) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:4284
    #16 0x7f0f19ed2bca in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject
    #17 0x7f0f19f24c19 in void QMetaObject::activate<void, QTimer::QPrivateSignal>(QObject*, QMetaObject const*, int, void*, QTimer::QPrivateSignal const
    #18 0x7f0f19f24c19 in QTimer::timeout(QTimer::QPrivateSignal) /home/nico/workspace/qt6-dev/qtbase/src/corelib/Core_autogen/include/moc_qtimer.cpp:182
    #19 0x7f0f19f25e0d in QTimer::timerEvent(QTimerEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qtimer.cpp:322
    #20 0x7f0f19ecaea2 in QObject::event(QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:1440
    #21 0x7f0f1ce859fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3
    #22 0x7f0f1cea0f8a in QApplication::notify(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3254
    #23 0x7f0f19dbf37b in QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cp
    #24 0x7f0f19dbf566 in QCoreApplication::sendEvent(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1549
    #25 0x7f0f1a2e978a in QTimerInfoList::activateTimers() /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:426
    #26 0x7f0f1a67ce92 in timerSourceDispatch /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:152
    #27 0x7f0f1a67ceff in idleTimerSourceDispatch /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:199
    #28 0x7f0f19509eb2 in g_main_dispatch ../glib/gmain.c:3398
    #29 0x7f0f19509eb2 in g_main_context_dispatch_unlocked ../glib/gmain.c:4249
    #30 0x7f0f1950bce7 in g_main_context_iterate_unlocked ../glib/gmain.c:4314
    #31 0x7f0f1950c52b in g_main_context_iteration ../glib/gmain.c:4379
    #32 0x7f0f1a67d56f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kern
    #33 0x7f0f1c422ebb in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6-dev/qtbase/src/gui/platfo
    #34 0x7f0f19ddf609 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventl
    #35 0x7f0f19de0c04 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventloop.cpp:1
    #36 0x7f0f19dc9253 in QCoreApplication::exec() /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1452
    #37 0x7f0f1b456e71 in QGuiApplication::exec() /home/nico/workspace/qt6-dev/qtbase/src/gui/kernel/qguiapplication.cpp:1973
    #38 0x7f0f1ce82866 in QApplication::exec() /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:2571
    #39 0x0000007b599a in main /home/nico/kde-qtdev/src/xdg-desktop-portal-kde/src/xdg-desktop-portal-kde.cpp:68
    #40 0x7f0f1922b37a in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #41 0x7f0f1922b44a in __libc_start_main_impl ../csu/libc-start.c:360
    #42 0x000000433094 in _start ../sysdeps/x86_64/start.S:115
0x7c4f162b62e8 is located 168 bytes inside of 440-byte region [0x7c4f162b6240,0x7c4f162b63f8)
freed by thread T0 here:
    #0 0x7f0f25f2369b in operator delete(void*, unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:155
    #1 0x7f0f253d6780 in std::default_delete<KFileWidgetPrivate>::operator()(KFileWidgetPrivate*) const /usr/include/c++/15/bits/unique_ptr.h:93
    #2 0x7f0f253d1e44 in std::unique_ptr<KFileWidgetPrivate, std::default_delete<KFileWidgetPrivate> >::~unique_ptr() /usr/include/c++/15/bits/unique_ptr
    #3 0x7f0f25390ff9 in KFileWidget::~KFileWidget() /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:504
    #4 0x7f0f25391089 in KFileWidget::~KFileWidget() /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:504
    #5 0x7f0f19ed7de5 in QObjectPrivate::deleteChildren() /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:2264
    #6 0x7f0f1cfcc650 in QWidget::~QWidget() /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qwidget.cpp:1571
    #7 0x7f0f1d6fee8d in QDialog::~QDialog() /home/nico/workspace/qt6-dev/qtbase/src/widgets/dialogs/qdialog.cpp:402
    #8 0x00000058de6c in FileDialog::~FileDialog() /home/nico/kde-qtdev/src/xdg-desktop-portal-kde/src/filechooser.cpp:142
    #9 0x00000058ded1 in FileDialog::~FileDialog() /home/nico/kde-qtdev/src/xdg-desktop-portal-kde/src/filechooser.cpp:142
    #10 0x7f0f19ecad87 in QObject::event(QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:1450
    #11 0x7f0f1cfe01cc in QWidget::event(QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qwidget.cpp:9448
    #12 0x7f0f1ce859fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3
    #13 0x7f0f1ce9bff5 in QApplication::notify(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3250
    #14 0x7f0f19dbf37b in QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cp
    #15 0x7f0f19dbf566 in QCoreApplication::sendEvent(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1549
    #16 0x7f0f19dc18bc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/q
    #17 0x7f0f19dc1bd7 in QCoreApplication::sendPostedEvents(QObject*, int) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1
    #18 0x7f0f1a67f17f in postEventSourceDispatch /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
    #19 0x7f0f19509eb2 in g_main_dispatch ../glib/gmain.c:3398
    #20 0x7f0f19509eb2 in g_main_context_dispatch_unlocked ../glib/gmain.c:4249
previously allocated by thread T0 here:
    #0 0x7f0f25f2273b in operator new(unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:86
    #1 0x7f0f2538e921 in KFileWidget::KFileWidget(QUrl const&, QWidget*) /home/nico/kde-qtdev/src/kio/src/filewidgets/kfilewidget.cpp:353
    #2 0x00000058d086 in FileDialog::FileDialog(QDialog*, QFlags<Qt::WindowType>) /home/nico/kde-qtdev/src/xdg-desktop-portal-kde/src/filechooser.cpp:111
    #3 0x00000059ad00 in FileChooserPortal::SaveFile(QDBusObjectPath const&, QString const&, QString const&, QString const&, QMap<QString, QVariant> cons
    #4 0x000000439a50 in FileChooserPortal::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/nico/kde-qtdev/build/xdg-desktop-portal-kd
    #5 0x00000043a043 in FileChooserPortal::qt_metacall(QMetaObject::Call, int, void**) /home/nico/kde-qtdev/build/xdg-desktop-portal-kde/src/xdg-desktop
    #6 0x7f0f1acc65da in QDBusConnectionPrivate::deliverCall(QObject*, QDBusMessage const&, QList<QMetaType> const&, int) /home/nico/workspace/qt6-dev/qt
    #7 0x7f0f1acce88f in QDBusConnectionPrivate::activateCall(QObject*, QFlags<QDBusConnection::RegisterOption>, QDBusMessage const&) /home/nico/workspac
    #8 0x7f0f1accffbe in QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) /home/nico/workspace/q
    #9 0x7f0f1acd9655 in QDBusActivateObjectEvent::placeMetaCall(QObject*) /home/nico/workspace/qt6-dev/qtbase/src/dbus/qdbusintegrator.cpp:1613
    #10 0x7f0f19ecb15a in QObject::event(QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:1465
    #11 0x7f0f1ce859fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3
    #12 0x7f0f1cea0f8a in QApplication::notify(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3254
    #13 0x7f0f19dbf37b in QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cp
    #14 0x7f0f19dbf566 in QCoreApplication::sendEvent(QObject*, QEvent*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1549
    #15 0x7f0f19dc18bc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/q
    #16 0x7f0f19dc1bd7 in QCoreApplication::sendPostedEvents(QObject*, int) /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1
    #17 0x7f0f1a67f17f in postEventSourceDispatch /home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
    #18 0x7f0f19509eb2 in g_main_dispatch ../glib/gmain.c:3398
    #19 0x7f0f19509eb2 in g_main_context_dispatch_unlocked ../glib/gmain.c:4249
SUMMARY: AddressSanitizer: heap-use-after-free /home/nico/kde-qtdev/usr/include/QtCore/qstring.h:239 in QString::size() const
Comment 5 David Redondo 2025-08-11 06:46:43 UTC
Timer that calls slotMimeFilterChanged
Comment 6 David Redondo 2025-08-11 06:49:31 UTC
But its correctly guarded?

https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp#L1360

Deletion happens via deleteLater it seems
Comment 7 Harald Sitter 2025-08-11 11:59:58 UTC
I've tried every which way with randomized sleeps all over the place but I can't seem to trigger the crash. That said. KFileWidget has a number of internal eventloop spinning that may have a role to play here. But most/all of them are ExcludeUserInputEvents, so they shouldn't process a manual Esc hit, failing to explain the initial reproduction steps. 

It is however worth noting that there is a         bool result = statJob->exec(); call just prior to the locationEditCurrentText call.

Can you maybe get asan to print the complete delete trace?
Comment 8 Nicolas Fella 2025-08-11 13:04:00 UTC
https://bugs.kde.org/show_bug.cgi?id=508085#c4 has "freed by thread T0 here:" if that's what you mean
Comment 9 Harald Sitter 2025-08-11 13:19:22 UTC
(In reply to Nicolas Fella from comment #8)
> https://bugs.kde.org/show_bug.cgi?id=508085#c4 has "freed by thread T0
> here:" if that's what you mean

That isn't the complete trace I think, note how it misses the _start frame. d_ed also had a thought that maybe running through valgrind may give some hints.
Comment 10 Harald Sitter 2025-08-11 13:23:43 UTC
FWIW the only viable theory we have right now:

- slotMimeFilterChanged runs. everything is dandy still. all objects exist
- some nested eventloop::exec inside kfilewidget 
- finished gets emitted
- deleteLater gets called
- deleteLater gets executed
- eventloop ends
- slotMimeFilterChanged runs on deleted objects
- kaboom!
Comment 11 nyanpasu64 2025-08-20 23:48:22 UTC
I ran into this bug on my own. Observations:

- If I run set -Ux GTK_USE_PORTAL 1 in Fish, launching Firefox by clicking SyncThingy will not set the variable but fall back to GTK file dialogs. Launching Firefox from a pinned app will. This is strange because in both cases Firefox is spawned by systemd --user -> /usr/lib64/firefox/firefox.
- You don't need to click Esc to trigger the bug; I've triggered crashes by repeatedly saving an image, then clicking Save or pressing Enter or Alt+S (<50% success rate each time).

In the past when faced with this kind of mystery crash, I've had success adding logging to program control flow. I would record events which happened, check for program inconsistencies, and dump the sequence of events to a file (and alert the user) if an error was detected. My code is located at https://github.com/Dn-Programming-Core-Management/Dn-FamiTracker/blob/b4ea10d93bfbd9bac906f59d7e619d765e23463e/Source/SoundGen.cpp#L77-L180.

The bug I was tracing was harder because it was multithreaded (is this one too?) and extremely rare to catch, while this KDE one is harder because (looking at the ASan log) it involves complex Qt control flow like d-pointers, the Qt event loop, and timers.

The primary barrier here is that I don't know the desktop portal codebase or how to build and run a modified codebase locally; I think the people most equipped to track this down are existing KDE developers.

- The design of "multiple file dialogs from one server process" suggests using actor concurrency/memory management to isolate this behavior? I don't know much about it.