Loggerhead produced the following error:
INF [20090828-20:16:31.044] [1158543696] loggerhead: Starting to process http://bazaar.launchpad.net/%7Eubuntu-mythtv/mythtv/mythtv-trunk-022/annotate/head%3A/debian/libmyth-0.22-0.files
INF [20090828-20:16:31.164] [1158543696] lp-loggerhead: Using branch: ~ubuntu-mythtv/mythtv/mythtv-trunk-022
INF [20090828-20:16:31.164] [1158543696] lp-loggerhead: branch_url: http://bazaar.launchpad.net/00/00/38/da
ERR [20090828-20:16:31.179] [1158543696] root: Traceback (most recent call last):
ERR [20090828-20:16:31.180] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/httpserver.py", line 1062, in process_request_in_thread
ERR [20090828-20:16:31.180] [1158543696] root: self.finish_request(request, client_address)
ERR [20090828-20:16:31.180] [1158543696] root: File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
ERR [20090828-20:16:31.180] [1158543696] root: self.RequestHandlerClass(request, client_address, self)
ERR [20090828-20:16:31.180] [1158543696] root: File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
ERR [20090828-20:16:31.180] [1158543696] root: self.handle()
ERR [20090828-20:16:31.180] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/httpserver.py", line 436, in handle
ERR [20090828-20:16:31.181] [1158543696] root: BaseHTTPRequestHandler.handle(self)
ERR [20090828-20:16:31.181] [1158543696] root: File "/usr/lib/python2.4/BaseHTTPServer.py", line 316, in handle
ERR [20090828-20:16:31.181] [1158543696] root: self.handle_one_request()
ERR [20090828-20:16:31.181] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/httpserver.py", line 431, in handle_one_request
ERR [20090828-20:16:31.181] [1158543696] root: self.wsgi_execute()
ERR [20090828-20:16:31.181] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/httpserver.py", line 287, in wsgi_execute
ERR [20090828-20:16:31.181] [1158543696] root: self.wsgi_start_response)
ERR [20090828-20:16:31.181] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/sourcecode/launchpad-loggerhead/launchpad_loggerhead/debug.py", line 106, in wrapped_application
ERR [20090828-20:16:31.181] [1158543696] root: result = application(environ, response_hook)
ERR [20090828-20:16:31.181] [1158543696] root: File "sourcecode/launchpad-loggerhead/start-loggerhead.py", line 150, in wrapped
ERR [20090828-20:16:31.181] [1158543696] root: return app(environ, start_response)
ERR [20090828-20:16:31.181] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/sourcecode/launchpad-loggerhead/launchpad_loggerhead/debug.py", line 45, in wrapped
ERR [20090828-20:16:31.182] [1158543696] root: return app(environ, start_response)
ERR [20090828-20:16:31.182] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/translogger.py", line 68, in __call__
ERR [20090828-20:16:31.182] [1158543696] root: return self.application(environ, replacement_start_response)
ERR [20090828-20:16:31.182] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/config.py", line 285, in __call__
ERR [20090828-20:16:31.182] [1158543696] root: return self.app(environ, start_response)
ERR [20090828-20:16:31.182] [1158543696] root: File "sourcecode/launchpad-loggerhead/start-loggerhead.py", line 134, in wrapped
ERR [20090828-20:16:31.182] [1158543696] root: return app(environ, start_response)
ERR [20090828-20:16:31.182] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/sourcecode/launchpad-loggerhead/launchpad_loggerhead/session.py", line 53, in __call__
ERR [20090828-20:16:31.182] [1158543696] root: return self.cookie_handler(environ, start_response)
ERR [20090828-20:16:31.182] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/auth/cookie.py", line 305, in __call__
ERR [20090828-20:16:31.182] [1158543696] root: return self.application(environ, response_hook)
ERR [20090828-20:16:31.182] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/sourcecode/launchpad-loggerhead/launchpad_loggerhead/session.py", line 73, in _process
ERR [20090828-20:16:31.183] [1158543696] root: return self.application(environ, response_hook)
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/Paste-1.7.2-py2.4.egg/paste/httpexceptions.py", line 636, in __call__
ERR [20090828-20:16:31.183] [1158543696] root: return self.application(environ, start_response)
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/sourcecode/launchpad-loggerhead/launchpad_loggerhead/app.py", line 230, in __call__
ERR [20090828-20:16:31.183] [1158543696] root: return view.app(environ, start_response)
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/apps/branch.py", line 165, in app
ERR [20090828-20:16:31.183] [1158543696] root: return c(environ, start_response)
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/controllers/__init__.py", line 93, in __call__
ERR [20090828-20:16:31.183] [1158543696] root: vals.update(self.get_values(path, kwargs, headers))
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/controllers/annotate_ui.py", line 101, in get_values
ERR [20090828-20:16:31.183] [1158543696] root: history = self._history
ERR [20090828-20:16:31.183] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/controllers/__init__.py", line 65, in _history
ERR [20090828-20:16:31.184] [1158543696] root: self.__history = self._history_callable()
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/apps/branch.py", line 81, in get_history
ERR [20090828-20:16:31.184] [1158543696] root: revinfo_disk_cache=revinfo_disk_cache, cache_key=self.friendly_name)
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/history.py", line 271, in __init__
ERR [20090828-20:16:31.184] [1158543696] root: self._load_whole_history_data(caches, cache_key)
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/history.py", line 232, in _load_whole_history_data
ERR [20090828-20:16:31.184] [1158543696] root: update_missed_caches()
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/history.py", line 227, in update_missed_caches
ERR [20090828-20:16:31.184] [1158543696] root: cache.set(cache_key, self.last_revid, self._rev_info)
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/lib/loggerhead/history.py", line 187, in set
ERR [20090828-20:16:31.184] [1158543696] root: self._cache[key] = (revid, data)
ERR [20090828-20:16:31.184] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/bzr-1.17-py2.4-linux-x86_64.egg/bzrlib/lru_cache.py", line 217, in __setitem__
ERR [20090828-20:16:31.185] [1158543696] root: self.add(key, value, cleanup=None)
ERR [20090828-20:16:31.185] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/bzr-1.17-py2.4-linux-x86_64.egg/bzrlib/lru_cache.py", line 177, in add
ERR [20090828-20:16:31.185] [1158543696] root: self.cleanup()
ERR [20090828-20:16:31.185] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/bzr-1.17-py2.4-linux-x86_64.egg/bzrlib/lru_cache.py", line 213, in cleanup
ERR [20090828-20:16:31.185] [1158543696] root: self._remove_lru()
ERR [20090828-20:16:31.185] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/bzr-1.17-py2.4-linux-x86_64.egg/bzrlib/lru_cache.py", line 272, in _remove_lru
ERR [20090828-20:16:31.185] [1158543696] root: self._remove_node(self._least_recently_used)
ERR [20090828-20:16:31.185] [1158543696] root: File "/srv/codebrowse.launchpad.net/production/launchpad-rev-8312/eggs/bzr-1.17-py2.4-linux-x86_64.egg/bzrlib/lru_cache.py", line 260, in _remove_node
ERR [20090828-20:16:31.185] [1158543696] root: node_next = self._cache[node.next_key]
ERR [20090828-20:16:31.185] [1158543696] root: KeyError: '~jtv/launchpad/bug-416434'
This might be an instance of lp:396838, but it occurs with bzr 1.17, and the bug was fixed in that release.
Ah, I've sort of seen this one before, but was completely unable to reproduce it.
I'm reasonably sure it's due to an exception being raised somewhere in the LRUCache code that damages the data structure so that it fails in this way. So it's similar to bug 396838, but different in the details.