public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* I have a problem with some applications in Cygwin
@ 2020-10-22 14:15 Eirik Nordbrøden
  2020-10-22 21:27 ` René Berber
  2020-10-23  8:28 ` Adam Dinwoodie
  0 siblings, 2 replies; 4+ messages in thread
From: Eirik Nordbrøden @ 2020-10-22 14:15 UTC (permalink / raw)
  To: Cygwin (cygwin@cygwin.com)

Hello

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

Eirik Nordbrøden, Netnordic AS
(+47) 90174789


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: I have a problem with some applications in Cygwin
  2020-10-22 14:15 I have a problem with some applications in Cygwin Eirik Nordbrøden
@ 2020-10-22 21:27 ` René Berber
  2020-10-22 21:30   ` Oliver Schoede
  2020-10-23  8:28 ` Adam Dinwoodie
  1 sibling, 1 reply; 4+ messages in thread
From: René Berber @ 2020-10-22 21:27 UTC (permalink / raw)
  To: Cygwin (cygwin@cygwin.com)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: I have a problem with some applications in Cygwin
  2020-10-22 21:27 ` René Berber
@ 2020-10-22 21:30   ` Oliver Schoede
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Schoede @ 2020-10-22 21:30 UTC (permalink / raw)
  To: cygwin; +Cc: René Berber

Hi!

>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
>etc. they all just hangs and I am not able to stop them through
>CTRL-C.

To me it sounds like a path conflict, missing, wrong or
duplicate configuration, or keys in this case. Are you, or were you
using one of these applications also natively on Windows? If it's a new
system, maybe you don't know something was preinstalled. On the other
hand, did you even install Cygwin's own packages, and are you sure
you're starting those? (Try `which <app>`) Are you or is something
modifying your environment? Where are your ssh keys stored?

You probably need to make those apps aware of where they are.


Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: I have a problem with some applications in Cygwin
  2020-10-22 14:15 I have a problem with some applications in Cygwin Eirik Nordbrøden
  2020-10-22 21:27 ` René Berber
@ 2020-10-23  8:28 ` Adam Dinwoodie
  1 sibling, 0 replies; 4+ messages in thread
From: Adam Dinwoodie @ 2020-10-23  8:28 UTC (permalink / raw)
  To: Cygwin (cygwin@cygwin.com)

On Thu, 22 Oct 2020 at 15:15, Eirik Nordbrøden wrote:
> 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 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 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.

Please follow the instructions at the below link. These include
generating a diagnostics report that will allow folk to identify or
rule out most of the problems other folk have been suggesting might be
an issue.

> Problem reports:      https://cygwin.com/problems.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-23  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 14:15 I have a problem with some applications in Cygwin Eirik Nordbrøden
2020-10-22 21:27 ` René Berber
2020-10-22 21:30   ` Oliver Schoede
2020-10-23  8:28 ` Adam Dinwoodie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).