From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by sourceware.org (Postfix) with ESMTPS id F21FD385783D for ; Thu, 22 Oct 2020 21:26:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F21FD385783D Received: by mail-oo1-xc2b.google.com with SMTP id w25so721086oos.10 for ; Thu, 22 Oct 2020 14:26:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TOyL+N6VxOCafCp9Ne/Ua554bythZUstw2gmpPRVLZ0=; b=aWBRiSKkfG9Huh/rJ/YV+HtGdwrMgP1qLfR6IBKBoII3KHpGkfGzyvmQiHDUWdcqpv DM95+i5FXkVbpJcNwc1IYi9lDgFb2GAtXdSE2jPIMM4a6T5GPSwg2wr09oGAoaeP6NyB okl+siD+3xW87A7mrOBr54ojmOO1605KjKyt1NByRK5KpBFDdi6lgVJs8Vy/yQRUUjJz +pl9ZRFHCIyBqjjmei+VJhLf+MqFS+rRWjIMgSiQ2lQAn6HWPHms5Zl81xMy3G9loI4t Z90O8yNSWMURvAIfg/zzWuuQrFUBOSBpD2oMZ5t0LP0/G/k4ZA2bLoGTr1cWNbcNWk4R JHQw== X-Gm-Message-State: AOAM533HDT7u0p0ZIsdCyjBTmZPMsEOzibZr/cOREG39QlPJdCpRg6yx NWsbXgCsTW5biZjaD0hixKh7IW41cnxAQw== X-Google-Smtp-Source: ABdhPJwa4LzvwyjiU5EXVkOCFyjsmKLNR1IsBCbXh794km2JVg8eZMbMR0PrzarnOmJY9v5H9nF/dg== X-Received: by 2002:a4a:5a06:: with SMTP id v6mr3423293ooa.69.1603401998074; Thu, 22 Oct 2020 14:26:38 -0700 (PDT) Received: from [192.168.10.3] ([200.57.195.23]) by smtp.gmail.com with ESMTPSA id l62sm778153oif.18.2020.10.22.14.26.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Oct 2020 14:26:37 -0700 (PDT) Subject: Re: I have a problem with some applications in Cygwin To: "Cygwin (cygwin@cygwin.com)" References: From: =?UTF-8?Q?Ren=c3=a9_Berber?= Message-ID: Date: Thu, 22 Oct 2020 16:27:39 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2020 21:26:40 -0000 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