0.14 SmartServer with a 0.16 client?

casret casret at gmail.com
Fri Jun 15 23:46:54 BST 2007


On 6/14/07, Martin Pool <mbp at sourcefrog.net> wrote:
>
>
> No, that's not expected or intended, therefore not documented.  Since
> you already have this situation set up, it would help us debug it if
> you could use the 'breakin' debugger in 0.16 to get some more
> information.  (This will only work on unix.)  To do this
>
> 1- reproduce the hang
> 2- on the client, hold Control and tap the backslash key
> 3- you should get a debugger prompt; type "bt" and press enter, then
> post the results here.
>
>
giao-desk:pts/6%bzr commit -m 'test'
~/bzr.old/sandbox
Killed by signal 3.
** SIGQUIT received, entering debugger
** Type 'c' to continue or 'q' to stop the process
** Or SIGQUIT again to quit (and possibly dump core)
> /usr/lib/python2.4/site-packages/bzrlib/breakin.py(33)_debug()
-> signal.signal(signal.SIGQUIT, _debug)
(Pdb) bt
  /usr/X11R6/bin/bzr(98)?()
-> exit_val = bzrlib.commands.main(sys.argv)
  /usr/lib/python2.4/site-packages/bzrlib/commands.py(710)main()
-> ret = run_bzr_catch_errors(argv)

/usr/lib/python2.4/site-packages/bzrlib/commands.py(718)run_bzr_catch_errors()
-> return run_bzr(argv)
  /usr/lib/python2.4/site-packages/bzrlib/commands.py(679)run_bzr()
-> ret = run(*run_argv)
  /usr/lib/python2.4/site-packages/bzrlib/commands.py(375)run_argv_aliases()
-> return self.run(**all_cmd_args)
  /usr/lib/python2.4/site-packages/bzrlib/builtins.py(2210)run()
-> reporter=reporter, revprops=properties)
  /usr/lib/python2.4/site-packages/bzrlib/decorators.py(165)write_locked()
-> return unbound(self, *args, **kwargs)
  /usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py(245)commit()
-> result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  /usr/lib/python2.4/site-packages/bzrlib/decorators.py(165)write_locked()
-> return unbound(self, *args, **kwargs)
  /usr/lib/python2.4/site-packages/bzrlib/mutabletree.py(195)commit()
-> revprops=revprops, *args, **kwargs)
  /usr/lib/python2.4/site-packages/bzrlib/commit.py(256)commit()
-> self._check_bound_branch()

/usr/lib/python2.4/site-packages/bzrlib/commit.py(477)_check_bound_branch()
-> self.master_branch.lock_write()
  /usr/lib/python2.4/site-packages/bzrlib/branch.py(1318)lock_write()
-> repo_token = self.repository.lock_write()
  /usr/lib/python2.4/site-packages/bzrlib/repository.py(252)lock_write()
-> return self.control_files.lock_write(token=token)
  /usr/lib/python2.4/site-packages/bzrlib/lockable_files.py(258)lock_write()
-> token_from_lock = self._lock.lock_write(token=token)
  /usr/lib/python2.4/site-packages/bzrlib/lockdir.py(453)lock_write()
-> self.wait_lock()
  /usr/lib/python2.4/site-packages/bzrlib/lockdir.py(392)wait_lock()
-> self.attempt_lock()
  /usr/lib/python2.4/site-packages/bzrlib/lockdir.py(197)attempt_lock()
-> if self.transport.is_readonly():

/usr/lib/python2.4/site-packages/bzrlib/transport/remote.py(131)is_readonly()
-> resp = self._call2('Transport.is_readonly')
  /usr/lib/python2.4/site-packages/bzrlib/transport/remote.py(181)_call2()
-> return self._client.call(method, *args)
  /usr/lib/python2.4/site-packages/bzrlib/smart/client.py(30)call()
-> result, protocol = self.call_expecting_body(method, *args)

/usr/lib/python2.4/site-packages/bzrlib/smart/client.py(45)call_expecting_body
()
-> return smart_protocol.read_response_tuple(expect_body=True),
smart_protocol

/usr/lib/python2.4/site-packages/bzrlib/smart/protocol.py(341)read_response_tu
ple()
-> result = self._recv_tuple()

/usr/lib/python2.4/site-packages/bzrlib/smart/protocol.py(367)_recv_tuple()
-> return _decode_tuple(self._recv_line())
  /usr/lib/python2.4/site-packages/bzrlib/smart/protocol.py(374)_recv_line()
-> new_char = self._request.read_bytes(1)
  /usr/lib/python2.4/site-packages/bzrlib/smart/medium.py(337)read_bytes()
-> return self._read_bytes(count)
  /usr/lib/python2.4/site-packages/bzrlib/smart/medium.py(599)_read_bytes()
-> return self._medium._read_bytes(count)
  /usr/lib/python2.4/site-packages/bzrlib/smart/medium.py(502)_read_bytes()
-> return self._read_from.read(count)
> /usr/lib/python2.4/site-packages/bzrlib/breakin.py(33)_debug()
-> signal.signal(signal.SIGQUIT, _debug)
(Pdb)

BTW, after I hit 'c' I got:

bzr: ERROR: [Errno 4] Interrupted system call

and it cleaned up the locks, which didn't happen before.

Steps to reproduce:

server> bzr init repo/sandbox
client> bzr co bzr+ssh://bzr@srv1.btrll.com/home/bzr/repo/sandbox sandbox
client> cd sandbox
client> bzr commit -m 'test'

Both machines are linux, server is fedora, client is gentoo.  I have tried
it with all combos of standalone and repo trees.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20070615/7289e2e9/attachment.htm 


More information about the bazaar mailing list