bzr hangs when trying to pull an uploaded branch

Bug #477709 reported by Wade Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

This may be an invalid operation, but bzr should return an error message rather than hang.

To reproduce:

bzr init test
cd test
echo "first change" > a
bzr add
bzr ci -m "initial import"
bzr push sftp:<some url>

bzr pull sftp:<same url as above>
bzr will just hang at this point. As I said, this is probably an invalid operation, but bzr should return an error rather than just hang.

-----------------------

bzr version
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/bin/python2.6 2.6.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
  Platform: Darwin-10.0.0-i386-64bit
  bzrlib: /Library/Python/2.6/site-packages/bzrlib
  Bazaar configuration: /Users/wwilliam/.bazaar
  Bazaar log file: /Users/wwilliam/.bzr.log

--------------------------

Shared repo version:
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/local/bin/python2.5 2.5.2
  Python standard library: /usr/local/lib/python2.5
  Platform: OpenBSD-4.4-i386-Intel_Pentium_II_-GenuineIntel-_686-class,_512KB_L2_cache-32bit-ELF
  bzrlib: /usr/local/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/wade/.bazaar
  Bazaar log file: /home/wade/.bzr.log

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 477709] [NEW] bzr hangs when trying to pull an uploaded branch

This should work; can you hit ctrl-\ to get a debugger to open and type
bt\n
to get a backtrace?

Thanks,
Rob

Revision history for this message
Wade Williams (wadesworld) wrote :

xanadu:new-test wwilliam$ bzr pull sftp://wade@10.1.1.2/home/bzr/new-test
^\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)
> /Library/Python/2.6/site-packages/bzrlib/breakin.py(41)_debug()
-> signal.signal(_breakin_signal_number, _debug)
(Pdb) bt
  /usr/local/bin/bzr(142)<module>()
-> exit_val = bzrlib.commands.main()
  /Library/Python/2.6/site-packages/bzrlib/commands.py(1115)main()
-> ret = run_bzr_catch_errors(argv)
  /Library/Python/2.6/site-packages/bzrlib/commands.py(1127)run_bzr_catch_errors()
-> return exception_to_return_code(run_bzr, argv)
  /Library/Python/2.6/site-packages/bzrlib/commands.py(842)exception_to_return_code()
-> return the_callable(*args, **kwargs)
  /Library/Python/2.6/site-packages/bzrlib/commands.py(1037)run_bzr()
-> ret = run(*run_argv)
  /Library/Python/2.6/site-packages/bzrlib/commands.py(654)run_argv_aliases()
-> return self.run(**all_cmd_args)
  /Library/Python/2.6/site-packages/bzrlib/builtins.py(970)run()
-> possible_transports=possible_transports)
  /Library/Python/2.6/site-packages/bzrlib/bundle/__init__.py(49)read_mergeable_from_url()
-> _do_directive)
  /Library/Python/2.6/site-packages/bzrlib/bundle/__init__.py(96)read_mergeable_from_transport()
-> return _serializer.read_bundle(f), transport
  /Library/Python/2.6/site-packages/bzrlib/bundle/serializer/__init__.py(57)read_bundle()
-> for line in f:
  /Library/Python/2.6/site-packages/paramiko/file.py(106)next()
-> line = self.readline()
  /Library/Python/2.6/site-packages/paramiko/file.py(214)readline()
-> new_data = self._read(n)
  /Library/Python/2.6/site-packages/paramiko/sftp_file.py(152)_read()
-> data = self._read_prefetch(size)
  /Library/Python/2.6/site-packages/paramiko/sftp_file.py(132)_read_prefetch()
-> self.sftp._read_response()
  /Library/Python/2.6/site-packages/paramiko/sftp_client.py(654)_read_response()
-> t, data = self._read_packet()
  /Library/Python/2.6/site-packages/paramiko/sftp.py(175)_read_packet()
-> x = self._read_all(4)
  /Library/Python/2.6/site-packages/paramiko/sftp.py(159)_read_all()
-> x = self.sock.recv(n)
  /Library/Python/2.6/site-packages/bzrlib/transport/ssh.py(193)recv()
-> return self.__socket.recv(n)
  /Library/Python/2.6/site-packages/bzrlib/transport/ssh.py(632)recv()
-> return os.read(self.proc.stdout.fileno(), count)
> /Library/Python/2.6/site-packages/bzrlib/breakin.py(41)_debug()
-> signal.signal(_breakin_signal_number, _debug)
(Pdb)

Revision history for this message
Wade Williams (wadesworld) wrote :

After more investigation, I believe this bug is the same thing as 484558 and can probably be closed in favor of the other one.

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.