From nobody@FreeBSD.ORG Tue Mar  9 08:17:55 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 85DED14CA8; Tue,  9 Mar 1999 08:17:55 -0800 (PST)
Message-Id: <19990309161755.85DED14CA8@hub.freebsd.org>
Date: Tue,  9 Mar 1999 08:17:55 -0800 (PST)
From: mclaughj@segasoft.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Cvs can hang system when used with pserver over ssh forwarded connection
X-Send-Pr-Version: www-1.0

>Number:         10509
>Category:       misc
>Synopsis:       Cvs can hang system when used with pserver over ssh forwarded connection
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  9 08:20:00 PST 1999
>Closed-Date:    Thu May 24 18:36:43 PDT 2001
>Last-Modified:  Thu May 24 18:36:54 PDT 2001
>Originator:     John McLaughlin
>Release:        2.2.8-STABLE
>Organization:
Segasoft Ireland
>Environment:
FreeBSD jmcl.segasoft.com 2.2.8-STABLE FreeBSD 2.2.8-STABLE #1: Thu Jan 21 10:08:21 GMT 1999     mclaughj@jmcl.segasoft.com:/usr/src/sys/compile/JMCL  i386

>Description:
Doing any cvs operation, via pserver, when the pserver port (2401) is
forwarded over an SSH session to a host which for some reason refuses
the connection, will eventually cause the system to exhaust virtual
and/or physical memory, use 80-90% CPU and eventually hange the system
>How-To-Repeat:
$ ssh -L 2401:bad.cvs.pserver:2401 some.remote.host

(in another terminal window)
$ cvs -d :pserver:username@localhost:/path/to/repository login

(any cvs command will perform similarly - co, update etc)
>Fix:
None known. The problem is in recv_line() in client.c. Due to 
recv() returning 0 (it *does* have a valid connection to sshd),
the function keeps reallocing buffers until it runs out of space

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: will 
State-Changed-When: Thu May 24 18:34:54 PDT 2001 
State-Changed-Why:  
Is this still a problem? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10509 
State-Changed-From-To: feedback->closed 
State-Changed-By: will 
State-Changed-When: Thu May 24 18:36:43 PDT 2001 
State-Changed-Why:  
Submitter email address expired. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10509 
>Unformatted:
