Bug 497156 - On X11, kaccess crashed in QXcbScreen::setMonitor
Summary: On X11, kaccess crashed in QXcbScreen::setMonitor
Status: RESOLVED DUPLICATE of bug 496218
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_accessibility (show other bugs)
Version: 6.2.4
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-12-07 12:36 UTC by Julien Delquié
Modified: 2024-12-15 16:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/3470/events/e25b77446e294466b4d863533bd8dd2d/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Delquié 2024-12-07 12:36:50 UTC
Application: kaccess (6.2.4)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.8.1
Frameworks Version: 6.8.0
Operating System: Linux 6.12.2-gentoo-r1-x86_64 x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 6.2.4 [CoredumpBackend]

-- Information about the crash:
During session locked or right after unlock, kaccess crashed.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Accessibilité (kaccess), signal: Segmentation fault

[New LWP 3802]
[New LWP 3864]
[New LWP 3867]
[New LWP 3866]
[New LWP 3810]
[New LWP 3812]
[New LWP 3865]
[New LWP 3868]
[New LWP 3869]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/kaccess'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f37bf1dd25c in ?? () from /usr/lib64/libc.so.6
[Current thread is 1 (Thread 0x7f37bbfcc440 (LWP 3802))]
python sentry-sdk not installed :(
Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:516: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
Unexpectedly stumbled over an objfile (/usr/lib64/libsystemd.so.0.39.0) without build_id. Not creating payload.
[Current thread is 1 (Thread 0x7f37bbfcc440 (LWP 3802))]

Thread 9 (Thread 0x7f3794e766c0 (LWP 3869)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 8 (Thread 0x7f37956776c0 (LWP 3868)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 7 (Thread 0x7f3796e7a6c0 (LWP 3865)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 6 (Thread 0x7f37ad88e6c0 (LWP 3812)):
#0  0x00007f37bf23edbf in poll () at /usr/lib64/libc.so.6
#1  0x00007f37bedb64a2 in ??? () at /usr/lib64/libxcb.so.1
#2  0x00007f37bedb886a in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f37ae1d7fb8 in QXcbEventQueue::run (this=0x555e5d451ae0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbeventqueue.cpp:192
#4  0x00007f37bf8352d5 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#5  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#6  QThreadPrivate::start (arg=0x555e5d451ae0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#7  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#8  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 5 (Thread 0x7f37ae08f6c0 (LWP 3810)):
#0  0x00007f37bf23f2f6 in ppoll () at /usr/lib64/libc.so.6
#1  0x00007f37bebababc in ??? () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f37bebac150 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f37bf70c2f3 in QEventDispatcherGlib::processEvents (this=0x7f37a8000ba0, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#4  0x00007f37bf976102 in QEventLoop::exec (this=this@entry=0x7f37ae08eb30, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#5  0x00007f37bf8a499e in QThread::exec (this=this@entry=0x7f37bee94160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#6  0x00007f37bee6b56e in QDBusConnectionManager::run (this=0x7f37bee94160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusconnectionmanager.cpp:144
#7  0x00007f37bf8352d5 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#9  QThreadPrivate::start (arg=0x7f37bee94160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#10 0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#11 0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 4 (Thread 0x7f37966796c0 (LWP 3866)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 3 (Thread 0x7f3795e786c0 (LWP 3867)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 2 (Thread 0x7f37a50616c0 (LWP 3864)):
#0  0x00007f37bf1d7cde in ??? () at /usr/lib64/libc.so.6
#1  0x00007f37bf1da6e9 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f379eb6d1ed in ??? () at /usr/lib64/libgallium-24.2.8.so
#3  0x00007f379eb4baab in ??? () at /usr/lib64/libgallium-24.2.8.so
#4  0x00007f379eb6d11b in ??? () at /usr/lib64/libgallium-24.2.8.so
#5  0x00007f37bf1db511 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f37bf24bb2c in ??? () at /usr/lib64/libc.so.6

Thread 1 (Thread 0x7f37bbfcc440 (LWP 3802)):
[KCrash Handler]
#4  QXcbScreen::setMonitor (this=this@entry=0x555e5d46dcf0, monitorInfo=monitorInfo@entry=0x7f37a000640c, timestamp=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbscreen.cpp:657
#5  0x00007f37ae1beac3 in QXcbConnection::updateScreen_monitor (this=this@entry=0x555e5d451f90, screen=screen@entry=0x555e5d46dcf0, monitorInfo=monitorInfo@entry=0x7f37a000640c, timestamp=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbconnection_screens.cpp:251
#6  0x00007f37ae1c0b22 in QXcbConnection::initializeScreensFromMonitor (this=this@entry=0x555e5d451f90, it=it@entry=0x7ffdbf64f1a0, xcbScreenNumber=xcbScreenNumber@entry=0, primaryScreen=primaryScreen@entry=0x7ffdbf64f180, initialized=initialized@entry=true) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbconnection_screens.cpp:519
#7  0x00007f37ae1c20b8 in QXcbConnection::initializeScreens (this=this@entry=0x555e5d451f90, initialized=initialized@entry=true) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbconnection_screens.cpp:317
#8  0x00007f37ae1b7f6e in QXcbConnection::handleXcbEvent (this=this@entry=0x555e5d451f90, event=event@entry=0x7f37a00039e0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbconnection.cpp:590
#9  0x00007f37ae1b86d6 in QXcbConnection::processXcbEvents (this=0x555e5d451f90, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbconnection.cpp:1087
#10 0x00007f37ae1d7507 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:55
#11 0x00007f37beba871c in ??? () at /usr/lib64/libglib-2.0.so.0
#12 0x00007f37bebab9e7 in ??? () at /usr/lib64/libglib-2.0.so.0
#13 0x00007f37bebac150 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#14 0x00007f37bf70c2f3 in QEventDispatcherGlib::processEvents (this=0x555e5d4d6180, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#15 0x00007f37bf976102 in QEventLoop::exec (this=this@entry=0x7ffdbf64f560, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#16 0x00007f37bf9763e8 in QCoreApplication::exec () at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#17 0x0000555e272e2213 in ??? ()
#18 0x00007f37bf1713ee in ??? () at /usr/lib64/libc.so.6
#19 0x00007f37bf1714a9 in __libc_start_main () at /usr/lib64/libc.so.6
#20 0x0000555e272e2245 in ??? ()

Reported using DrKonqi
Comment 1 Nate Graham 2024-12-11 22:42:19 UTC
Based on the backtrace, I suppose this probably doesn't happen on Wayland, right?
Comment 2 Julien Delquié 2024-12-11 23:33:57 UTC
(In reply to Nate Graham from comment #1)
> Based on the backtrace, I suppose this probably doesn't happen on Wayland,
> right?

Actually this is really strange, because I always use wayland… is it possible that DrKonqi has a bug detecting Wayland?
Comment 3 Nate Graham 2024-12-12 17:44:29 UTC
Maybe your system is set up strangely then? Your `kinfo` output in the first message said "Windowing System: X11". And it's crashing in X11-specific code. Can you verify?
Comment 4 Julien Delquié 2024-12-12 20:25:38 UTC
Well, maybe that time I used a X11 session for testing something, then I forgot…

Today is what kinfo returns:

$ kinfo
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-gentoo-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 31.3 Gio of RAM
Graphics Processor: AMD Radeon RX 7800 XT
Comment 5 Julien Delquié 2024-12-12 20:27:59 UTC
I will also check if kaccess crash on Wayland. Keep you informed.
Comment 6 Julien Delquié 2024-12-14 06:14:58 UTC
It happened again, and I swear I was using Wayland for my plasmashell session.

Another crash also happened in the same conditions, I was using Wayland, but DrKonqi thinks I use X11: https://bugs.kde.org/show_bug.cgi?id=497444
Comment 7 Nicolas Fella 2024-12-15 16:25:56 UTC

*** This bug has been marked as a duplicate of bug 496218 ***