Commit command never completes and consumes 100% CPU

Nicholas Allen nick.allen at onlinehome.de
Thu Apr 9 17:53:50 BST 2009


Hi John,
>
>
> What is the version of the remote server?
revno: 4278 [merge]
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2009-04-09 12:59:32 +0100
message:
  fix loading of eol content filters (Ian Clatworthy)

I am using the same version on the client machine.

>
> My initial guess is that the autopack code is being triggered. However
> with newer versions of bzr that should be happening on the server, which
> shouldn't be effecting your local machine as much.

The CPU usage is all on my local machine with 0% CPU usage on remote server.
>
> I would also mention that you can use ^| (Ctrl+|, or SIGQUIT, IIRC) to
> cause bzr to drop into a debugger. Then you can use 'bt' to print out
> the backtrace, which will tell us what bzr is currently working on. You
> can then use "c" to have it continue doing whatever it was doing.x

Here is the stack trace if I do this. Note this is now running the
update command because Bazaar now tells me my working tree is out of
data and I need to run update. But I still notice the same 100% CPU
usage at the same place as when running the commit command.

^\** SIGQUIT received, entering debuggerB     3KB/s |
Indexing...:Indexing texts:Walking content
1239/1289                              
** Type 'c' to continue or 'q' to stop the process
** Or SIGQUIT again to quit (and possibly dump core)
> /usr/lib/python2.5/site-packages/bzrlib/breakin.py(33)_debug()
-> signal.signal(signal.SIGQUIT, _debug)
(Pdb) bt
  /usr/bin/bzr(130)<module>()
-> exit_val = bzrlib.commands.main(sys.argv)
  /usr/lib/python2.5/site-packages/bzrlib/commands.py(968)main()
-> ret = run_bzr_catch_errors(argv)
 
/usr/lib/python2.5/site-packages/bzrlib/commands.py(979)run_bzr_catch_errors()
-> return exception_to_return_code(run_bzr, argv)
 
/usr/lib/python2.5/site-packages/bzrlib/commands.py(727)exception_to_return_code()
-> return the_callable(*args, **kwargs)
  /usr/lib/python2.5/site-packages/bzrlib/commands.py(922)run_bzr()
-> ret = run(*run_argv)
  /usr/lib/python2.5/site-packages/bzrlib/commands.py(559)run_argv_aliases()
-> return self.run(**all_cmd_args)
  /usr/lib/python2.5/site-packages/bzrlib/builtins.py(1286)run()
-> view_info=view_info), possible_transports=possible_transports)
  /usr/lib/python2.5/site-packages/bzrlib/workingtree.py(2176)update()
-> old_tip = self.branch.update(possible_transports)
  /usr/lib/python2.5/site-packages/bzrlib/decorators.py(192)write_locked()
-> result = unbound(self, *args, **kwargs)
  /usr/lib/python2.5/site-packages/bzrlib/branch.py(2342)update()
-> self.pull(master, overwrite=True)
  /usr/lib/python2.5/site-packages/bzrlib/decorators.py(192)write_locked()
-> result = unbound(self, *args, **kwargs)
  /usr/lib/python2.5/site-packages/bzrlib/branch.py(2253)pull()
-> _override_hook_target=_override_hook_target)
  /usr/lib/python2.5/site-packages/bzrlib/decorators.py(192)write_locked()
-> result = unbound(self, *args, **kwargs)
  /usr/lib/python2.5/site-packages/bzrlib/branch.py(2078)pull()
-> graph=graph)
  /usr/lib/python2.5/site-packages/bzrlib/decorators.py(192)write_locked()
-> result = unbound(self, *args, **kwargs)
  /usr/lib/python2.5/site-packages/bzrlib/branch.py(776)update_revisions()
-> overwrite, graph)
  /usr/lib/python2.5/site-packages/bzrlib/branch.py(2856)update_revisions()
-> self.target.set_last_revision_info(stop_revno, stop_revision)
  /usr/lib/python2.5/site-packages/bzrlib/decorators.py(192)write_locked()
-> result = unbound(self, *args, **kwargs)
 
/usr/lib/python2.5/site-packages/bzrlib/branch.py(2413)set_last_revision_info()
-> self._run_post_change_branch_tip_hooks(old_revno, old_revid)
 
/usr/lib/python2.5/site-packages/bzrlib/branch.py(926)_run_post_change_branch_tip_hooks()
-> hook(params)
  /home/nick/.bazaar/plugins/search/__init__.py(59)auto_index_branch()
-> search_index.index_branch(result.branch, result.new_revid)
  /home/nick/.bazaar/plugins/search/index.py(321)index_branch()
-> self.index_revisions(branch, revs_to_index)
  /home/nick/.bazaar/plugins/search/index.py(336)index_revisions()
-> outer_bar)
  /home/nick/.bazaar/plugins/search/index.py(371)_index_revisions()
-> revision_group)
  /home/nick/.bazaar/plugins/search/index.py(790)_terms_for_texts()
-> line_terms = _tokeniser_re.split(line)
> /usr/lib/python2.5/site-packages/bzrlib/breakin.py(33)_debug()
-> signal.signal(signal.SIGQUIT, _debug)



More information about the bazaar mailing list