delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/23/16:43:19

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: openssh 4.3p2-3 - Timeouts on an Intel Centrino Duo machine
Date: Tue, 23 May 2006 16:40:54 -0400
Message-ID: <C874DBE9D30B584587F8CD0EC34DA8BE019C06E1@EX00.idirect.net>
From: "Harig, Mark" <maharig AT idirect DOT net>
To: "Simon McQueen" <sm AT prismtech DOT com>
Cc: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k4NKhI7G015892

 

> -----Original Message-----
> From: Simon McQueen [mailto:sm AT prismtech DOT com] 
> Sent: Tuesday, May 23, 2006 1:02 PM
> To: Harig, Mark
> Cc: cygwin AT cygwin DOT com
> Subject: Re: openssh 4.3p2-3 - Timeouts on an Intel Centrino 
> Duo machine
> 
> > If you're unable to build and debug the openssh/cygwin code,
> > then you may need to resort to installing TortoiseCVS,
> > http://www.tortoisecvs.org/, which doesn't appear to have
> > this problem on the dual-core Dell laptops.
> 
> I'm building the source as per:
> 
> http://cygwin.com/faq/faq-nochunks.html#faq.programming.buildi
> ng-cygwin
> 
> ... right now although I haven't quite worked out what on earth I'm 
> going to do with it once it's built. Thanks again for taking 
> the time to 
> reply.
> 

Try debugging using gdb?

Working backwards (top down?), the error message that scp
issues is 'Timeout, server not responding.'.  A search of the
Openssh source code shows that this is only issued by the function
'server_alive_check()' in the file clientloop.c.  That function, in
turn is called by the function 'client_wait_until_can_do_something()',
in the same source file.  'server_alive_check()' is called if the
following condition fails:

>
>    ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp);
>    if (ret < 0) {
>    ...
>    } else if (ret == 0)
>       server_alive_check();
>

My guess is that the call to select() needs to be checked to make
sure that it is being passed valid values.  If it is, then the
code that provides select() (cygwin1.dll?) would need to be built
and linked to ssh/scp in order to find out whether the problem
lies deeper within the code (by using gdb to step into the call
to select()).  If select() is *not* being passed valid values, then
backtracking would be necessary.

---

--
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