Fwd: RE: I have a problem with some applications in Cygwin

René Berber rene.berber@gmail.com
Fri Oct 23 16:36:50 GMT 2020


Redirecting to the list...


-------- Forwarded Message --------
Subject: RE: I have a problem with some applications in Cygwin
Date: Fri, 23 Oct 2020 09:29:49 +0000
From: Eirik Nordbrøden <eirik.nordbroden@netnordic.com>
To: René Berber <rene.berber@gmail.com>


> -----Original Message-----
> From: Cygwin <cygwin-bounces@cygwin.com> On Behalf Of René Berber via
> Cygwin
> Sent: torsdag 22. oktober 2020 23:28
> To: Cygwin (cygwin@cygwin.com) <cygwin@cygwin.com>
> Subject: Re: I have a problem with some applications in Cygwin
> 
> On 10/22/2020 9:15 AM, Eirik Nordbrøden via Cygwin wrote:
> 
> > I have been using for many years and have not really had any major
> > problems, but now I have run into a problem with some of the
> > applications in Cygwin that I have been struggling with for some time
> > without being able to solve it. Hopefully someone in this list can
> > point me in the right direction to fix the problem.
> >
> > I have a new Windows 10 PC with a fresh Cygwin installation, but
> > struggles with some of the applications that I have installed. When I
> > try to use applications like ssh, ssh-keygen, git, snmpwalk, snmpnext
> 
> Just an idea, all of those are network tools, that means they depend on DNS
> resolving, which may be slow if not set correctly.
> 
> Have you tried using numeric IP addresses?
> 
> > etc. they all just hangs and I am not able to stop them through
> > CTRL-C. I need to use Task Manager to kill the application (kill -9
> 
> That is very strange, Cygwin's programs respond to Ctrl-C fast.
> 
> Are you sure you are using the Cygwin program, for instance ssh, and not the
> Microsoft program (of the same name)?
> 
> > does not work either). But if I run the application from gdb (like
> > 'gdb ssh-keygen' and the 'run') they seem to work. Most applications
> > seems to work as expected, but not the ones I have listed (and maybe
> > some more applications as well).
> >
> > I think that this might be due to something in my PC, but are not able
> > to pinpoint it. At one point I thought that this was due to the virus
> > control in the PC (Trend), but now I have uninstalled this and just
> > uses Windows defender.
> 
> Good point and it needed to be tested, so that is out of the picture.
> 
> Repeating what I hinted to above, maybe running the program under gdb
> you are specifying the whole path to the program, which is not the same as
> letting the shell find it.  Try: `which ssh` to see which one is used.
> 
> Another test is to use ldd or cygcheck to take a look at the libraries loaded... if
> they include anti-virus or other strange libraries, then that is interfering.
> 
> Also using strace could (probably will) show where everything stops.
> 
> HTH
> --
> R.Berber
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Hello

I have also had the idea that this might be related to network 
application. I have tested with IP addresses so that is not an issue.

I have also checked that I am using the Cygwin application by providing 
the whole path.

I have also tried strace, but it bails out with an exception (c0000005) 
and then segmentation fault.

Attached you will find an output from:

cygcheck -s -v -r > cygcheck.out
ldd /usr/bin/ssh-keygen.exe > ldd_ssh-keygen.out
strace /usr/bin/ssh-keygen.exe > strace_ssh-keygen.out

Hopefully someone can make something out of this.
PS I have also installed GitBash and the same problems appear there!!!!

Eirik Nordbrøden, Netnordic AS
(+47) 90174789
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 32297 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20201023/97818c31/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldd_ssh-keygen.out
Type: application/octet-stream
Size: 385 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20201023/97818c31/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace_ssh-keygen.out
Type: application/octet-stream
Size: 31528 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20201023/97818c31/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://cygwin.com/pipermail/cygwin/attachments/20201023/97818c31/attachment-0001.p7s>


More information about the Cygwin mailing list