Bug 223947

Summary: kxkb crashes in _XiGetDevicePresenceNotifyEvent
Product: [Unmaintained] kxkb Reporter: Volodymyr <duron.se>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hippich, loader2x
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 Volodymyr 2010-01-23 17:40:55 UTC
Application that crashed: kxkb
Version of the application: 2.0
KDE Version: 4.3.1 (KDE 4.3.1) "release 6"
Qt Version: 4.5.3
Operating System: Linux 2.6.31.8-0.1-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

What I was doing when the application crashed:
post new answer on forum from firefox

 -- Backtrace:
Application: KDE Keyboard Layout Switcher (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f588e0e9ac1 in ?? () from /usr/lib64/libkdeinit4_kxkb.so
#6  0x00007f588e0e3aef in _XiGetDevicePresenceNotifyEvent () from /usr/lib64/libkdeinit4_kxkb.so
#7  0x00007f588e0e5cf4 in _XiGetDevicePresenceNotifyEvent () from /usr/lib64/libkdeinit4_kxkb.so
#8  0x00007f588e0e647f in _XiGetDevicePresenceNotifyEvent () from /usr/lib64/libkdeinit4_kxkb.so
#9  0x00007f5896f24d76 in KApplication::x11EventFilter(_XEvent*) () from /usr/lib64/libkdeui.so.5
#10 0x00007f5896385681 in ?? () from /usr/lib64/libQtGui.so.4
#11 0x00007f5896395d11 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007f58963beb6c in ?? () from /usr/lib64/libQtGui.so.4
#13 0x00007f5895274dde in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#14 0x00007f58952787a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#15 0x00007f58952788d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f58985633a3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#17 0x00007f58963be31e in ?? () from /usr/lib64/libQtGui.so.4
#18 0x00007f5898539712 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#19 0x00007f5898539ae4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#20 0x00007f589853bc99 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#21 0x00007f588e0e8255 in kdemain () from /usr/lib64/libkdeinit4_kxkb.so
#22 0x0000000000406f88 in _start ()

Reported using DrKonqi
Comment 1 Andriy Rysin 2010-05-18 03:55:23 UTC
*** Bug 236241 has been marked as a duplicate of this bug. ***
Comment 2 Andriy Rysin 2010-05-18 04:32:39 UTC
Updating bug title.
Comment 3 Andriy Rysin 2010-05-24 19:38:17 UTC
I can't reproduce this problem and stack trace does not have enough information. If you still see this crash could you please install debug packages for kdebase-workspace and if it happens again post a stack trace?
Thanks.
Comment 4 loader2x 2010-05-24 19:57:12 UTC
ok, I'll post the stack trace again.
I have installed kdebase-workspace-dbg.
Cheers
Remy

On Mon, May 24, 2010 at 7:38 PM, Andriy Rysin <arysin@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=223947
>
>
>
>
>
> --- Comment #3 from Andriy Rysin <arysin gmail com>  2010-05-24 19:38:17
> ---
> I can't reproduce this problem and stack trace does not have enough
> information. If you still see this crash could you please install debug
> packages for kdebase-workspace and if it happens again post a stack trace?
> Thanks.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
Comment 5 loader2x 2010-05-29 11:36:31 UTC
Here is the trace :


Application: KDE Keyboard Layout Switcher (kdeinit4), signal: Segmentation
fault

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

[KCrash Handler]

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

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

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

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

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

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

#11 0x00007fb3730a447f in KxkbCore::x11EventFilter (this=0x970df0,
event=0x7fff677b5080) at ../../../kcontrol/kxkb/kxkbcore.cpp:449

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

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

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

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

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

#17 0x00007fb37aeb2bce in g_main_dispatch (context=0x8cf120) at
/build/buildd/glib2.0-2.22.3/glib/gmain.c:1960

#18 IA__g_main_context_dispatch (context=0x8cf120) at
/build/buildd/glib2.0-2.22.3/glib/gmain.c:2513

#19 0x00007fb37aeb6598 in g_main_context_iterate (context=0x8cf120,
block=<value optimized out>, dispatch=<value optimized out>, self=<value
optimized out>)

at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591

#20 0x00007fb37aeb66c0 in IA__g_main_context_iteration (context=0x8cf120,
may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654

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

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

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

#24 0x00007fb37dfd0904 in QEventLoop::exec (this=0x7fff677b53b0, flags=) at
kernel/qeventloop.cpp:201

#25 0x00007fb37dfd2ab9 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888

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

#27 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

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

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

#30 0x0000000000408bb2 in main (argc=2, argv=<value optimized out>,
envp=<value optimized out>) at ../../kinit/kinit.cpp:1793


Cheers
Remy

On Mon, May 24, 2010 at 7:56 PM, qw qwe <loader2x@gmail.com> wrote:

> ok, I'll post the stack trace again.
> I have installed kdebase-workspace-dbg.
> Cheers
> Remy
>
>
> On Mon, May 24, 2010 at 7:38 PM, Andriy Rysin <arysin@gmail.com> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=223947
>>
>>
>>
>>
>>
>> --- Comment #3 from Andriy Rysin <arysin gmail com>  2010-05-24 19:38:17
>> ---
>> I can't reproduce this problem and stack trace does not have enough
>> information. If you still see this crash could you please install debug
>> packages for kdebase-workspace and if it happens again post a stack trace?
>> Thanks.
>>
>> --
>> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
>> ------- You are receiving this mail because: -------
>> You are on the CC list for the bug.
>>
>
>
Comment 6 Andriy Rysin 2010-05-29 14:56:18 UTC
Ok, so the stack trace from comment #5 seems like a bug 209247. The fix for that was pushed in 4.4 track as Revision 1127913 on May 18. So please try that change or retry with next 4.4 release and see if you still have this crash.
Comment 7 Andriy Rysin 2010-06-06 14:30:23 UTC
Based on my comment #6 I'll mark it as a dup of 209247 and as fixed in 4.4.4 and 4.5, if you still see it in KDE >= 4.4.4 or 4.5 feel free to reopen it.

*** This bug has been marked as a duplicate of bug 209247 ***
Comment 8 Andriy Rysin 2010-06-07 03:04:11 UTC
*** Bug 240959 has been marked as a duplicate of this bug. ***