Bug 155399 - konsole crash after xkb configuration change
Summary: konsole crash after xkb configuration change
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 13:57 UTC by Pavel Volkovitskiy
Modified: 2009-02-04 20:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Volkovitskiy 2008-01-10 13:57:49 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

after i switch to kde4, konsole sometimes crash then i load my custom xkb configuration with xkbcomp.
ie i start konsole, then run xkbcom and then change layout -> sometimes konsole crash
Starting program: /opt/kde4/bin/konsole --nofork
[Thread debugging using libthread_db enabled]
[New Thread 0x2b7f31b80830 (LWP 25631)]
konsole(25631)/kdeui (KXmlGui) KXMLGUIFactory::removeClient: KXMLGUIFactory::rem
oveClient(  0x71acc8  )
konsole(25631)/kdeui (KXmlGui) KXMLGUIFactory::addClient: KXMLGUIFactory::addCli
ent(  0x71acc8  )
konsole(25631)/kdeui (KXmlGui) KXMLGUIFactory::addClient: KXMLGUIFactory::addCli
ent(  0x7db518  )

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b7f31b80830 (LWP 25631)]
XkbTranslateKeyCode (xkb=0x844ae0, key=<value optimized out>, mods=1, 
    mods_rtrn=0x7fff83209894, keysym_rtrn=0x7fff832098e0) at XKBBind.c:317
317                 if ((entry->active)&&((mods&type->mods.mask)==entry->mods.ma
sk)) {
Current language:  auto; currently c
(gdb) bt
#0  XkbTranslateKeyCode (xkb=0x844ae0, key=<value optimized out>, mods=1, 
    mods_rtrn=0x7fff83209894, keysym_rtrn=0x7fff832098e0) at XKBBind.c:317
#1  0x00002b7f2a8052bb in XLookupString (event=0x7fff83209e30, 
    buffer=0x2b7f2aaa7b00 "", nbytes=256, keysym=0x7fff832098e0, 
    status=<value optimized out>) at XKBBind.c:670
#2  0x00002b7f2a7df7cc in _XimLocalFilter (d=0x64e8e0, 
    w=<value optimized out>, ev=0x7fff83209e30, 
    client_data=<value optimized out>) at imLcFlt.c:58
#3  0x00002b7f2e1230c3 in ?? () from /usr/lib64/libQtGui.so.4
#4  0x00002b7f2dd51b7b in QApplication::x11ProcessEvent ()
   from /usr/lib64/libQtGui.so.4
#5  0x00002b7f2dd730c8 in ?? () from /usr/lib64/libQtGui.so.4
#6  0x00002b7f30717153 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#7  0x00002b7f3071a44d in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00002b7f3071a97e in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#9  0x00002b7f2d6dd9b0 in QEventDispatcherGlib::processEvents ()
   from /usr/lib64/libQtCore.so.4
#10 0x00002b7f2dd72ecf in ?? () from /usr/lib64/libQtGui.so.4
#11 0x00002b7f2d6bec08 in QEventLoop::processEvents ()
   from /usr/lib64/libQtCore.so.4
#12 0x00002b7f2d6bed1d in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#13 0x00002b7f2d6c0ee1 in QCoreApplication::exec ()
   from /usr/lib64/libQtCore.so.4
#14 0x00002b7f27b656ff in kdemain ()
   from /opt/kde4/lib64/libkdeinit4_konsole.so
#15 0x00002b7f2f08f8a4 in __libc_start_main () from /lib64/libc.so.6
#16 0x0000000000400869 in _start ()

i'm not sure if this konsole, kde or qt bug
Comment 1 Robert Knight 2008-01-10 14:27:37 UTC
Looks like something in Qt or perhaps even X.org.  You don't appear to have debugging symbols installed for QtGui, that might provide additional information if you can get them.

>  konsole sometimes crash

How often is 'sometimes'?  
Comment 2 Pavel Volkovitskiy 2008-01-10 20:44:16 UTC
ok, i installed debuginfo for qt4
also i tried about 10 times but can't make it crash
so i started konsole under gdb, will append info if konsole crash
Comment 3 Pavel Volkovitskiy 2008-01-11 08:32:20 UTC
i get it again, after i move focus to console and press "switch to english" hotkey (shift+capslock)


konsole(7764)/kdeui (KXmlGui) KXMLGUIFactory::addClient: KXMLGUIFactory::addClient(  0x76aa78  )
konsole(7764)/kdeui (KNotification) KNotification::slotReceivedId: 75

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b6d0de75830 (LWP 7764)]
XkbTranslateKeyCode (xkb=0x7ea2f0, key=<value optimized out>, mods=8192, mods_rtrn=0x7fffa6f135a4, keysym_rtrn=0x7fffa6f135f0) at XKBBind.c:317
317                 if ((entry->active)&&((mods&type->mods.mask)==entry->mods.mask)) {
Current language:  auto; currently c
(gdb) bt
#0  XkbTranslateKeyCode (xkb=0x7ea2f0, key=<value optimized out>, mods=8192, mods_rtrn=0x7fffa6f135a4, keysym_rtrn=0x7fffa6f135f0) at XKBBind.c:317
#1  0x00002b6d06afa2bb in XLookupString (event=0x7fffa6f13b40, buffer=0x2b6d06d9cb00 "\b", nbytes=256, keysym=0x7fffa6f135f0, status=<value optimized out>) at XKBBind.c:670
#2  0x00002b6d06ad47cc in _XimLocalFilter (d=0x64e8e0, w=<value optimized out>, ev=0x7fffa6f13b40, client_data=<value optimized out>) at imLcFlt.c:58
#3  0x00002b6d0a4180c3 in ?? () from /usr/lib64/libQtGui.so.4
#4  0x00002b6d0a046b7b in QApplication::x11ProcessEvent () from /usr/lib64/libQtGui.so.4
#5  0x00002b6d0a0680c8 in ?? () from /usr/lib64/libQtGui.so.4
#6  0x00002b6d0ca0c153 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#7  0x00002b6d0ca0f44d in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00002b6d0ca0f97e in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#9  0x00002b6d099d29b0 in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#10 0x00002b6d0a067ecf in ?? () from /usr/lib64/libQtGui.so.4
#11 0x00002b6d099b3c08 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#12 0x00002b6d099b3d1d in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#13 0x00002b6d099b5ee1 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#14 0x00002b6d03e5a79f in kdemain () from /opt/kde4/lib64/libkdeinit4_konsole.so
#15 0x00002b6d0b3848a4 in __libc_start_main () from /lib64/libc.so.6
#16 0x0000000000400869 in _start ()
(gdb) 

PS: am i right that gdb doesn't find qt debug symbols?
Comment 4 Robert Knight 2008-01-15 23:21:08 UTC
> PS: am i right that gdb doesn't find qt debug symbols? 

Your backtrace has debug symbols for the QtCore library, but not for any of the functions in the QtGui library.  Perhaps your distribution packages these separately? 
Comment 5 Pavel Volkovitskiy 2008-01-29 20:11:45 UTC
another crash

#5  XkbTranslateKeyCode (xkb=0x89e210, key=<value optimized out>, mods=8192, 
    mods_rtrn=0x7fffa357dff4, keysym_rtrn=0x7fffa357e040) at XKBBind.c:317
#6  0x00002ae80a7772bb in XLookupString (event=0x7fffa357e590, 
    buffer=0x2ae80aa19b00 "\r�", nbytes=256, keysym=0x7fffa357e040, 
    status=<value optimized out>) at XKBBind.c:670
#7  0x00002ae80a7517cc in _XimLocalFilter (d=0x64e990, 
    w=<value optimized out>, ev=0x7fffa357e590, 
    client_data=<value optimized out>) at imLcFlt.c:58
#8  0x00002ae80a120023 in QXIMInputContext::x11FilterEvent (this=0x796970, 
    keywidget=0x8b4340, event=0x7fffa357e590)
    at inputmethod/qximinputcontext_x11.cpp:601
#9  0x00002ae809d03288 in QApplication::x11ProcessEvent (this=0x7fffa357e9f0, 
    event=0x7fffa357e590) at kernel/qapplication_x11.cpp:2765
#10 0x00002ae809d25942 in x11EventSourceDispatch (s=0x64d4d0, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:135
#11 0x00002ae80b76d153 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#12 0x00002ae80b77044d in ?? () from /usr/lib64/libglib-2.0.so.0
#13 0x00002ae80b77097e in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#14 0x00002ae80808bb70 in QEventDispatcherGlib::processEvents (this=0x63bf50, 
    flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:338
#15 0x00002ae809d2571f in QGuiEventDispatcherGlib::processEvents (
    this=0x89e210, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:191
#16 0x00002ae80806a3f8 in QEventLoop::processEvents (
    this=<value optimized out>, flags=<value optimized out>)
    at kernel/qeventloop.cpp:140
#17 0x00002ae80806a516 in QEventLoop::exec (this=0x7fffa357e940, 
    flags=@0x7fffa357e950) at kernel/qeventloop.cpp:182
#18 0x00002ae80806c543 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:759
#19 0x00002ae8077f0bbf in kdemain () from /usr/lib64/libkdeinit4_konsole.so
#20 0x00002ae807a3d8a4 in __libc_start_main () from /lib64/libc.so.6
#21 0x00000000004005c9 in _start ()
#0  0x00002ae807ab4560 in nanosleep () from /lib64/libc.so.6
Comment 6 Pavel Volkovitskiy 2008-01-29 20:30:58 UTC
forgot to mention, last trace from 4.0 branch
Comment 7 Dario Andres 2008-12-31 13:46:43 UTC
Can anyone else reproduce this bug with a recent KDE (4.1.3 / 4.2beta2 / 4.2svn) ? Thanks :)
Comment 8 Nick Shaforostoff 2009-01-12 00:57:35 UTC
i run KDE 4.1.3 and now KDE 4.2 regularly with xkbcomp taken from:
http://l10n.lrn.ru/doc/doku.php?id=article:compose
and everything works fine 
Comment 9 Dario Andres 2009-02-04 20:25:34 UTC
No news from the bug reporter, closing. Please reopen this bug report if you experience the same bug again with a recent KDE (4.1.4 / 4.2.0 / 4.2svn / 4.3svn) . Thanks :)