RE: I have a problem with some applications in Cygwin (SOLVED)
> -Original Message- > From: Eirik Nordbrøden > Sent: torsdag 22. oktober 2020 16:16 > To: Cygwin (cygwin@cygwin.com) > Subject: I have a problem with some applications in Cygwin > > 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 Hello I have now found the cause of this problem. As suspected it was a problem on my PC, but I would like to inform about the cause in case other people have a similar problem. The root cause was that the Citrix Workspace app installed on my PC had application protection enabled. This interfered with some of the Cygwin apps (mainly ssh and apps using ssh, but also others) so I had to reinstall this app without application protection enabled. Eirik Nordbrøden, Netnordic AS (+47) 90174789 -- 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
Fwd: RE: I have a problem with some applications in Cygwin
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 + From: Eirik Nordbrøden To: René Berber -Original Message- From: Cygwin On Behalf Of René Berber via Cygwin Sent: torsdag 22. oktober 2020 23:28 To: Cygwin (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 (c005) 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 cygcheck.out Description: Binary data ldd_ssh-keygen.out Description: Binary data strace_ssh-keygen.out Description: Binary data smime.p7s Description: S/MIME Cryptographic Signature -- 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
Re: I have a problem with some applications in Cygwin
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 -- 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
Re: I have a problem with some applications in Cygwin
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 `) 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 -- 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
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
I have a problem with some applications in Cygwin
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 -- 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