Bug 213652

Summary: Kxkb crashes after KVM USB switch [QString, LayoutUnit::toPair, KxkbWidget::setCurrentLayout, KxkbCore::initTray]
Product: [Unmaintained] kxkb Reporter: Evgeniy <tomskiy>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, mo.mashi
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 4.4.4, 4.5
Sentry Crash Report:

Description Evgeniy 2009-11-08 10:53:50 UTC
Application that crashed: kxkb
Version of the application: 2.0
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
when switching kxkb crash (	
not always)

 -- Backtrace:
Application: KDE Keyboard Layout Switcher (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f6dee327ac1 in ?? () from /usr/lib/libkdeinit4_kxkb.so
#6  0x00007f6dee321aef in ?? () from /usr/lib/libkdeinit4_kxkb.so
#7  0x00007f6dee323cf4 in ?? () from /usr/lib/libkdeinit4_kxkb.so
#8  0x00007f6dee32447f in ?? () from /usr/lib/libkdeinit4_kxkb.so
#9  0x00007f6df8ba2f56 in KApplication::x11EventFilter(_XEvent*) () from /usr/lib/libkdeui.so.5
#10 0x00007f6df7fc7391 in ?? () from /usr/lib/libQtGui.so.4
#11 0x00007f6df7fd7a24 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007f6df8001d0c in ?? () from /usr/lib/libQtGui.so.4
#13 0x00007f6df6e9dbbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#14 0x00007f6df6ea1588 in ?? () from /lib/libglib-2.0.so.0
#15 0x00007f6df6ea16b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#16 0x00007f6df9fe51a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#17 0x00007f6df80014be in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007f6df9fbb532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#19 0x00007f6df9fbb904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007f6df9fbdab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#21 0x00007f6dee326255 in kdemain () from /usr/lib/libkdeinit4_kxkb.so
#22 0x0000000000406da8 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-11 02:23:23 UTC
- If you can reproduce the crash at will (or you experience this regularly), can you install the "kdebase-workspace-dbg" package and post a complete backtrace here? Thanks
Comment 2 Evgeniy 2009-11-16 05:46:04 UTC
2009/11/11 Dario Andres <andresbajotierra@gmail.com>

> https://bugs.kde.org/show_bug.cgi?id=213652
>
>
> Dario Andres <andresbajotierra@gmail.com> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEEDSINFO
>                 CC|                            |andresbajotierra@gmail.com
>         Resolution|                            |BACKTRACE
>
>
>
>
> --- Comment #1 from Dario Andres <andresbajotierra gmail com>  2009-11-11
> 02:23:23 ---
> - If you can reproduce the crash at will (or you experience this
> regularly),
> can you install the "kdebase-workspace-dbg" package and post a complete
> backtrace here? Thanks
>
>
 Application: KDE Keyboard Layout Switcher (kdeinit4), signal: Segmentation
fault

The current source language is "auto; currently c".

[KCrash Handler]

#5 QBasicAtomicInt::ref (this=0xaa8600, layoutUnit=...) at
/usr/include/qt4/QtCore/qatomic_x86_64.h:121

#6 QString (this=0xaa8600, layoutUnit=...) at
/usr/include/qt4/QtCore/qstring.h:712

#7 LayoutUnit::toPair (this=0xaa8600, layoutUnit=...) at
../../../kcontrol/kxkb/kxkbconfig.h:78

#8 KxkbWidget::setCurrentLayout (this=0xaa8600, layoutUnit=...) at
../../../kcontrol/kxkb/kxkbwidget.cpp:49

#9 0x00007f2b77771aef in KxkbCore::initTray (this=0x9c1e30) at
../../../kcontrol/kxkb/kxkbcore.cpp:303

#10 0x00007f2b77773cf4 in KxkbCore::updateGroupsFromServer (this=0x9c1e30)
at ../../../kcontrol/kxkb/kxkbcore.cpp:486

#11 0x00007f2b7777447f in KxkbCore::x11EventFilter (this=0x9c1e30,
event=0x7fff8a755b00) at ../../../kcontrol/kxkb/kxkbcore.cpp:449

#12 0x00007f2b81f9bf56 in KAppX11HackWidget::publicx11Event (this=<value
optimized out>, _event=0x7fff8a755b00) at
../../kdeui/kernel/kapplication.cpp:911

#13 KApplication::x11EventFilter (this=<value optimized out>,
_event=0x7fff8a755b00) at ../../kdeui/kernel/kapplication.cpp:961

#14 0x00007f2b813c0391 in qt_x11EventFilter (ev=0x7fff8a755b00) at
kernel/qapplication_x11.cpp:375

#15 0x00007f2b813d0a24 in QApplication::x11ProcessEvent (this=<value
optimized out>, event=0x7fff8a755b00) at kernel/qapplication_x11.cpp:3271

#16 0x00007f2b813fad0c in x11EventSourceDispatch (s=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:146

#17 0x00007f2b80296bbe in g_main_context_dispatch () from
/lib/libglib-2.0.so.0

#18 0x00007f2b8029a588 in ?? () from /lib/libglib-2.0.so.0

#19 0x00007f2b8029a6b0 in g_main_context_iteration () from
/lib/libglib-2.0.so.0

#20 0x00007f2b833de1a6 in QEventDispatcherGlib::processEvents
(this=0x8b6910, flags=<value optimized out>) at
kernel/qeventdispatcher_glib.cpp:327

#21 0x00007f2b813fa4be in QGuiEventDispatcherGlib::processEvents
(this=0xaa8600, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:202

#22 0x00007f2b833b4532 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149

#23 0x00007f2b833b4904 in QEventLoop::exec (this=0x7fff8a755e30, flags=) at
kernel/qeventloop.cpp:201

#24 0x00007f2b833b6ab9 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888

#25 0x00007f2b77776255 in kdemain (argc=<value optimized out>, argv=<value
optimized out>) at ../../../kcontrol/kxkb/kxkbapp.cpp:92

#26 0x0000000000406da8 in launch (argc=1, _name=<value optimized out>,
args=<value optimized out>, cwd=<value optimized out>, envc=1, envs=<value
optimized out>, reset_env=false, tty=0x0,

avoid_loops=false, startup_id_str=0x40a299 "0") at ../../kinit/kinit.cpp:677

#27 0x0000000000407aa0 in handle_launcher_request (sock=8, who=<value
optimized out>) at ../../kinit/kinit.cpp:1169

#28 0x0000000000407f51 in handle_requests (waitForPid=0) at
../../kinit/kinit.cpp:1362

#29 0x0000000000408bb2 in main (argc=2, argv=<value optimized out>,
envp=<value optimized out>) at ../../kinit/kinit.cpp:1793
Comment 3 Dario Andres 2009-12-14 23:13:48 UTC
Thanks
Comment 4 Dario Andres 2010-01-20 14:28:44 UTC
From bug 223522:
-- What I was doing when the application crashed:
I was installing firefox 2 in wine doors and kde layout switcher crashed. I
also had firefox (linux), ktorrent, kmourse, kclipboard and ktts running.
Comment 5 Dario Andres 2010-01-20 14:28:47 UTC
*** Bug 223522 has been marked as a duplicate of this bug. ***
Comment 6 Oswald Buddenhagen 2010-05-02 17:21:06 UTC

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