delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/06/18:00:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001106225824.58811.qmail@web10703.mail.yahoo.com>
Date: Mon, 6 Nov 2000 14:58:24 -0800 (PST)
From: Mike Ayers <x99969 AT yahoo DOT com>
Reply-To: mayers AT bmc DOT com
Subject: RE: debugging rshd
To: cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

> From: Corinna Vinschen
> 
> Mike Ayers wrote:
> >     I'm having trouble with rshd and I'd like to debug the problem.
> > Before I go delving into inetd.c, could someone perhaps 
> tell me how to
> > start in.rshd under gdb?  I tried setting up inetd.conf as:
> > 
> > shell   stream   tcp   nowait   root   /usr/bin/gdb
> > /usr/local/libexec/in.rshd -L
> 
> You will have no luck that way. rshd expects the already opened
socket
> connection on stdin/stdout/stderr. This is what inetd does for it's
> child processes. rshd isn't intended as a stand-alone daemon.

    So should I build and install all of inetutils with -g?  Then how
would I proceed?  Can gdb debug a service?

> On the other hand: What problems do you encounter? Are you using
> the latest version (1.3.2-8)? It contains a fix for rshd which avoids
> a possible crash on startup.

    I am using 1.3.2-8, but have had the same problem with 1.3.2-7 and
whatever is current (nonexperimental), if that is different.  Whenever
I try to rcp using the cygwin machine as server, I get:

rcp:  lost connection

    ....but no hint of an error from the server (i.e. the application
log shows only that the rcp started).  I can get no other information,
which is why I want to do this in debug mode.

> >     ...specifically, "<server_path> <args>" appears to get
> > "/usr/sbin/in.rshd in.rshd -L", which seems more like
"<server_path>
> > <server_name> <args>" to me.  
> 
> That's the same. `args' begins counting with 0.

    In other words, list everything that will be in argv[], as opposed
to just additional flags.  It might be good to put that in the comments
in inetd.conf, since it is an easy mistake to make.


/|/|ike


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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