Mailing List Archive

1.2pre17 scp Input/Output error
Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp:

Conditions:
pc36 is a RH6.0/i386 box.
abc.co.za is a RH5.2/i386 box. (private network)
openssh 1.2 pre 17 on both boxes.
Line between them is a 128k leased line. It works between two 10baseT
machines.
If the scrollbar is active, the scp fails, if it isn't active, scp
works. Note that without the scrollbar, the file gets there and is
valid.

I can try for an strace, but I'd rather not flood the mailing list.
Also, server or client? I've attached scp -v info because its rather
small, but useless.

---cut-here---
[bds@pc36 ssh-rh5]$ ls -la openssl-0.9.4-3.i386.rpm
-rwxr-xr-x 1 root root 653323 Dec 14 11:07 openssl-0.9.4-3.i386.rpm
[bds@pc36 ssh-rh5]$ scp openssl-0.9.4-3.i386.rpm root@abc.co.za:/tmp
root@abc.co.za's password:
openssl-0.9.4-3.i386 30% |******** | 196 KB - stalled -
openssl-0.9.4-3.i386.rpm: Input/output error
[bds@pc36 ssh-rh5]$ Killed by signal 2.
---cut-here---
Note: I had to press Ctrl-C (signal 2).

---cut-here---
[bds@pc36 ssh-rh5]$ scp openssl-0.9.4-3.i386.rpm root@abc.co.za:/tmp -q
root@abc.co.za's password:
[bds@pc36 ssh-rh5]$
---cut-here---

---cut-here---
[bds@pc36 ssh-rh5]$ scp openssl-0.9.4-3.i386.rpm root@abc.co.za:/tmp -q -v
Executing: host abc.co.za, user root, command scp -v -t /tmp
SSH Version OpenSSH-1.2, protocol version 1.5.
Compiled with SSL.
debug: Reading configuration data /etc/ssh/ssh_config
debug: ssh_connect: getuid 513 geteuid 0 anon 0
debug: Connecting to abc.co.za [10.128.1.1] port 22.
debug: Allocated local port 1023.
debug: Connection established.
debug: Remote protocol version 1.5, remote software version OpenSSH-1.2
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'abc.co.za' is known and matches the host key.
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Doing password authentication.
root@abc.co.za's password:
debug: Sending command: scp -v -t /tmp
debug: Entering interactive session.
Sending file modes: C0755 653323 openssl-0.9.4-3.i386.rpm
debug: Transferred: stdin 653362, stdout 3, stderr 0 bytes in 66.0 seconds
debug: Bytes per second: stdin 9899.5, stdout 0.0, stderr 0.0
debug: Exit status 0
---cut-here---

The failed verbose looks the same, except the last few lines:
---cut-here---
Sending file modes: C0755 653323 openssl-0.9.4-3.i386.rpm
openssl-0.9.4-3.i386 30% |******** | 196 KB - stalled -
openssl-0.9.4-3.i386.rpm: Input/output error
[bds@pc36 ssh-rh5]$ Killed by signal 2.
debug: Calling cleanup 0x80558f0(0x0)
---cut-here---

--
Kind regards,
Berend

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berend De Schouwer, +27-11-712-1435, UCS
Re: 1.2pre17 scp Input/Output error [ In reply to ]
Berend De Schouwer wrote:
>
> Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp:
>
> Conditions:
> pc36 is a RH6.0/i386 box.
> abc.co.za is a RH5.2/i386 box. (private network)
> openssh 1.2 pre 17 on both boxes.
> Line between them is a 128k leased line. It works between two 10baseT
> machines.
> If the scrollbar is active, the scp fails, if it isn't active, scp
> works. Note that without the scrollbar, the file gets there and is
> valid.

I can confirm this problem - in our case, both ends are RH6.1 with
a 2.2.13 kernel. I'm actually using it via a SOCKS5 firewall with
the runsocks command - I don't know the spec of the intervening
pipework.

I also noticed that small files transfer without problem (anything
larger than ~500k breaks).

I rebuilt the supplied SRC rpm locally.

Barrie
--
Barrie Spence (313-2465) Agilent Technologies UK Ltd
E-Mail: baz@sqf.hp.com South Queensferry, UK
Play: barrie@calvin.demon.co.uk #include <std/disclaimer.h>
Re: 1.2pre17 scp Input/Output error [ In reply to ]
On 14 Dec, Barrie Spence wrote:
> Berend De Schouwer wrote:
>>
>> Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp:
>>
>> Conditions:
>> pc36 is a RH6.0/i386 box.
>> abc.co.za is a RH5.2/i386 box. (private network)
>> openssh 1.2 pre 17 on both boxes.
>> Line between them is a 128k leased line. It works between two 10baseT
>> machines.
>> If the scrollbar is active, the scp fails, if it isn't active, scp
>> works. Note that without the scrollbar, the file gets there and is
>> valid.
>
> I can confirm this problem - in our case, both ends are RH6.1 with
> a 2.2.13 kernel. I'm actually using it via a SOCKS5 firewall with
> the runsocks command - I don't know the spec of the intervening
> pipework.

> I also noticed that small files transfer without problem (anything
> larger than ~500k breaks).

More investigation indicates that this happens if the scrollbar needs
updating. ie, if the entire file gets sent in one go (immediate 100%)
it works. On slow links and large files the scrollbar has to wait at
x%, and update. It breaks at the very first (visual) update. Happens
with a 1.2pre15 client as well.

> I rebuilt the supplied SRC rpm locally.

Me too - one per RedHat release (4, 5 and 6). Gnome support compiled
out. Built to .rpm from the .tar.gz

> Barrie

--
Kind regards,
Berend

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berend De Schouwer, +27-11-712-1435, UCS
Re: 1.2pre17 scp Input/Output error [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 14 Dec 1999, Berend De Schouwer wrote:

> Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp:

Does the attached patch sole your problems?

Thanks for the report.

Damien

- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4VsVVormJ9RG1dI8RAsl6AKCmc/67Z9s5vGxpRxakfoxc7mDulwCghByS
xcT+G0f9yFT7JjtjPyzNI4M=
=uYXx
-----END PGP SIGNATURE-----