Bug 392001

Summary: systemsettings5 segmentation fault under Wayland
Product: [Applications] systemsettings Reporter: Eugene <ken20001>
Component: kcm_kscreenAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: notuxius, onvergetelijkontbijt, plasma-bugs
Priority: NOR Keywords: drkonqi
Version: 5.14.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Eugene 2018-03-18 15:27:13 UTC
Application: systemsettings5 (5.12.3)

Qt Version: 5.9.4
Frameworks Version: 5.44.0
Operating System: Linux 4.15.0-12-generic x86_64
Distribution: Ubuntu Bionic Beaver (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Just changed the screen resolution under Wayland when systemsettings crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: Системні параметри (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9a07622800 (LWP 1493))]

Thread 9 (Thread 0x7f99c33b1700 (LWP 1507)):
#0  0x00007f9a0305b0b4 in __GI___libc_read (fd=23, buf=0x7f99c33b0b70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f99fcf0b870 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec6db7 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f99fcec7270 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99b8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99c33b0d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007f9a012c2a45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f9a0377416d in QThreadPrivate::start (arg=0x5652838715c0) at thread/qthread_unix.cpp:368
#10 0x00007f99ff2166db in start_thread (arg=0x7f99c33b1700) at pthread_create.c:463
#11 0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f99c3bb2700 (LWP 1506)):
#0  0x00007f9a0305fbf9 in __GI___poll (fds=0x7f99b4004db0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f99fcec72c9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99b4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99c3bb1da0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f9a0377416d in QThreadPrivate::start (arg=0x56528398c170) at thread/qthread_unix.cpp:368
#7  0x00007f99ff2166db in start_thread (arg=0x7f99c3bb2700) at pthread_create.c:463
#8  0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f99c4672700 (LWP 1505)):
#0  0x00007f9a0305fbf9 in __GI___poll (fds=0x7f99bc003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f99fcec72c9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99bc000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99c4671da0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f9a0377416d in QThreadPrivate::start (arg=0x565283980da0) at thread/qthread_unix.cpp:368
#7  0x00007f99ff2166db in start_thread (arg=0x7f99c4672700) at pthread_create.c:463
#8  0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f99cd232700 (LWP 1501)):
#0  0x00007f9a0305b0b4 in __GI___libc_read (fd=10, buf=0x7f99cd231b70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f99fcf0b870 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec6db7 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f99fcec7270 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99c8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99cd231d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007f9a012c2a45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f9a0377416d in QThreadPrivate::start (arg=0x5652827cbca0) at thread/qthread_unix.cpp:368
#10 0x00007f99ff2166db in start_thread (arg=0x7f99cd232700) at pthread_create.c:463
#11 0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f99dd583700 (LWP 1498)):
#0  0x00007f99fcec61f0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f99fcec7185 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99d4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99dd582d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007f9a012c2a45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007f9a0377416d in QThreadPrivate::start (arg=0x5652823e67e0) at thread/qthread_unix.cpp:368
#8  0x00007f99ff2166db in start_thread (arg=0x7f99dd583700) at pthread_create.c:463
#9  0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f99dfc2c700 (LWP 1497)):
#0  0x00007f99ff21c9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5652822f930c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5652822f92b8, cond=0x5652822f92e0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5652822f92e0, mutex=0x5652822f92b8) at pthread_cond_wait.c:655
#3  0x00007f99e507fecb in cnd_wait (mtx=0x5652822f92b8, cond=0x5652822f92e0) at ../../../../../include/c11/threads_posix.h:155
#4  pipe_semaphore_wait (sema=0x5652822f92b8) at ../../../../../src/gallium/auxiliary/os/os_thread.h:108
#5  thread_function (init_data=init_data@entry=0x5652822f9210) at ../../../../../src/gallium/drivers/llvmpipe/lp_rast.c:809
#6  0x00007f99e507fd47 in impl_thrd_routine (p=<optimized out>) at ../../../../../include/c11/threads_posix.h:87
#7  0x00007f99ff2166db in start_thread (arg=0x7f99dfc2c700) at pthread_create.c:463
#8  0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f99e042d700 (LWP 1496)):
#0  0x00007f99ff21c9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5652822f91a0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5652822f9150, cond=0x5652822f9178) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5652822f9178, mutex=0x5652822f9150) at pthread_cond_wait.c:655
#3  0x00007f99e507fecb in cnd_wait (mtx=0x5652822f9150, cond=0x5652822f9178) at ../../../../../include/c11/threads_posix.h:155
#4  pipe_semaphore_wait (sema=0x5652822f9150) at ../../../../../src/gallium/auxiliary/os/os_thread.h:108
#5  thread_function (init_data=init_data@entry=0x5652822f90a8) at ../../../../../src/gallium/drivers/llvmpipe/lp_rast.c:809
#6  0x00007f99e507fd47 in impl_thrd_routine (p=<optimized out>) at ../../../../../include/c11/threads_posix.h:87
#7  0x00007f99ff2166db in start_thread (arg=0x7f99e042d700) at pthread_create.c:463
#8  0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f99f24a6700 (LWP 1495)):
#0  0x00007f9a0305b0b4 in __GI___libc_read (fd=6, buf=0x7f99f24a5b60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f99fcf0b870 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f99fcec6db7 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f99fcec7270 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9a039ab4fb in QEventDispatcherGlib::processEvents (this=0x7f99ec000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7f99f24a5d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f9a0376f22a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007f9a052b5d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f9a0377416d in QThreadPrivate::start (arg=0x7f9a05528d60) at thread/qthread_unix.cpp:368
#10 0x00007f99ff2166db in start_thread (arg=0x7f99f24a6700) at pthread_create.c:463
#11 0x00007f9a0306c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9a07622800 (LWP 1493)):
[KCrash Handler]
#6  QString::QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7fffd468ab20) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:906
#7  KScreen::Mode::id (this=this@entry=0x0) at ./src/mode.cpp:69
#8  0x00007f99c5c22b38 in OutputConfig::slotResolutionChanged (this=0x565283b13d40, size=...) at ./kcm/src/outputconfig.cpp:197
#9  0x00007f9a039812bf in QtPrivate::QSlotObjectBase::call (a=0x7fffd468ac80, r=0x565283b13d40, this=0x565283ae8bf0) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#10 QMetaObject::activate (sender=sender@entry=0x565283b15bc0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd468ac80) at kernel/qobject.cpp:3749
#11 0x00007f9a03981877 in QMetaObject::activate (sender=sender@entry=0x565283b15bc0, m=m@entry=0x7f99c5e46960 <ResolutionSlider::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd468ac80) at kernel/qobject.cpp:3628
#12 0x00007f99c5c39672 in ResolutionSlider::resolutionChanged (this=this@entry=0x565283b15bc0, _t1=...) at ./obj-x86_64-linux-gnu/kcm/src/kcm_kscreen_autogen/EWIEGA46WW/moc_resolutionslider.cpp:140
#13 0x00007f99c5c2b24b in ResolutionSlider::slotValueChanged (this=0x565283b15bc0, value=<optimized out>) at ./kcm/src/resolutionslider.cpp:164
#14 0x00007f9a039812bf in QtPrivate::QSlotObjectBase::call (a=0x7fffd468ae00, r=0x565283b15bc0, this=0x565283aaefe0) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#15 QMetaObject::activate (sender=sender@entry=0x565283b12ad0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fffd468ae00) at kernel/qobject.cpp:3749
#16 0x00007f9a03981877 in QMetaObject::activate (sender=sender@entry=0x565283b12ad0, m=m@entry=0x7f9a0502dbc0 <QComboBox::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fffd468ae00) at kernel/qobject.cpp:3628
#17 0x00007f9a04a66b51 in QComboBox::currentIndexChanged (this=this@entry=0x565283b12ad0, _t1=<optimized out>) at .moc/moc_qcombobox.cpp:503
#18 0x00007f9a04a68a33 in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=this@entry=0x5652837b7310, index=...) at widgets/qcombobox.cpp:1342
#19 0x00007f9a04a69f1c in QComboBoxPrivate::setCurrentIndex (this=this@entry=0x5652837b7310, mi=...) at widgets/qcombobox.cpp:2157
#20 0x00007f9a04a6a0b1 in QComboBoxPrivate::_q_itemSelected (this=0x5652837b7310, item=...) at widgets/qcombobox.cpp:1310
#21 0x00007f9a04a6fb7d in QComboBox::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fffd468b160) at .moc/moc_qcombobox.cpp:285
#22 0x00007f9a039811a5 in QMetaObject::activate (sender=sender@entry=0x565283b0f860, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd468b160) at kernel/qobject.cpp:3766
#23 0x00007f9a03981877 in QMetaObject::activate (sender=sender@entry=0x565283b0f860, m=m@entry=0x7f9a0502db00 <QComboBoxPrivateContainer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd468b160) at kernel/qobject.cpp:3628
#24 0x00007f9a04a671e9 in QComboBoxPrivateContainer::itemSelected (_t1=..., this=0x565283b0f860) at .moc/moc_qcombobox_p.cpp:329
#25 QComboBoxPrivateContainer::eventFilter (this=0x565283b0f860, o=0x565283b16960, e=0x7fffd468b580) at widgets/qcombobox.cpp:727
#26 0x00007f9a039522ac in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x565283b16960, event=event@entry=0x7fffd468b580) at kernel/qcoreapplication.cpp:1127
#27 0x00007f9a04962805 in QApplicationPrivate::notify_helper (this=this@entry=0x5652820a2610, receiver=receiver@entry=0x565283b16960, e=e@entry=0x7fffd468b580) at kernel/qapplication.cpp:3718
#28 0x00007f9a0496a64f in QApplication::notify (this=<optimized out>, receiver=0x565283b16960, e=0x7fffd468b580) at kernel/qapplication.cpp:3198
#29 0x00007f9a039525c8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x565283b16960, event=event@entry=0x7fffd468b580) at kernel/qcoreapplication.cpp:1016
#30 0x00007f9a04969622 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#31 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x565283b16960, event=event@entry=0x7fffd468b580, alienWidget=alienWidget@entry=0x565283b16960, nativeWidget=0x565283b0f860, buttonDown=buttonDown@entry=0x7f9a050547d0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2704
#32 0x00007f9a049bbe95 in QWidgetWindow::handleMouseEvent (this=this@entry=0x5652834bb550, event=event@entry=0x7fffd468b980) at kernel/qwidgetwindow.cpp:523
#33 0x00007f9a049be7ca in QWidgetWindow::event (this=0x5652834bb550, event=0x7fffd468b980) at kernel/qwidgetwindow.cpp:250
#34 0x00007f9a0496282c in QApplicationPrivate::notify_helper (this=this@entry=0x5652820a2610, receiver=receiver@entry=0x5652834bb550, e=e@entry=0x7fffd468b980) at kernel/qapplication.cpp:3722
#35 0x00007f9a0496a0f4 in QApplication::notify (this=0x7fffd468be10, receiver=0x5652834bb550, e=0x7fffd468b980) at kernel/qapplication.cpp:3481
#36 0x00007f9a039525c8 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5652834bb550, event=event@entry=0x7fffd468b980) at kernel/qcoreapplication.cpp:1016
#37 0x00007f9a041a6453 in QCoreApplication::sendSpontaneousEvent (event=0x7fffd468b980, receiver=0x5652834bb550) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#38 QGuiApplicationPrivate::processMouseEvent (e=0x565282775f90) at kernel/qguiapplication.cpp:1952
#39 0x00007f9a041a7f35 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x565282775f90) at kernel/qguiapplication.cpp:1733
#40 0x00007f9a0417f28b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:946
#41 0x00007f99f73676c0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#42 0x00007f99fcec7117 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f99fcec7350 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f99fcec73dc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f9a039ab4df in QEventDispatcherGlib::processEvents (this=0x56528212b6a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#46 0x00007f9a0395061a in QEventLoop::exec (this=this@entry=0x7fffd468bd30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#47 0x00007f9a03959664 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1289
#48 0x0000565280753e44 in main (argc=<optimized out>, argv=<optimized out>) at ./app/main.cpp:67

Reported using DrKonqi
Comment 1 Alexander Mentyu 2018-04-19 17:37:29 UTC
How to change screen resolution under Wayland? - there is no such option in KScreen in:

Plasma: 5.12.4
Apps: 17.12.3
Frameworks: 5.45.0
Qt: 5.10.1
Kernel: 4.14.34-1-MANJARO
OS: Netrunner Rolling
Video: Intel 4400
Driver: xf86-video-intel 1:2.99.917+823+gd9bf46e4-1
Screen: 1600x900
wayland-protocols 1.13-1
wayland 1.14.0-1
Comment 2 Eugene 2018-04-19 20:31:46 UTC
(In reply to Alexander Mentyu from comment #1)
> How to change screen resolution under Wayland? - there is no such option in
> KScreen
There is an option but it doesn't work correctly, especially in KVM. At least in Kubuntu 18.04.
Comment 3 Justin Zobel 2022-10-05 02:24:45 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-10-20 04:59:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-11-04 05:07:49 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!