From owner-freebsd-bugs Tue Mar 9 8:20:16 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0ED7E14E35 for ; Tue, 9 Mar 1999 08:20:14 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id IAA52772; Tue, 9 Mar 1999 08:20:00 -0800 (PST) (envelope-from gnats@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 To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/10509: Cvs can hang system when used with pserver over ssh forwarded connection Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 9 08:20:00 PST 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message