GNOME Bugzilla – Bug 615995
CPU Load goes to 100% when viewing saved credentials (not ssh keys)
Last modified: 2011-03-10 08:32:51 UTC
In Ubuntu Lucid Maxim Webster reported: I have various login credentials (web bases logins) stored for seahorse. Those logins are displayes using a tabbed list view in seahorse. When double-clicking an entry, to view details (including masked / unmasked) password, the CPU Load goes to 100% upon the dialog being opened. It falls down to expected level upon closing the dialog again. Launchpad ref: https://bugs.edge.launchpad.net/ubuntu/+source/seahorse/+bug/556349 Thanks!
Created attachment 165068 [details] [review] Make the set_acl function Make the function static as it is not used outside of the item itself.
Created attachment 165069 [details] [review] Fix high CPU usage due querying and setting the acl as fast as possible This patch contains the analysis and the proposed fix, it is against the latest seahorse...
Holger, Your patch looks good, what happens if someone else modifies the ACL list externally to seahorse and then the acl is queried again? Will the changes show up?
Any idea how one can test this? The other option for the patch is to not send the notify when setting an empty list when the current one is empty too. With this the call to get_acl would not happen and we would not query for it.
steps to reproduce: 1. open keyring (login) 2. select and open one entry in this keyring 3. see 100% cpu usage in top
I have a similar bug. I'm using Ubuntu 10.10 and seahorse 2.32.0. from the repositories. In fact my CPU goes to 100% only when I open the properties windows in the "Password" tab, not in the two other tabs.
This should fix the issue. Thanks for the report. commit 66d407eae68ab57e62fa3581fee891ed251adc9d Author: Stef Walter <stefw@collabora.co.uk> Date: Fri Feb 4 02:57:57 2011 +0100 Fix infinite loop when a keyring item is open. https://bugzilla.gnome.org/show_bug.cgi?id=641018