NetBSD Problem Report #49023

From tn@catvmics.ne.jp  Sat Jul 19 22:31:29 2014
Return-Path: <tn@catvmics.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B12CDA654B
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 19 Jul 2014 22:31:29 +0000 (UTC)
Message-Id: <20140719223050.792C339088@lethe.tn.catvmics.ne.jp>
Date: Sun, 20 Jul 2014 07:30:50 +0900 (JST)
From: Takeshi Nakayama <nakayama@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: rcp(1) hangs in rcmd(1)
X-Send-Pr-Version: 3.95

>Number:         49023
>Category:       bin
>Synopsis:       rcp(1) hangs in rcmd(1)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 19 22:35:00 +0000 2014
>Closed-Date:    Sat Dec 27 23:56:03 +0000 2014
>Last-Modified:  Sat Dec 27 23:56:03 +0000 2014
>Originator:     Takeshi Nakayama
>Release:        NetBSD 6.99.47
>Organization:
Private
>Environment:
System: NetBSD lethe 6.99.47 NetBSD 6.99.47 (LETHE) #218:
 Sun Jul 20 05:35:18 JST 2014 takeshi@lethe:/sys/arch/i386/compile/LETHE i386
Architecture: i386
Machine: i386
>Description:
When copying files from/to remote host with rcp(1), it hangs and
doesn't complete.

>How-To-Repeat:

pts/0% rcp -p /etc/motd nyx:/tmp
(hang)

(see processes from other terminal)
pts/1% ps
  PID TTY   STAT    TIME COMMAND
   34 pts/0 Is   0:00.05 zsh 
11768 pts/0 I+   0:00.00 rcmd -l takeshi nyx rcp -p -t /tmp 
12014 pts/0 S+   0:00.00 rcmd -l takeshi nyx rcp -p -t /tmp 
15726 pts/0 I+   0:00.00 rcp -p /etc/motd nyx 
14863 pts/1 O+   0:00.00 ps 
20244 pts/1 Ss   0:00.02 zsh 

>Fix:
Reverting revision 1.36 of src/usr.bin/rsh/rsh.c temporary fixes
the problem.

>Release-Note:

>Audit-Trail:
From: tsugutomo.enami@jp.sony.com
To: Takeshi Nakayama <nakayama@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/49023: rcp(1) hangs in rcmd(1)
Date: Thu, 27 Nov 2014 11:32:57 +0900

 > >Description:
 > When copying files from/to remote host with rcp(1), it hangs and
 > doesn't complete.

 Sorry, I've missed this PR.  Since rcmd(1) rev. 1.36 always trys to
 relay signal information while rcmd(3) called from rcp(1) doesn't setup
 auxlilary channel but simply dups primary channel, part of rcp protocol
 may be eaten by rcmd(1).

 I've fixed the behavior of rcmd(1) with following commit.

 > cvs rdiff -u -r1.70 -r1.71 src/lib/libc/net/rcmd.c
 > cvs rdiff -u -r1.37 -r1.38 src/usr.bin/rsh/rsh.c

 I wonder if it also fix your problem or not.  Please tell me if there is
 still some problem.

 enami.

From: Takeshi Nakayama <nakayama@NetBSD.org>
To: tsugutomo.enami@jp.sony.com
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/49023: rcp(1) hangs in rcmd(1)
Date: Thu, 27 Nov 2014 23:29:17 +0900 (JST)

 >>> tsugutomo.enami@jp.sony.com wrote

 > > >Description:
 > > When copying files from/to remote host with rcp(1), it hangs and
 > > doesn't complete.
 > 
 > Sorry, I've missed this PR.  Since rcmd(1) rev. 1.36 always trys to
 > relay signal information while rcmd(3) called from rcp(1) doesn't setup
 > auxlilary channel but simply dups primary channel, part of rcp protocol
 > may be eaten by rcmd(1).
 > 
 > I've fixed the behavior of rcmd(1) with following commit.
 > 
 > > cvs rdiff -u -r1.70 -r1.71 src/lib/libc/net/rcmd.c
 > > cvs rdiff -u -r1.37 -r1.38 src/usr.bin/rsh/rsh.c
 > 
 > I wonder if it also fix your problem or not.  Please tell me if there is
 > still some problem.

 Thank you for fixing, I confirmed that the problem has been fixed
 in -current.  But netbsd-7 still has the probrem, so could you
 request a pullup to netbsd-7 branch?

 -- Takeshi Nakayama

From: tsugutomo.enami@jp.sony.com
To: Takeshi Nakayama <nakayama@NetBSD.org>
Cc: <gnats-bugs@NetBSD.org>
Subject: Re: bin/49023: rcp(1) hangs in rcmd(1)
Date: Mon, 01 Dec 2014 10:52:54 +0900

 Hi.

 Takeshi Nakayama <nakayama@NetBSD.org> writes:

 > Thank you for fixing, I confirmed that the problem has been fixed
 > in -current.  But netbsd-7 still has the probrem, so could you
 > request a pullup to netbsd-7 branch?

 I've just sent pullup request after testing it locally.  I'll close the
 PR after the change is pulled up.

 enami.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 27 Dec 2014 23:56:03 +0000
State-Changed-Why:
pullup-7 #286 was processed a while back, so this is done.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.