Bug 286150

Summary: Crash from keyboard layouts
Product: kxkb Reporter: Eugene <ken20001>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED FIXED    
Severity: crash CC: don-redhat, irek.gierlach, kkszysiu, kristian.hermann.karl, me, sendingisrael
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.4
Attachments: kglobalshortcutsrc
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Eugene 2011-11-09 01:38:51 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
I've just delete all installed languages from keyboard layout list and applied it.

-- Backtrace:
Application: Фонова служба KDE (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f7b25cf3780 (LWP 1511))]

Thread 3 (Thread 0x7f7b08e50700 (LWP 1583)):
#0  0x00007f7b23540773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7b20740f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7b20741792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7b0912d516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f7b207662b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7b2100aefc in start_thread (arg=0x7f7b08e50700) at pthread_create.c:304
#6  0x00007f7b2354c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7b03fff700 (LWP 1584)):
#0  0x00007f7b20740f5a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f7b20741429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7b24987f3e in QEventDispatcherGlib::processEvents (this=0x13dc120, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#3  0x00007f7b2495bcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007f7b2495bef7 in QEventLoop::exec (this=0x7f7b03ffedd0, flags=...) at kernel/qeventloop.cpp:201
#5  0x00007f7b2487327f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#6  0x00007f7b2493ecbf in QInotifyFileSystemWatcherEngine::run (this=0x7f7b040094c0) at io/qfilesystemwatcher_inotify.cpp:248
#7  0x00007f7b24875d05 in QThreadPrivate::start (arg=0x7f7b040094c0) at thread/qthread_unix.cpp:331
#8  0x00007f7b2100aefc in start_thread (arg=0x7f7b03fff700) at pthread_create.c:304
#9  0x00007f7b2354c89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7b25cf3780 (LWP 1511)):
[KCrash Handler]
#6  deref (this=0x0) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:133
#7  QKeySequence::~QKeySequence (this=0x7f7b00000019, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1023
#8  0x00007f7b0c978983 in ~LayoutUnit (this=0x7f7b00000001, __in_chrg=<optimized out>) at ../../../kcontrol/keyboard/x11_helper.h:67
#9  node_destruct (n=0x184a060, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#10 erase (it=<optimized out>, this=0x7fffc2cceab0) at /usr/include/qt4/QtCore/qlist.h:452
#11 removeLast (this=0x7fffc2cceab0) at /usr/include/qt4/QtCore/qlist.h:274
#12 LayoutsMenu::switchToLayout (layoutUnit=..., keyboardConfig=...) at ../../../kcontrol/keyboard/layouts_menu.cpp:75
#13 0x00007f7b0c96692d in KeyboardDaemon::setLayout (this=0x16099f0, action=<optimized out>) at ../../../kcontrol/keyboard/keyboard_daemon.cpp:223
#14 0x00007f7b0c965cb8 in KeyboardDaemon::qt_metacall (this=0x16099f0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffc2ccec70) at moc_keyboard_daemon.cpp:104
#15 0x00007f7b2496feba in QMetaObject::activate (sender=0x1e5a1d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc2ccec70) at kernel/qobject.cpp:3278
#16 0x00007f7b255defc2 in KActionCollection::actionTriggered (this=<optimized out>, _t1=0x1f24f90) at ./kactioncollection.moc:175
#17 0x00007f7b255e13ba in KActionCollection::qt_metacall (this=0x1e5a1d0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffc2cced90) at ./kactioncollection.moc:102
#18 0x00007f7b2496feba in QMetaObject::activate (sender=0x1f24f90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc2cced90) at kernel/qobject.cpp:3278
#19 0x00007f7b23d06b62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#20 0x00007f7b23d06d4f in QAction::activate (this=0x1f24f90, event=<optimized out>) at kernel/qaction.cpp:1257
#21 0x00007f7b2570ed10 in trigger (this=0x1f24f90) at /usr/include/qt4/QtGui/qaction.h:218
#22 KGlobalAccelPrivate::_k_invokeAction (this=<optimized out>, componentUnique=<optimized out>, actionUnique=<optimized out>, timestamp=29214586) at ../../kdeui/shortcuts/kglobalaccel.cpp:449
#23 0x00007f7b257114b3 in KGlobalAccel::qt_metacall (this=0x167eb40, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffc2ccef50) at ./kglobalaccel.moc:77
#24 0x00007f7b2496feba in QMetaObject::activate (sender=0x16bc970, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc2ccef50) at kernel/qobject.cpp:3278
#25 0x00007f7b258220e9 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=29214586) at kglobalaccel_component_interface.moc:150
#26 0x00007f7b25822552 in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x16bc970, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffc2ccf360) at kglobalaccel_component_interface.moc:98
#27 0x00007f7b21f310e9 in QDBusConnectionPrivate::deliverCall (this=0x1443a90, object=0x16bc970, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:942
#28 0x00007f7b21f3a38f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#29 0x00007f7b24973a5e in QObject::event (this=0x16bc970, e=<optimized out>) at kernel/qobject.cpp:1217
#30 0x00007f7b23d0d424 in notify_helper (e=0x1e62e40, receiver=0x16bc970, this=0x144e740) at kernel/qapplication.cpp:4486
#31 QApplicationPrivate::notify_helper (this=0x144e740, receiver=0x16bc970, e=0x1e62e40) at kernel/qapplication.cpp:4458
#32 0x00007f7b23d12291 in QApplication::notify (this=0x7fffc2ccfbf0, receiver=0x16bc970, e=0x1e62e40) at kernel/qapplication.cpp:4365
#33 0x00007f7b256ca126 in KApplication::notify (this=0x7fffc2ccfbf0, receiver=0x16bc970, event=0x1e62e40) at ../../kdeui/kernel/kapplication.cpp:311
#34 0x00007f7b2495cafc in QCoreApplication::notifyInternal (this=0x7fffc2ccfbf0, receiver=0x16bc970, event=0x1e62e40) at kernel/qcoreapplication.cpp:787
#35 0x00007f7b2496051f in sendEvent (event=0x1e62e40, receiver=0x16bc970) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x13c45e0) at kernel/qcoreapplication.cpp:1428
#37 0x00007f7b24987a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#38 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#39 0x00007f7b20740a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f7b20741258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f7b20741429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f7b24987ed6 in QEventDispatcherGlib::processEvents (this=0x13c6d30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#43 0x00007f7b23db507e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f7b2495bcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f7b2495bef7 in QEventLoop::exec (this=0x7fffc2ccfb80, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007f7b24960789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#47 0x00007f7b13591d65 in kdemain (argc=1, argv=0x140c6b0) at ../../kded/kded.cpp:924
#48 0x0000000000408547 in launch (argc=1, _name=0x40b2d7 "kded4", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b15e "0") at ../../kinit/kinit.cpp:746
#49 0x0000000000405949 in main (argc=4, argv=0x7fff00000001, envp=0x7fffc2cd0d50) at ../../kinit/kinit.cpp:1861

Reported using DrKonqi
Comment 1 Eugene 2011-11-09 13:40:21 UTC
When I push Shift+Alt+K, the same crash appears too.
Comment 2 Eugene 2011-11-09 19:47:31 UTC
Another one crash when I just drop all settings to default in keyboard layout window:

Application: Фонова служба KDE (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7eff3b0a4780 (LWP 1444))]

Thread 3 (Thread 0x7eff1e9fe700 (LWP 1512)):
#0  0x00007eff388f2773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007eff35af2f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff35af3792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff1ecdb516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007eff35b182b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007eff363bcefc in start_thread (arg=0x7eff1e9fe700) at pthread_create.c:304
#6  0x00007eff388fe89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7eff1dff1700 (LWP 1513)):
#0  0x00007eff39d3aa9b in QTimerInfoList::timerWait (this=<optimized out>, tm=<optimized out>) at kernel/qeventdispatcher_unix.cpp:467
#1  0x00007eff39d3944c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7eff1dff0c3c) at kernel/qeventdispatcher_glib.cpp:136
#2  0x00007eff39d394f5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#3  0x00007eff35af1ff2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007eff35af2dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007eff35af3429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007eff39d39f3e in QEventDispatcherGlib::processEvents (this=0x21f50a0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007eff39d0dcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007eff39d0def7 in QEventLoop::exec (this=0x7eff1dff0dd0, flags=...) at kernel/qeventloop.cpp:201
#9  0x00007eff39c2527f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#10 0x00007eff39cf0cbf in QInotifyFileSystemWatcherEngine::run (this=0x21f6da0) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007eff39c27d05 in QThreadPrivate::start (arg=0x21f6da0) at thread/qthread_unix.cpp:331
#12 0x00007eff363bcefc in start_thread (arg=0x7eff1dff1700) at pthread_create.c:304
#13 0x00007eff388fe89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7eff3b0a4780 (LWP 1444)):
[KCrash Handler]
#6  QKeySequence::~QKeySequence (this=0x19, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1023
#7  0x00007eff21d26983 in ~LayoutUnit (this=0x1, __in_chrg=<optimized out>) at ../../../kcontrol/keyboard/x11_helper.h:67
#8  node_destruct (n=0x24a7560, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#9  erase (it=<optimized out>, this=0x7fff2d882b40) at /usr/include/qt4/QtCore/qlist.h:452
#10 removeLast (this=0x7fff2d882b40) at /usr/include/qt4/QtCore/qlist.h:274
#11 LayoutsMenu::switchToLayout (layoutUnit=..., keyboardConfig=...) at ../../../kcontrol/keyboard/layouts_menu.cpp:75
#12 0x00007eff21d1492d in KeyboardDaemon::setLayout (this=0x21fd810, action=<optimized out>) at ../../../kcontrol/keyboard/keyboard_daemon.cpp:223
#13 0x00007eff21d13cb8 in KeyboardDaemon::qt_metacall (this=0x21fd810, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff2d882d00) at moc_keyboard_daemon.cpp:104
#14 0x00007eff39d21eba in QMetaObject::activate (sender=0x22a2450, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d882d00) at kernel/qobject.cpp:3278
#15 0x00007eff3a990fc2 in KActionCollection::actionTriggered (this=<optimized out>, _t1=0x2554840) at ./kactioncollection.moc:175
#16 0x00007eff3a9933ba in KActionCollection::qt_metacall (this=0x22a2450, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff2d882e20) at ./kactioncollection.moc:102
#17 0x00007eff39d21eba in QMetaObject::activate (sender=0x2554840, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d882e20) at kernel/qobject.cpp:3278
#18 0x00007eff390b8b62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#19 0x00007eff390b8d4f in QAction::activate (this=0x2554840, event=<optimized out>) at kernel/qaction.cpp:1257
#20 0x00007eff3aac0d10 in trigger (this=0x2554840) at /usr/include/qt4/QtGui/qaction.h:218
#21 KGlobalAccelPrivate::_k_invokeAction (this=<optimized out>, componentUnique=<optimized out>, actionUnique=<optimized out>, timestamp=3472213) at ../../kdeui/shortcuts/kglobalaccel.cpp:449
#22 0x00007eff3aac34b3 in KGlobalAccel::qt_metacall (this=0x2296d50, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff2d882fe0) at ./kglobalaccel.moc:77
#23 0x00007eff39d21eba in QMetaObject::activate (sender=0x22ac390, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d882fe0) at kernel/qobject.cpp:3278
#24 0x00007eff3abd40e9 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=3472213) at kglobalaccel_component_interface.moc:150
#25 0x00007eff3abd4552 in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x22ac390, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff2d8833f0) at kglobalaccel_component_interface.moc:98
#26 0x00007eff372e30e9 in QDBusConnectionPrivate::deliverCall (this=0x20321c0, object=0x22ac390, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:942
#27 0x00007eff372ec38f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#28 0x00007eff39d25a5e in QObject::event (this=0x22ac390, e=<optimized out>) at kernel/qobject.cpp:1217
#29 0x00007eff390bf424 in notify_helper (e=0x20a5380, receiver=0x22ac390, this=0x2039750) at kernel/qapplication.cpp:4486
#30 QApplicationPrivate::notify_helper (this=0x2039750, receiver=0x22ac390, e=0x20a5380) at kernel/qapplication.cpp:4458
#31 0x00007eff390c4291 in QApplication::notify (this=0x7fff2d883c80, receiver=0x22ac390, e=0x20a5380) at kernel/qapplication.cpp:4365
#32 0x00007eff3aa7c126 in KApplication::notify (this=0x7fff2d883c80, receiver=0x22ac390, event=0x20a5380) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007eff39d0eafc in QCoreApplication::notifyInternal (this=0x7fff2d883c80, receiver=0x22ac390, event=0x20a5380) at kernel/qcoreapplication.cpp:787
#34 0x00007eff39d1251f in sendEvent (event=0x20a5380, receiver=0x22ac390) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1fad5e0) at kernel/qcoreapplication.cpp:1428
#36 0x00007eff39d39a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007eff35af2a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007eff35af3258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007eff35af3429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007eff39d39ed6 in QEventDispatcherGlib::processEvents (this=0x1fafd30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#42 0x00007eff3916707e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007eff39d0dcf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007eff39d0def7 in QEventLoop::exec (this=0x7fff2d883c10, flags=...) at kernel/qeventloop.cpp:201
#45 0x00007eff39d12789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#46 0x00007eff28943d65 in kdemain (argc=1, argv=0x1ff65f0) at ../../kded/kded.cpp:924
#47 0x0000000000408547 in launch (argc=1, _name=0x40b2d7 "kded4", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b15e "0") at ../../kinit/kinit.cpp:746
#48 0x0000000000405949 in main (argc=4, argv=0x7fff00000001, envp=0x7fff2d884de0) at ../../kinit/kinit.cpp:1861
Comment 3 Andriy Rysin 2011-11-10 01:46:38 UTC
Git commit a5a06a2ae8b47b56147266e3612b60a0c18202c6 by Andriy Rysin.
Committed on 10/11/2011 at 02:45.
Pushed by rysin into branch 'KDE/4.7'.

Don't crash when switching and no layouts found
BUG: 286150
FIXED-IN: 4.7.4

M  +6    -1    kcontrol/keyboard/layouts_menu.cpp

http://commits.kde.org/kde-workspace/a5a06a2ae8b47b56147266e3612b60a0c18202c6
Comment 4 Andriy Rysin 2011-11-10 02:06:24 UTC
Git commit 522e30a2684d7502a3abd3d9da379a0f366aec52 by Andriy Rysin.
Committed on 10/11/2011 at 02:45.
Pushed by rysin into branch 'master'.

Don't crash when switching and no layouts found
BUG: 286150
FIXED-IN: 4.7.4
(cherry picked from commit a5a06a2ae8b47b56147266e3612b60a0c18202c6)

M  +6    -1    kcontrol/keyboard/layouts_menu.cpp

http://commits.kde.org/kde-workspace/522e30a2684d7502a3abd3d9da379a0f366aec52
Comment 5 Andriy Rysin 2011-11-10 02:08:03 UTC
I could not reproduce it here on FC16 as I could never get into situation when there's no layouts - even if I remove all layout at least one is configured. But I've added a safety net to not crash on that code if no layouts is suddenly found. Hope this helps.
Comment 6 Eugene 2011-11-10 19:00:20 UTC
I've just reproduced the but by next steps:
(My system has ukrainian locale. So two languages of the system installed: english and ukrainian.)

1) rm ~/.kde/share/config/kxkbrc
2) reboot the system
3) just push Alt+Ctrl+K
The Scroll Lock indicator lights up for a moment and crash happens:


Application: Фонова служба KDE (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f5b17e38780 (LWP 1452))]

Thread 3 (Thread 0x7f5afb791700 (LWP 1520)):
#0  0x00007f5b15686773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5b12886f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b12887792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5afba6e516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f5b128ac2b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5b13150efc in start_thread (arg=0x7f5afb791700) at pthread_create.c:304
#6  0x00007f5b1569289d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5afad84700 (LWP 1521)):
#0  0x00007f5b13153034 in __pthread_mutex_lock (mutex=0x293b838) at pthread_mutex_lock.c:61
#1  0x00007f5b12886f2f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b12887429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b16acdf3e in QEventDispatcherGlib::processEvents (this=0x293b350, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f5b16aa1cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f5b16aa1ef7 in QEventLoop::exec (this=0x7f5afad83dd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f5b169b927f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f5b16a84cbf in QInotifyFileSystemWatcherEngine::run (this=0x2939ba0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f5b169bbd05 in QThreadPrivate::start (arg=0x2939ba0) at thread/qthread_unix.cpp:331
#9  0x00007f5b13150efc in start_thread (arg=0x7f5afad84700) at pthread_create.c:304
#10 0x00007f5b1569289d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5b17e38780 (LWP 1452)):
[KCrash Handler]
#6  QKeySequence::~QKeySequence (this=0x19, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1023
#7  0x00007f5afeab9983 in ~LayoutUnit (this=0x1, __in_chrg=<optimized out>) at ../../../kcontrol/keyboard/x11_helper.h:67
#8  node_destruct (n=0x2a11220, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#9  erase (it=<optimized out>, this=0x7fffab300680) at /usr/include/qt4/QtCore/qlist.h:452
#10 removeLast (this=0x7fffab300680) at /usr/include/qt4/QtCore/qlist.h:274
#11 LayoutsMenu::switchToLayout (layoutUnit=..., keyboardConfig=...) at ../../../kcontrol/keyboard/layouts_menu.cpp:75
#12 0x00007f5afeaa792d in KeyboardDaemon::setLayout (this=0x26ffbe0, action=<optimized out>) at ../../../kcontrol/keyboard/keyboard_daemon.cpp:223
#13 0x00007f5afeaa6cb8 in KeyboardDaemon::qt_metacall (this=0x26ffbe0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffab300840) at moc_keyboard_daemon.cpp:104
#14 0x00007f5b16ab5eba in QMetaObject::activate (sender=0x27b9e50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab300840) at kernel/qobject.cpp:3278
#15 0x00007f5b17724fc2 in KActionCollection::actionTriggered (this=<optimized out>, _t1=0x2756f00) at ./kactioncollection.moc:175
#16 0x00007f5b177273ba in KActionCollection::qt_metacall (this=0x27b9e50, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffab300960) at ./kactioncollection.moc:102
#17 0x00007f5b16ab5eba in QMetaObject::activate (sender=0x2756f00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab300960) at kernel/qobject.cpp:3278
#18 0x00007f5b15e4cb62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#19 0x00007f5b15e4cd4f in QAction::activate (this=0x2756f00, event=<optimized out>) at kernel/qaction.cpp:1257
#20 0x00007f5b17854d10 in trigger (this=0x2756f00) at /usr/include/qt4/QtGui/qaction.h:218
#21 KGlobalAccelPrivate::_k_invokeAction (this=<optimized out>, componentUnique=<optimized out>, actionUnique=<optimized out>, timestamp=758512) at ../../kdeui/shortcuts/kglobalaccel.cpp:449
#22 0x00007f5b178574b3 in KGlobalAccel::qt_metacall (this=0x2762eb0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffab300b20) at ./kglobalaccel.moc:77
#23 0x00007f5b16ab5eba in QMetaObject::activate (sender=0x27c6b60, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab300b20) at kernel/qobject.cpp:3278
#24 0x00007f5b179680e9 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=758512) at kglobalaccel_component_interface.moc:150
#25 0x00007f5b17968552 in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x27c6b60, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffab300f30) at kglobalaccel_component_interface.moc:98
#26 0x00007f5b140770e9 in QDBusConnectionPrivate::deliverCall (this=0x254b4c0, object=0x27c6b60, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:942
#27 0x00007f5b1408038f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#28 0x00007f5b16ab9a5e in QObject::event (this=0x27c6b60, e=<optimized out>) at kernel/qobject.cpp:1217
#29 0x00007f5b15e53424 in notify_helper (e=0x27be360, receiver=0x27c6b60, this=0x255ac70) at kernel/qapplication.cpp:4486
#30 QApplicationPrivate::notify_helper (this=0x255ac70, receiver=0x27c6b60, e=0x27be360) at kernel/qapplication.cpp:4458
#31 0x00007f5b15e58291 in QApplication::notify (this=0x7fffab3017c0, receiver=0x27c6b60, e=0x27be360) at kernel/qapplication.cpp:4365
#32 0x00007f5b17810126 in KApplication::notify (this=0x7fffab3017c0, receiver=0x27c6b60, event=0x27be360) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f5b16aa2afc in QCoreApplication::notifyInternal (this=0x7fffab3017c0, receiver=0x27c6b60, event=0x27be360) at kernel/qcoreapplication.cpp:787
#34 0x00007f5b16aa651f in sendEvent (event=0x27be360, receiver=0x27c6b60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24c65e0) at kernel/qcoreapplication.cpp:1428
#36 0x00007f5b16acda73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007f5b12886a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f5b12887258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f5b12887429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f5b16acded6 in QEventDispatcherGlib::processEvents (this=0x24c8d30, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#42 0x00007f5b15efb07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007f5b16aa1cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007f5b16aa1ef7 in QEventLoop::exec (this=0x7fffab301750, flags=...) at kernel/qeventloop.cpp:201
#45 0x00007f5b16aa6789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#46 0x00007f5b056d7d65 in kdemain (argc=1, argv=0x24e0e60) at ../../kded/kded.cpp:924
#47 0x0000000000408547 in launch (argc=1, _name=0x40b2d7 "kded4", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b15e "0") at ../../kinit/kinit.cpp:746
#48 0x0000000000405949 in main (argc=4, argv=0x7fff00000001, envp=0x7fffab302920) at ../../kinit/kinit.cpp:1861
Comment 7 Eugene 2011-11-10 19:05:54 UTC
(In reply to comment #6)
After crash, if you push Alt+Ctrl+K again, in second time, you'll see that keyboard layout indicator disappeared.
Comment 8 Christoph Feck 2011-11-10 20:42:45 UTC
*** Bug 286292 has been marked as a duplicate of this bug. ***
Comment 9 Andriy Rysin 2011-11-10 23:57:20 UTC
Git commit c710f2e04b5cca3e71baf7a2a2dc2ec3f33f1a55 by Andriy Rysin.
Committed on 11/11/2011 at 00:55.
Pushed by rysin into branch 'KDE/4.7'.

Don't crash when switching and no layouts found (try 2)
BUG: 286150
FIXED-IN: 4.7.4

M  +4    -1    kcontrol/keyboard/layouts_menu.cpp

http://commits.kde.org/kde-workspace/c710f2e04b5cca3e71baf7a2a2dc2ec3f33f1a55
Comment 10 Andriy Rysin 2011-11-11 00:18:22 UTC
Git commit 62f43a3012b636cb21f07080c921b05cf7c6065c by Andriy Rysin.
Committed on 11/11/2011 at 00:55.
Pushed by rysin into branch 'master'.

Don't crash when switching and no layouts found (try 2)
BUG: 286150
FIXED-IN: 4.7.4
(cherry picked from commit c710f2e04b5cca3e71baf7a2a2dc2ec3f33f1a55)

M  +4    -1    kcontrol/keyboard/layouts_menu.cpp

http://commits.kde.org/kde-workspace/62f43a3012b636cb21f07080c921b05cf7c6065c
Comment 11 Andriy Rysin 2011-11-11 00:19:35 UTC
Ok, thanks Eugene, I was able to reproduce it and have pushed another fix, hopefully this one will take care of it.
Comment 12 Eugene 2011-11-12 01:57:20 UTC
Hello, Aydriy! 
 Thank you for working on this issue and thank you for fix! 

 Can you please look into crash in commentary 6? Is it the same crash like in bug description and commentary 2? Or I need to register separate bugreport about Ctrl+Shift+K issue?
Comment 13 Andriy Rysin 2011-11-14 23:23:44 UTC
Both crash traces lead to layouts_menu.cpp:75 so I think it's the same bug. I actually was fixing (and retesting) the Alt+Ctrl+K issue but I bet the other one is fixed as well. Let's keep this one as fixed until somebody sees the crash in 4.7.4.
Comment 14 Eugene 2011-11-15 00:34:36 UTC
Ok! Thank you!
Comment 15 Andriy Rysin 2011-11-15 12:54:50 UTC
BTW, could you please also attach your kglobalshortcutsrc ? Looks like in this stack trace Ctrl+Alt+K actually tries not to toggle layouts but instead sets the layout directly.
Comment 16 Eugene 2011-11-15 14:10:04 UTC
Created attachment 65715 [details]
kglobalshortcutsrc
Comment 17 Eugene 2011-11-15 14:16:32 UTC
BTW, there are much more issues with keyboard layout switching, including that Ctrl+Alt+K is not switches at all. I wrote another report. I don't know but maybe info from it may be some helpfull for you. It's here:
https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/890438
and here:
https://bugs.freedesktop.org/show_bug.cgi?id=42931
See the end of report about Ctrl+Alt+K and attached screenshot.
Comment 18 Christoph Feck 2011-11-24 12:32:05 UTC
*** Bug 287174 has been marked as a duplicate of this bug. ***
Comment 19 sendingisrael 2011-11-30 00:05:57 UTC
Created attachment 66207 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.7.3 (4.7.3) using Qt 4.8.0

- What I was doing when the application crashed:

Locking my computer. My computer locked but after returning I had a crash bug.

-- Backtrace (Reduced):
#7  QKeySequence::~QKeySequence (this=0x25, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1022
#8  0x002c223b in ~LayoutUnit (this=0x19, __in_chrg=<optimized out>) at /usr/src/debug/kde-workspace-4.7.3/kcontrol/keyboard/x11_helper.h:67
#9  node_destruct (n=0x968b488, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:388
#10 erase (it=<optimized out>, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:465
#11 removeLast (this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:287
Comment 20 sendingisrael 2011-11-30 00:05:57 UTC
Created attachment 66208 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.7.3 (4.7.3) using Qt 4.8.0

- What I was doing when the application crashed:

Locking my computer. My computer locked but after returning I had a crash bug.

-- Backtrace (Reduced):
#7  QKeySequence::~QKeySequence (this=0x25, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1022
#8  0x002c223b in ~LayoutUnit (this=0x19, __in_chrg=<optimized out>) at /usr/src/debug/kde-workspace-4.7.3/kcontrol/keyboard/x11_helper.h:67
#9  node_destruct (n=0x968b488, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:388
#10 erase (it=<optimized out>, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:465
#11 removeLast (this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:287
Comment 21 sendingisrael 2011-11-30 00:05:58 UTC
Created attachment 66209 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.7.3 (4.7.3) using Qt 4.8.0

- What I was doing when the application crashed:

Locking my computer. My computer locked but after returning I had a crash bug.

-- Backtrace (Reduced):
#7  QKeySequence::~QKeySequence (this=0x25, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1022
#8  0x002c223b in ~LayoutUnit (this=0x19, __in_chrg=<optimized out>) at /usr/src/debug/kde-workspace-4.7.3/kcontrol/keyboard/x11_helper.h:67
#9  node_destruct (n=0x968b488, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:388
#10 erase (it=<optimized out>, this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:465
#11 removeLast (this=0xbfe78ad8) at /usr/include/QtCore/qlist.h:287
Comment 22 Kristian Karl 2011-12-10 13:28:07 UTC
Created attachment 66590 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

- What I was doing when the application crashed:
I wanted to lock my screen, and use the keyboard,
I hit screen lock key comb.: ctrl+l

-- Backtrace (Reduced):
#6  QKeySequence::~QKeySequence (this=0x19, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1023
#7  0x00007fa1c45e5983 in ~LayoutUnit (this=0x1, __in_chrg=<optimized out>) at ../../../kcontrol/keyboard/x11_helper.h:67
#8  node_destruct (n=0x26b7070, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#9  erase (it=<optimized out>, this=0x7fff20ef7f10) at /usr/include/qt4/QtCore/qlist.h:452
#10 removeLast (this=0x7fff20ef7f10) at /usr/include/qt4/QtCore/qlist.h:274
Comment 23 Andriy Rysin 2011-12-10 14:36:48 UTC
Is this still happening with 4.7.4?
Comment 24 Christoph Feck 2011-12-10 17:46:38 UTC
*** Bug 288624 has been marked as a duplicate of this bug. ***
Comment 25 Kristian Karl 2011-12-10 17:50:06 UTC
Ah, soory. did not see that is was solved for 4.7.4
My KDE is 4.7.3
Comment 26 Krzysztof Klinikowski 2011-12-29 12:56:08 UTC
Created attachment 67221 [details]
New crash information added by DrKonqi

kded4 ($Id$) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

- What I was doing when the application crashed:

Tried to lock my screen using ctrl + alt + l shortcut, second time.

- Unusual behavior I noticed:

When I locked screen first time I saw screenshot of my desktop instead of black background.

-- Backtrace (Reduced):
#8  QKeySequence::~QKeySequence (this=0x805000d, __in_chrg=<optimized out>) at kernel/qkeysequence.cpp:1023
#9  0x04bd7fba in ~LayoutUnit (this=0x8050001, __in_chrg=<optimized out>) at ../../../kcontrol/keyboard/x11_helper.h:67
#10 node_destruct (n=0x943cbe0, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#11 erase (it=<optimized out>, this=0xbfc34db8) at /usr/include/qt4/QtCore/qlist.h:452
#12 removeLast (this=0xbfc34db8) at /usr/include/qt4/QtCore/qlist.h:274