Bug 1382 - scp/sftp sometimes hangs as a ControlMaster slave
Summary: scp/sftp sometimes hangs as a ControlMaster slave
Status: CLOSED DUPLICATE of bug 1263
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 4.7p1
Hardware: ix86 Mac OS X
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 07:44 AEST by EricKow
Modified: 2008-04-04 10:01 AEDT (History)
2 users (show)

See Also:


Attachments
script to call scp repeatedly as a ControlMaster slave (1.11 KB, text/plain)
2007-10-24 07:45 AEST, EricKow
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description EricKow 2007-10-24 07:44:00 AEST
This can be reproduced with the attached Perl script, which sets up a ControlMaster master and repeatedly copies the file 'foo' from some remote location.  On MacOS X (Intel), it hangs at some number of iterations, sometimes 20ish, 40ish, 150, etc.  The script only tests scp, but I remember having similar issues with sftp before.

Some extra background on this bug: the version control system darcs uses the ControlMaster feature because operations like committing patches or retrieving them from a remote repository requires several invocations of ssh, scp and sftp, not necessarily in that order.  We were pretty happy with the ControlMaster feature until one day, MacOS X users on the Intel machines started reporting that darcs would mysteriously hang in the middle of some operation using a remote repository.  I have also heard one report that darcs with ControlMaster enabled also sometimes hangs on Linux, but have not been able to confirm it.

I've been stumped on this one for ages until a user suggested we try reproducing it outside of darcs, hence the attached Perl script.

Thanks!
Comment 1 EricKow 2007-10-24 07:45:01 AEST
Created attachment 1370 [details]
script to call scp repeatedly as a ControlMaster slave
Comment 2 EricKow 2007-10-24 07:56:29 AEST
I forgot to mention: we have seen this behaviour with versions 4.2, 4.3, 4.5 and 4.7
Comment 3 Damien Miller 2007-10-26 10:41:13 AEST

*** This bug has been marked as a duplicate of bug 1263 ***
Comment 4 Damien Miller 2008-04-04 10:01:11 AEDT
Close resolved bugs after release.