Bug 35793

Summary: never-ending loop in text-channel:pendingproc_store_pending_messages
Product: Telepathy Reporter: Sjoerd Simons <sjoerd>
Component: loggerAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: major    
Priority: medium CC: guillaume.desmottes, nicolas
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sjoerd Simons 2011-03-30 03:32:08 UTC
Hey,

I noticed that my logger sometimes goes and uses 100% cpu, which is not great. A bit more research showed that the loop in store_pending_messages does..

if (cached->id == pending_id)
else if (cached->id < pending_id)
else if (cached->id < pending_id)

One of the two final ones should probably have a >, but i didn't dive deep enough into the logic to determine which one ;)
Comment 1 Nicolas Dufresne 2011-03-30 10:00:01 UTC
Fixed in commit 884c52dad5d5fb30a450b013b83aed306ed49164, will be included in next release (0.2.8)
Comment 2 Nicolas Dufresne 2011-03-30 13:57:29 UTC
(In reply to comment #1)
> Fixed in commit 884c52dad5d5fb30a450b013b83aed306ed49164, will be included in
> next release (0.2.8)

Correction, I forgot to push the 0.2.7 tag and news last time, so this patch made it for 0.2.7.
Comment 3 Nicolas Dufresne 2011-04-15 09:53:07 UTC
*** Bug 36259 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.