Bug 379325

Summary: Keyboard KCM crashes when trying to set shortcuts for switching layout
Product: [Applications] systemsettings Reporter: Law, Cheuk-wing <jhnpwa>
Component: kcm_keyboardAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.9.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=367080
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Law, Cheuk-wing 2017-04-28 19:54:29 UTC
Application: systemsettings5 (5.9.4)

Qt Version: 5.7.1
Frameworks Version: 5.31.0
Operating System: Linux 4.10.0-20-generic x86_64
Distribution: Ubuntu 17.04

-- Information about the crash:
- What I was doing when the application crashed:
1. Launch systemsettings5
2. Click "Input Devices" of category "Hardware"
3. Click the "Keyboard" page
4. Select the "Layouts" tab
5. Under "Shortcuts for Switching Layout", click either the first or second "None" button

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f60aedf08c0 (LWP 4096))]

Thread 4 (Thread 0x7f60756bb700 (LWP 4109)):
#0  0x00007f60aab9418d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f60a4d52576 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f60a4d52902 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f607661b476 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f60a4d79f65 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f60a6e836da in start_thread (arg=0x7f60756bb700) at pthread_create.c:456
#6  0x00007f60aaba017f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7f6075ebc700 (LWP 4108)):
#0  0x00007f60aab9418d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f60a4d52576 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f60a4d5268c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f60a4d526d1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f60a4d79f65 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f60a6e836da in start_thread (arg=0x7f6075ebc700) at pthread_create.c:456
#6  0x00007f60aaba017f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7f6099e97700 (LWP 4097)):
#0  0x00007f60a4d51a9e in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f60a4d5249b in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f60a4d5268c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f60ab4b7f2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f60ab46188a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f60ab28efe3 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f60abdbb5c5 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f60ab293c98 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f60a6e836da in start_thread (arg=0x7f6099e97700) at pthread_create.c:456
#9  0x00007f60aaba017f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f60aedf08c0 (LWP 4096)):
[KCrash Handler]
#6  0x00007f60a793b80a in XInternAtom () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f6077f18827 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_keyboard.so
#8  0x00007f6077f06c43 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_keyboard.so
#9  0x00007f6077f097d8 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_keyboard.so
#10 0x00007f60ab48f81e in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f60ad0aac72 in QAbstractButton::toggled(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f60ad0ab065 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f60ad0ac6bc in QAbstractButton::setChecked(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f6077f05a77 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_keyboard.so
#15 0x00007f60ab48f81e in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f60ad0aac12 in QAbstractButton::clicked(bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f60ad0aae64 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f60ad0ac257 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f60ad0ac434 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f60ad009a78 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f60acfc235c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f60acfca9cd in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f60ab4638a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f60acfc907d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f60ad0240f6 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f60ad026b03 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f60acfc235c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f60acfc9b11 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f60ab4638a0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f60ac82e723 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007f60ac8302a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#32 0x00007f60ac80e23b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007f609e336060 in  () at /usr/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#34 0x00007f60a4d52377 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f60a4d525e0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f60a4d5268c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f60ab4b7f0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007f60ab46188a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f60ab469ffc in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00005646ccf5e32a in  ()
#41 0x00007f60aaab83f1 in __libc_start_main (main=0x5646ccf5df50, argc=1, argv=0x7ffe43413bb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe43413ba8) at ../csu/libc-start.c:291
#42 0x00005646ccf5e3aa in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2017-05-07 12:03:44 UTC
Did this crash happen with a Wayland or an X11 session? See bug 367080.
Comment 2 Law, Cheuk-wing 2017-05-08 07:25:10 UTC
(In reply to Christoph Feck from comment #1)
> Did this crash happen with a Wayland or an X11 session? See bug 367080.

Happened with a Wayland session. I have tried with an X11 session and it did not crash.
Comment 3 Christoph Feck 2017-05-16 00:59:16 UTC

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