Bug 280331 - kded4 uses a CPU core on 100%
Summary: kded4 uses a CPU core on 100%
Status: RESOLVED DUPLICATE of bug 268038
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 0.0.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 10:41 UTC by Unknown
Modified: 2011-08-25 12:34 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 Unknown 2011-08-18 10:41:39 UTC
Version:           0.0.1 (using KDE 4.7.0) 
OS:                Linux

After starting my machine, kded4 fully uses one of the CPU cores. A little bit after as I attach it to GDB, it moves back to the normal operation.

Backtrace of the 100% usage:
#0  0x00007fce55bfd0ad in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fce48fca6fc in ?? () from /usr/X11R6/lib64/libGL.so.1
#2  0x00007fce48ad4862 in ?? () from /usr/lib64/tls/libnvidia-tls.so.275.21
#3  0x00007fce53977784 in read (c=0x6e2dd0) at /usr/include/bits/unistd.h:45
#4  _xcb_in_read (c=0x6e2dd0) at xcb_in.c:666
#5  0x00007fce53977c88 in xcb_poll_for_event (c=0x6e2dd0) at xcb_in.c:551
#6  0x00007fce57a1e748 in poll_for_event (dpy=0x700f40) at xcb_io.c:210
#7  0x00007fce57a1eb15 in poll_for_response (dpy=0x700f40) at xcb_io.c:235
#8  0x00007fce57a1f01d in _XEventsQueued (dpy=0x700f40, mode=<value optimized out>) at xcb_io.c:304
#9  0x00007fce57a0f8df in XEventsQueued (dpy=0x700f40, mode=2) at Pending.c:43
#10 0x00007fce5641ca4c in x11EventSourceCheck (s=0x6d93d0) at kernel/qguieventdispatcher_glib.cpp:85
#11 0x00007fce52a5b84c in g_main_context_check (context=0x6d90e0, max_priority=0, fds=<value optimized out>, n_fds=<value optimized out>) at gmain.c:2961
#12 0x00007fce52a5c132 in g_main_context_iterate (context=0x6d90e0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3088
#13 0x00007fce52a5c650 in g_main_context_iteration (context=0x6d90e0, may_block=1) at gmain.c:3154
#14 0x00007fce571f722f in QEventDispatcherGlib::processEvents (this=0x6182a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#15 0x00007fce5641cbae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#16 0x00007fce571cb8d2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#17 0x00007fce571cbae5 in QEventLoop::exec (this=0x7fff560c5270, flags=...) at kernel/qeventloop.cpp:201
#18 0x00007fce571cff2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#19 0x00007fce45728837 in kdemain (argc=1, argv=0x6ba080) at /usr/src/debug/kdelibs-4.7.0/kded/kded.cpp:924
#20 0x0000000000407279 in launch (argc=1, _name=0x40b590 "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=0x40b40e "0") at /usr/src/debug/kdelibs-4.7.0/kinit/kinit.cpp:734
#21 0x0000000000409b06 in main (argc=4, argv=0x7fff560c6328, envp=0x7fff560c6350) at /usr/src/debug/kdelibs-4.7.0/kinit/kinit.cpp:1849

bt full:
#0  0x00007fce55bfd0ad in read () at ../sysdeps/unix/syscall-template.S:82
No locals.
#1  0x00007fce48fca6fc in ?? () from /usr/X11R6/lib64/libGL.so.1
No symbol table info available.
#2  0x00007fce48ad4862 in ?? () from /usr/lib64/tls/libnvidia-tls.so.275.21
No symbol table info available.
#3  0x00007fce53977784 in read (c=0x6e2dd0) at /usr/include/bits/unistd.h:45
No locals.
#4  _xcb_in_read (c=0x6e2dd0) at xcb_in.c:666
        n = <value optimized out>
#5  0x00007fce53977c88 in xcb_poll_for_event (c=0x6e2dd0) at xcb_in.c:551
        ret = 0x0
#6  0x00007fce57a1e748 in poll_for_event (dpy=0x700f40) at xcb_io.c:210
        __PRETTY_FUNCTION__ = "poll_for_event"
#7  0x00007fce57a1eb15 in poll_for_response (dpy=0x700f40) at xcb_io.c:235
        response = 0x700f40
        error = 0x0
        req = <value optimized out>
        __PRETTY_FUNCTION__ = "poll_for_response"
#8  0x00007fce57a1f01d in _XEventsQueued (dpy=0x700f40, mode=<value optimized out>) at xcb_io.c:304
        response = <value optimized out>
#9  0x00007fce57a0f8df in XEventsQueued (dpy=0x700f40, mode=2) at Pending.c:43
        ret_val = <value optimized out>
#10 0x00007fce5641ca4c in x11EventSourceCheck (s=0x6d93d0) at kernel/qguieventdispatcher_glib.cpp:85
        source = 0x6d93d0
#11 0x00007fce52a5b84c in g_main_context_check (context=0x6d90e0, max_priority=0, fds=<value optimized out>, n_fds=<value optimized out>) at gmain.c:2961
        result = <value optimized out>
        check = 0x7fce5641ca30 <x11EventSourceCheck(GSource*)>
        source = 0x6d93d0
        pollrec = <value optimized out>
        n_ready = <value optimized out>
        i = <value optimized out>
#12 0x00007fce52a5c132 in g_main_context_iterate (context=0x6d90e0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3088
        max_priority = 200
        timeout = 0
        some_ready = <value optimized out>
        nfds = 12
        allocated_nfds = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        fds = 0xa60320
        __PRETTY_FUNCTION__ = "g_main_context_iterate"
#13 0x00007fce52a5c650 in g_main_context_iteration (context=0x6d90e0, may_block=1) at gmain.c:3154
        retval = <value optimized out>
#14 0x00007fce571f722f in QEventDispatcherGlib::processEvents (this=0x6182a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
        d = 0x6182c0
        canWait = true
        result = <value optimized out>
#15 0x00007fce5641cbae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
        d = 0x6182c0
        returnValue = 245
#16 0x00007fce571cb8d2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
        d = 0x856a20
#17 0x00007fce571cbae5 in QEventLoop::exec (this=0x7fff560c5270, flags=...) at kernel/qeventloop.cpp:201
        d = 0x856a20
#18 0x00007fce571cff2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
        threadData = 0x615a70
        eventLoop = {<QObject> = {_vptr.QObject = 0x7fce574fd910, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7fce57287c40 "QObject", data = 0x7fce57287ce0, extradata = 0x7fce574f5540}}, 
            d_ptr = {d = 0x856a20}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fce57290940 "Qt", data = 0x7fce572941c0, extradata = 0x0}}}, static staticMetaObject = {d = {
              superdata = 0x7fce574f5520, stringdata = 0x7fce5729a160 "QEventLoop", data = 0x7fce5729a180, extradata = 0x0}}}
        returnCode = <value optimized out>
#19 0x00007fce45728837 in kdemain (argc=1, argv=0x6ba080) at /usr/src/debug/kdelibs-4.7.0/kded/kded.cpp:924
        aboutData = {d = 0x6bb0f0}
        componentData = {_vptr.KComponentData = 0x7fce579c8c30, d = 0x6bece0}
        config = {d = 0x6bf720}
        cg = {<KConfigBase> = {_vptr.KConfigBase = 0x7fce579c2950}, d = {d = 0x6d0dd0}}
        kded = 0x6c8e90
        k = {<KUniqueApplication> = {<KApplication> = {<QApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x7fce4592fbf0, static staticMetaObject = {d = {superdata = 0x0, 
                        stringdata = 0x7fce57287c40 "QObject", data = 0x7fce57287ce0, extradata = 0x7fce574f5540}}, d_ptr = {d = 0x6d6770}, static staticQtMetaObject = {d = {superdata = 0x0, 
                        stringdata = 0x7fce57290940 "Qt", data = 0x7fce572941c0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fce574f5520, 
                      stringdata = 0x7fce5729a200 "QCoreApplication", data = 0x7fce5729a2a0, extradata = 0x0}}, static self = 0x7fff560c5320}, static staticMetaObject = {d = {superdata = 0x7fce574fd9a0, 
                    stringdata = 0x7fce569f07a0 "QApplication", data = 0x7fce569f09e0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7fce56e111c0, 
                  stringdata = 0x7fce580c9280 "KApplication", data = 0x7fce580c9420, extradata = 0x0}}, static loadedByKdeinit = false, static KApp = 0x7fff560c5320, d = 0x735fd0}, 
            static staticMetaObject = {d = {superdata = 0x7fce583690e0, stringdata = 0x7fce580c9a80 "KUniqueApplication", data = 0x7fce580c9b80, extradata = 0x0}}, d = 0x6cec00}, startup = false}
        options = {d = 0x6b9bc0}
        args = <value optimized out>
        result = <value optimized out>
#20 0x0000000000407279 in launch (argc=1, _name=0x40b590 "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=0x40b40e "0") at /usr/src/debug/kdelibs-4.7.0/kinit/kinit.cpp:734
        l = {<QObject> = {_vptr.QObject = 0x7fce574fd190, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7fce57287c40 "QObject", data = 0x7fce57287ce0, extradata = 0x7fce574f5540}}, 
            d_ptr = {d = 0x6b9fe0}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7fce57290940 "Qt", data = 0x7fce572941c0, extradata = 0x0}}}, static staticMetaObject = {d = {
              superdata = 0x7fce574f5520, stringdata = 0x7fce57299740 "QLibrary", data = 0x7fce572997c0, extradata = 0x0}}, d = 0x6c3a20, did_load = true}
        sym = 0x7fce45727f80
        exec = <value optimized out>
        lib = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d61a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
            reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 175}, alloc = 0, size = 0, data = 0x7fce574ff8fa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
            reserved = 0, array = {0}}, d = 0x6b97e0, static codecForCStrings = 0x0}
        execpath = {static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d638 "", array = ""}, static shared_empty = {ref = {_q_value = 55}, alloc = 0, size = 0, 
            data = 0x7fce574ff798 "", array = ""}, d = 0x6b9fa0}
        docPath = {static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d638 "", array = ""}, static shared_empty = {ref = {_q_value = 55}, alloc = 0, size = 0, 
            data = 0x7fce574ff798 "", array = ""}, d = 0x6b97a0}
        name = {static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d638 "", array = ""}, static shared_empty = {ref = {_q_value = 55}, alloc = 0, size = 0, data = 0x7fce574ff798 "", 
            array = ""}, d = 0x632aa0}
        exec = {static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d638 "", array = ""}, static shared_empty = {ref = {_q_value = 55}, alloc = 0, size = 0, data = 0x7fce574ff798 "", 
            array = ""}, d = 0x6b9770}
        libpath = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x60d61a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 175}, alloc = 0, size = 0, data = 0x7fce574ff8fa, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x6b9c30, static codecForCStrings = 0x0}
        startup_id = {d = 0x6b9b20}
#21 0x0000000000409b06 in main (argc=4, argv=0x7fff560c6328, envp=0x7fff560c6350) at /usr/src/debug/kdelibs-4.7.0/kinit/kinit.cpp:1849
        pid = <value optimized out>
        do_fork = <value optimized out>
        launch_klauncher = <value optimized out>
        launch_kded = <value optimized out>
        keep_running = <value optimized out>
        safe_argv = 0x6183c0

Reproducible: Sometimes



Expected Results:  
 

OS: Linux (x86_64) release 2.6.37.6-0.7-desktop
Compiler: gcc
Comment 1 Christoph Feck 2011-08-20 10:08:24 UTC
Unfortunately, the backtrace does not show where it hangs, the backtrace from comment #0 just points to the main event loop.

Could you check if this is a duplicate of bug 268038? Bug 268038 comment #27 has some openSUSE specific discussion. If ntrack is not the cause, you probably have to follow http://kdepepo.wordpress.com/2011/05/11/troubleshooting-kded4-bugs/ to find the kded module that causes the issue.
Comment 2 Christoph Feck 2011-08-25 12:17:15 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Unknown 2011-08-25 12:33:40 UTC
Sorry for the late answer, I've accidentally archived the notification mail.

Up to this date I haven't even known that I have ntrack installed, but zypper said so; and the version is the same (014) as in the linked comment you pointed to.

Besides, the blog post was really useful; next time I report a bug against kded4, I'll take care.

Now, I close this as a duplicate, and if after an ntrack upgrade I can reproduce this, I'll reopen.

*** This bug has been marked as a duplicate of bug 26038 ***
Comment 4 Unknown 2011-08-25 12:34:06 UTC

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