Bug 274346 - kded crash just after connecting a USB mouse
Summary: kded crash just after connecting a USB mouse
Status: RESOLVED DUPLICATE of bug 273353
Alias: None
Product: wacomtablet
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Jörg Ehrichs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-28 12:49 UTC by Gökçen Eraslan
Modified: 2011-05-30 13:33 UTC (History)
1 user (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 Gökçen Eraslan 2011-05-28 12:49:29 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.2
Operating System: Linux 2.6.37.6 x86_64
Distribution: "Pardus 2011"

-- Information about the crash:
After I logged in to KDE, Dr. Konqi showed up and I saw that crash is due to the kde-wacom module. I did not connect any wacom devices, by the way.

Around the line 71 of xdeviceeventnotifier.cpp where the crash occurs, code is like that:

bool XDeviceEventNotifier::x11Event(XEvent * event)
{
    XGenericEventCookie *cookie = &event->xcookie;

    if (cookie->type == GenericEvent && cookie->evtype == XI_HierarchyChanged)
    {
        //if(XGetEventData(QX11Info::display(), cookie))
        {
            XIHierarchyEvent * hev = (XIHierarchyEvent *)cookie->data;
            XIHierarchyInfo *info = (XIHierarchyInfo *)hev->info;

            for (int i = 0; i < hev->num_info; i++) //line 71
            {
                if (info[i].flags & XISlaveRemoved) {
                    kDebug() << "Device removed with id: " << info[i].deviceid;
                    emit deviceRemoved(info[i].deviceid);
                }

 
I think this commit[1] broke something. I use Pardus as distro, not Kubuntu and I haven't seen this crash in 1.2 branch of wacom tablet.

[1] https://projects.kde.org/projects/extragear/base/wacomtablet/repository/revisions/8c49014176a444978640960c4fb4f5e3e322f3ef

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDE Servisi (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff270d82740 (LWP 1075))]

Thread 3 (Thread 0x7ff252458710 (LWP 1085)):
#0  0x00007ff26e438953 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff26b2712e4 in g_main_context_poll (context=0x261cca0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0x261cca0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3086
#3  0x00007ff26b27181d in g_main_context_iteration (context=0x261cca0, may_block=1) at gmain.c:3154
#4  0x00007ff26fa2d9c6 in QEventDispatcherGlib::processEvents (this=0x2619420, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007ff26fa01982 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007ff26fa01bcc in QEventLoop::exec (this=0x7ff252457e40, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007ff26f916a44 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007ff26f9192e5 in QThreadPrivate::start (arg=0x260b940) at thread/qthread_unix.cpp:320
#9  0x00007ff26f68ed04 in start_thread (arg=0x7ff252458710) at pthread_create.c:301
#10 0x00007ff26e4425ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ff24ab86710 (LWP 1128)):
#0  0x00007ff26e438953 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff26b2712e4 in g_main_context_poll (context=0x25639d0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0x25639d0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3086
#3  0x00007ff26b271bf2 in g_main_loop_run (loop=0x25639b0) at gmain.c:3299
#4  0x00007ff24ae3fef4 in gdbus_shared_thread_func (data=<value optimized out>) at gdbusprivate.c:276
#5  0x00007ff26b298846 in g_thread_create_proxy (data=0x2563ab0) at gthread.c:1897
#6  0x00007ff26f68ed04 in start_thread (arg=0x7ff24ab86710) at pthread_create.c:301
#7  0x00007ff26e4425ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ff270d82740 (LWP 1075)):
[KCrash Handler]
#6  Wacom::XDeviceEventNotifier::x11Event (this=0x2610b20, event=0x7fff6ab07c80) at /var/pisi/kde-wacom-tablet-1.3.1-6/work/wacomtablet-v1.3.1/src/kded/xdeviceeventnotifier.cpp:71
#7  0x00007ff27078bffe in publicx11Event (this=<value optimized out>, _event=0x7fff6ab07c80) at /var/pisi/kdelibs-4.6.3-102/work/kdelibs-4.6.3/kdeui/kernel/kapplication.cpp:918
#8  KApplication::x11EventFilter (this=<value optimized out>, _event=0x7fff6ab07c80) at /var/pisi/kdelibs-4.6.3-102/work/kdelibs-4.6.3/kdeui/kernel/kapplication.cpp:969
#9  0x00007ff26ec16f15 in qt_x11EventFilter (ev=0x7fff6ab07c80) at kernel/qapplication_x11.cpp:435
#10 0x00007ff26ec257f0 in QApplication::x11ProcessEvent (this=0x7fff6ab08040, event=0x7fff6ab07c80) at kernel/qapplication_x11.cpp:3299
#11 0x00007ff26ec4dc46 in x11EventSourceDispatch (s=0x24a99f0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#12 0x00007ff26b270da3 in g_main_dispatch (context=0x24a88e0) at gmain.c:2440
#13 g_main_context_dispatch (context=0x24a88e0) at gmain.c:3013
#14 0x00007ff26b271580 in g_main_context_iterate (context=0x24a88e0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3091
#15 0x00007ff26b27181d in g_main_context_iteration (context=0x24a88e0, may_block=1) at gmain.c:3154
#16 0x00007ff26fa2d96f in QEventDispatcherGlib::processEvents (this=0x23e8ca0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#17 0x00007ff26ec4d94e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#18 0x00007ff26fa01982 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#19 0x00007ff26fa01bcc in QEventLoop::exec (this=0x7fff6ab07f90, flags=...) at kernel/qeventloop.cpp:201
#20 0x00007ff26fa0623b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#21 0x00007ff25e223187 in kdemain (argc=1, argv=0x2431440) at /var/pisi/kdelibs-4.6.3-102/work/kdelibs-4.6.3/kded/kded.cpp:925
#22 0x0000000000406cc9 in launch (argc=1, _name=0x40aec3 "kded4", args=<value optimized out>, cwd=0x0, envc=<value optimized out>, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40ad4a "0") at /var/pisi/kdelibs-4.6.3-102/work/kdelibs-4.6.3/kinit/kinit.cpp:734
#23 0x000000000040951e in main (argc=4, argv=0x7fff6ab090a8, envp=0x7fff6ab090d0) at /var/pisi/kdelibs-4.6.3-102/work/kdelibs-4.6.3/kinit/kinit.cpp:1849

Reported using DrKonqi
Comment 1 Gökçen Eraslan 2011-05-28 12:58:53 UTC
Now I remember correctly when the crash occured, I've plugged a USB mouse and the the kded crashed. I've changed the summary accordingly.
Comment 2 Metin Akdere 2011-05-29 20:33:36 UTC
May be this commit [1] is supposed to fix this issue.

[1] https://projects.kde.org/projects/extragear/base/wacomtablet/repository/revisions/694f4dd4bf7b1591934b1cbe1db2acc00df66088
Comment 3 Jörg Ehrichs 2011-05-30 13:33:27 UTC

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