garbo.py not threadsafe (fails with IndexError due to race condition)

Bug #893720 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Stuart Bishop

Bug Description

Looks like a race condition that a simple guard should avoid.

Exception in thread Worker-5:
Traceback (most recent call last):
 File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
   self.run()
 File "/usr/lib/python2.6/threading.py", line 484, in run
   self.__target(*self.__args, **self.__kwargs)
 File "/srv/launchpad.net/production/launchpad-rev-14299/lib/lp/scripts/garbo.py", line 1174, in run_tasks_in_thread
   tunable_loop_class = tunable_loops.pop(0)
IndexError: pop from empty list

Related branches

Stuart Bishop (stub)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Stuart Bishop (stub)
tags: added: trivial
Revision history for this message
Robert Collins (lifeless) wrote :

Use a threaded queue, will be simplest

summary: - garbo.py fails with IndexError due to race condition
+ garbo.py not threadsafe (fails with IndexError due to race condition)
Changed in launchpad:
importance: High → Critical
tags: added: oops should-oops
Stuart Bishop (stub)
Changed in launchpad:
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :

Fixed in stable r15151 (http://bazaar.launchpad.net/~launchpad-pqm/launchpad/stable/revision/15151) by a commit, but not testable.

tags: added: qa-untestable
Changed in launchpad:
status: Triaged → Fix Committed
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.