delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/02/18:02:23

X-Spam-Check-By: sourceware.org
X-ClientAddr: 127.0.0.1
Message-ID: <25840.217.209.153.73.1149285742.squirrel@www.webmail.nuclear-diagnostics.com>
Date: Sat, 3 Jun 2006 00:02:22 +0200 (CEST)
Subject: Re: rsh with command hangs, rlogin works
From: Lars =?iso-8859-1?Q?Bj=F6rnfot?= <lars AT nuclear-diagnostics DOT com>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.4
MIME-Version: 1.0
X-HermesMedical-MailScanner-Information: Please contact the ISP for more information
X-HermesMedical-MailScanner: Found to be clean
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

>  $ rsh localhost ls 	HANGS for any command

Still unsolved but: I noted a SIGSEGV message
in the syslog which explains why it hangs.

/var/log/messages:
Jun  2 23:39:12 baloo kernel: in.rshd[3308]: segfault at 00000003 rip
0022E4E5 rsp 0022E454 error 4

I downloaded the inetutil sources, added some syslog lines
and pinpointed the problem to the rresvport() call:

rshd.c:
			s = rresvport(&lport);

rshd crashes on the first attempt, when lport=1023.

Regards,
Lars








--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019