Subject: kern/14087: scp failure with NEW_PIPE
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/28/2001 14:05:48
>Number:         14087
>Category:       kern
>Synopsis:       scp failure with NEW_PIPE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 28 05:09:00 PDT 2001
>Originator:     Frank van der Linden
>Release:        NetBSD-current, 27 sept 2001
Noone, nowhere, nonono.
NetBSD k2 1.5Y NetBSD 1.5Y (K1) #0: Fri Sep 28 13:17:18 CEST 2001     fvdl@k2:/work/trees/current/sys/arch/i386/compile/K1 i386

	Using scp to copy a file over a slowish network fails. The file
	in question is:

-rwxr-xr-x  1 fvdl  wheel  2247389 Sep 28 12:27 netbsd.gz

	The progress bar gets to around 80%, at which point it dies with
	'connection closed by remote host'. At the other end, the file
	then seems to be complete (the size looks ok), but an md5 check
	gives a different checksum.

	Things a re ok when I use a kernel from the same sources, compile
	without NEW_PIPE.

	What seems to happen is that for the NEW_PIPE case, the ssh forked
	by scp exits early somehow, causing a SIGPIPE.

	Ktrace output available on request.
	scp netbsd.gz