disconnecting the sftp transport hangs

Bug #677305 reported by Michael Hudson-Doyle on 2010-11-19
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
High
Unassigned
Launchpad itself
High
Aaron Bentley

Bug Description

Bzrlib hangs when a connected sftp transport is deleted:

>>> from bzrlib.transport import get_transport
>>> t = get_transport('sftp://localhost/')
>>> t.list_dir('.')
['initrd.img', 'lost%2Bfound', 'sys', 'media', 'lib', 'cdrom', 'opt', 'home', 'vmlinuz.old', 'var', 'initrd', 'selinux', 'vmlinuz', 'mnt', 'etc', 'lib32', 'srv', 'dev', 'proc', 'usr', 'nonexistent', 'bin', 'boot', 'root', 'tmp', 'lib64', 'initrd.img.old', 'sbin']
>>> del t
^CException KeyboardInterrupt: KeyboardInterrupt() in <function terminate at 0x26f7050> ignored

Seems present in 2.2.1 through trunk r5544.

Related branches

Michael Hudson-Doyle (mwhudson) wrote :

This made all code imports fail in Launchpad. Reverting to 2.2.0 got them going again.

Max Bowsher (maxb) wrote :

There's a strong likelyhood that this is a dup of bug 659590.... in which case I've already had a fix landed on lp:bzr/2.2 :-)

Vincent Ladeuil (vila) wrote :

Can you confirm that maxb's fix addresses the issue ?

It is worth releasing 2.2.2 then ?

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Michael Hudson-Doyle (mwhudson) wrote :

Yes, maxb's branch does seem to fix the issue for Launchpad. You might want to land it on trunk :-)

Aaron Bentley (abentley) on 2010-11-19
Changed in launchpad-code:
importance: Undecided → High
status: New → In Progress
Changed in launchpad-code:
assignee: nobody → Aaron Bentley (abentley)
milestone: none → 10.12
tags: added: qa-needstesting
Changed in launchpad-code:
status: In Progress → Fix Committed
Robert Collins (lifeless) wrote :

As this is a rollback, its known-good.

tags: added: qa-ok
removed: qa-needstesting
Max Bowsher (maxb) wrote :

Fixed in bzr 2.2.2, tracked under bug 659590

Changed in bzr:
status: Confirmed → Fix Released
Curtis Hovey (sinzui) on 2010-12-08
Changed in launchpad-code:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers