[Bug 1434226] Re: kded5 suddenly grabs all the available memory and crashes

Oscar orojas518 at gmail.com
Sat Mar 28 03:55:07 UTC 2015


Confirming this, after some minutes of use kded5 starts using all
available RAM  and makes the system unusable.

I decided to do a quick debugging and used cgroups to limit kded5 memory
usage (to prevent it from freezing everything) and started paying
attention to the memory usage on KSysGuard, when memory usage started
increasing without control I sent an interrupt signal to the process and
attached gdb, and well, there it was, over 2000 calls to Hook::getField
from kded_notificationhelper.so which is provided by package kubuntu-
notification-helper. I took a look at the source, and I noticed that
after appending part of the locale to the field name it calls itself
again and again. I made a quick patch to the source code and now the
problem seems to have disappeared, however, I still don't understand why
this problem didn't happen before, I only started experiencing this 3
days ago...

** Patch added: "Gets rid of recursion by calling another function to actually search for the field in m_fields"
   https://bugs.launchpad.net/ubuntu/+source/kded/+bug/1434226/+attachment/4358439/+files/hook.cpp.patch

** Package changed: kded (Ubuntu) => kubuntu-notification-helper
(Ubuntu)

** Summary changed:

- kded5 suddenly grabs all the available memory and crashes
+ infinite recursion makes kded5 use excessive memory

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kubuntu-notification-helper in Ubuntu.
https://bugs.launchpad.net/bugs/1434226

Title:
  infinite recursion makes kded5 use excessive memory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kubuntu-notification-helper/+bug/1434226/+subscriptions




More information about the kubuntu-bugs mailing list