delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/10/18/08:03:36

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0BF385842E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1634558613;
bh=IDO0f61OxrrwkdxorLtpSykvKd8fTzPekn3UBfsmB04=;
h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=szh5maYM+KL7x+h9pWuuyxA+EkGaAEe/jcBPQ1E/cy1bwOcnjSeVhzdHXq9i4Es/G
rVjz13QmRoM1vEMpIl7Mz0LlFQh/mkDQqpdgCzSpVQ1MmXfPDhpYybjb1X67/XhMTy
P6w27XeNPs9rDoG8pFLbCazBPE0dkJk3W0jOxp7w=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9FF723858402
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1634558513; bh=MXFgYAkfeWD6MX/3lb3CuRF/OLHQkYwhJmA833Wt0NG=;
h=X-Sonic-MF:Date:From:To:Subject:From:Subject;
b=tbdgegFhdifHSSRqD3AbcKPb5JO56HbPS5RZUxQJckdAv99UkcpMWQY6dbreE2GEEuqa34kTXQ6xYLxGkn+xj1mqCdOEfMzTFYL1kVBqCpVSN0ua7cIbDA3v7FZ1vDjkX0IU8GyNg78V6TvIqn3yFsULh5WahaleFwVo4e4pH1svkh4yYlFIiG1bZtyTqirfyXhLLp3WKEhCELHOob4FyHal+COwMeQCD7koLLLDtcsth5/+05XaQL8PYcplD3N4suTB4iy5LgZGtmPiRNt9u6XCyG2A9oNUIQXEl29g3eZqQpz5NTlJBBCBLClqwe9PIDuFk4dvu7suBtfH7Uf2bQ==
X-YMail-OSG: lFYG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AwxLsa0zQhChqyBUMrN8kAqwaeyK1l_Uw5l.o2qv7Drnxgu3Z2Ecn6Z81lpuKCVT
5SrO9cLQqtjIEGgeeNytnFO4vXber4kR00x2W.eTbajrzVs0pcONuvH60L6UGUzzr2n9ryzrDMVi
_b023etlNHfIC.boGlwG3Cc5I.cmSYrDhbnkHtkgtxAlRJ6DdPZckbRbKkc4TKBWsWPLnYwk-
X-Sonic-MF: <chris DOT hardison AT yahoo DOT com>
Date: Mon, 18 Oct 2021 12:01:35 +0000 (UTC)
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <552722739.4126571.1634558495795@mail.yahoo.com>
In-Reply-To: <764795149.682120.1633022545890@mail.yahoo.com>
References: <764795149 DOT 682120 DOT 1633022545890 DOT ref AT mail DOT yahoo DOT com>
<764795149 DOT 682120 DOT 1633022545890 AT mail DOT yahoo DOT com>
Subject: Re: Hanging cygwin processes in Windows Server 2019
MIME-Version: 1.0
X-Mailer: WebService/1.1.19116 YMailNorrin
X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, REPTO_QUOTE_YAHOO,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "chris.hardison--- via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "chris DOT hardison AT yahoo DOT com" <chris DOT hardison AT yahoo DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 19IC3aZD022483

 The problem seems to be that my cygwin processes that are always the child or grandchild of a windows service use a console device that is block buffered rather than character buffered.  So using mintty to start those processes forces character buffered which solves the problem.  I'm looking for cleaner way to force character buffered IO.  Here's an example of the change:
From 
chomp(@output = `/cygwin/bin/ps -W`);TO
chomp(@output = `/cygwin/bin/mintty.exe -w hide /bin/dash -c "/bin/ps -W > /tmp/${PID}.out"; sleep 1; type /cygwin/tmp/${PID}.out; del /cygwin/tmp/${PID}.out`);
Hopefully someone can suggest a simpler solution.
Thanks!chris



    On Thursday, September 30, 2021, 01:26:37 PM EDT, chris.hardison--- via Cygwin <cygwin AT cygwin DOT com> wrote:  
 
 My cygwin install looks good and things seem to work perfectly for some time (hours or days), then a cygwin process started by a windows process that is usually a child process of a windows service written in perl will hang and then most all other cygwin processes will hang or take a very long time to return.  The simplest example is a call to \cygwin\bin\ps from powershell. That normally returns with sub-second response time.  Once the problem occurs that call to \cygwin\bin\ps will often take several minutes to return.  I've found that killing all cygwin processes will temporarily resolve the problem.
I've read about redirecting NUL to stdin when making the call to cygwin processes from windows and that didn't seem to help.
I've tried "set-processmitigation -name \cygwin\bin\ps.exe -disable ForceRelocateImages" with no real benefit.
I've also tried "\cygwin\bin\dash -c /bin/rebaseall" on startup before the sshd service starts and that didn't seem to help.
Any suggestions on how to prevent this problem will be greatly appreciated.
Thanks!chris


$ cygcheck -v /usr/bin/perl
C:\Windows\Cygwin\bin\perl.exe - os=4.0 img=1.0 sys=4.0
  "perl.exe" v0.0 ts=2021-02-06 11:46
  C:\Windows\Cygwin\bin\cygperl5_32.dll - os=4.0 img=1.0 sys=4.0
    "cygperl5_32.dll" v0.0 ts=2021-02-06 11:44
    C:\Windows\Cygwin\bin\cygcrypt-2.dll - os=4.0 img=1.0 sys=4.0
      "cygcrypt-2.dll" v0.0 ts=2021-05-20 09:20
      C:\Windows\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
        "cygwin1.dll" v0.0 ts=2021-03-29 09:37
        C:\Windows\system32\KERNEL32.dll - os=10.0 img=10.0 sys=10.0
          "KERNEL32.dll" v0.0
          C:\Windows\system32\ntdll.dll - os=10.0 img=10.0 sys=10.0
            "ntdll.dll" v0.0 ts=2010-05-08 14:49
          C:\Windows\system32\KERNELBASE.dll - os=10.0 img=10.0 sys=10.0
            "KERNELBASE.dll" v0.0 ts=1979-12-01 09:56
            C:\Windows\system32\ntdll.dll (already done)
        C:\Windows\system32\ntdll.dll (already done)
      C:\Windows\Cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
        "cyggcc_s-1.dll" v0.0 ts=2020-09-12 12:49
        C:\Windows\Cygwin\bin\cygwin1.dll (already done)
        C:\Windows\system32\KERNEL32.dll (already done)
      C:\Windows\system32\KERNEL32.dll (already done)
    C:\Windows\Cygwin\bin\cygwin1.dll (already done)
    C:\Windows\Cygwin\bin\cyggcc_s-1.dll (already done)
    C:\Windows\system32\KERNEL32.dll (already done)
  C:\Windows\Cygwin\bin\cygwin1.dll (already done)
  C:\Windows\system32\KERNEL32.dll (already done)

$ cygcheck -v /usr/bin/ps
C:\Windows\Cygwin\bin\ps.exe - os=4.0 img=1.0 sys=4.0
  C:\Windows\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
    "cygwin1.dll" v0.0 ts=2021-03-29 09:37
    C:\Windows\system32\KERNEL32.dll - os=10.0 img=10.0 sys=10.0
      "KERNEL32.dll" v0.0
      C:\Windows\system32\ntdll.dll - os=10.0 img=10.0 sys=10.0
        "ntdll.dll" v0.0 ts=2010-05-08 14:49
      C:\Windows\system32\KERNELBASE.dll - os=10.0 img=10.0 sys=10.0
        "KERNELBASE.dll" v0.0 ts=1979-12-01 09:56
        C:\Windows\system32\ntdll.dll (already done)
    C:\Windows\system32\ntdll.dll (already done)
  C:\Windows\system32\ADVAPI32.dll - os=10.0 img=10.0 sys=10.0
    "ADVAPI32.dll" v0.0
    C:\Windows\system32\msvcrt.dll - os=10.0 img=10.0 sys=10.0
      "msvcrt.dll" v0.0
      C:\Windows\system32\ntdll.dll (already done)
      C:\Windows\system32\KERNELBASE.dll (already done)
    C:\Windows\system32\ntdll.dll (already done)
    C:\Windows\system32\KERNELBASE.dll (already done)
    C:\Windows\system32\SECHOST.dll - os=10.0 img=10.0 sys=10.0
      "SECHOST.dll" v0.0
      C:\Windows\system32\ntdll.dll (already done)
      C:\Windows\system32\RPCRT4.dll - os=10.0 img=10.0 sys=10.0
        "RPCRT4.dll" v0.0
        C:\Windows\system32\ntdll.dll (already done)
        C:\Windows\system32\SspiCli.dll - os=10.0 img=10.0 sys=10.0
          "SspiCli.dll" v0.0 ts=2036-05-08 21:49
          C:\Windows\system32\ntdll.dll (already done)
          C:\Windows\system32\RPCRT4.dll (recursive)
          C:\Windows\system32\CRYPTBASE.dll - os=10.0 img=10.0 sys=10.0
            "CRYPTBASE.dll" v0.0
            C:\Windows\system32\ntdll.dll (already done)
            C:\Windows\system32\bcryptPrimitives.dll - os=10.0 img=10.0 sys=10.0
              "bcryptPrimitives.dll" v0.0
              C:\Windows\system32\ntdll.dll (already done)
        C:\Windows\system32\KERNELBASE.dll (already done)
    C:\Windows\system32\KERNEL32.dll (already done)
    C:\Windows\system32\RPCRT4.dll (already done)
  C:\Windows\system32\KERNEL32.dll (already done)
  C:\Windows\system32\ntdll.dll (already done)

$ cygcheck -v /usr/bin/ssh
C:\Windows\Cygwin\bin\ssh.exe - os=4.0 img=1.0 sys=4.0
  C:\Windows\Cygwin\bin\cygcrypto-1.1.dll - os=4.0 img=1.0 sys=4.0
    "cygcrypto-1.1.dll" v0.0 ts=2020-04-08 19:02
    C:\Windows\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
      "cygwin1.dll" v0.0 ts=2021-03-29 09:37
      C:\Windows\system32\KERNEL32.dll - os=10.0 img=10.0 sys=10.0
        "KERNEL32.dll" v0.0
        C:\Windows\system32\ntdll.dll - os=10.0 img=10.0 sys=10.0
          "ntdll.dll" v0.0 ts=2010-05-08 14:49
        C:\Windows\system32\KERNELBASE.dll - os=10.0 img=10.0 sys=10.0
          "KERNELBASE.dll" v0.0 ts=1979-12-01 09:56
          C:\Windows\system32\ntdll.dll (already done)
      C:\Windows\system32\ntdll.dll (already done)
    C:\Windows\Cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
      "cygz.dll" v0.0 ts=2017-03-03 21:51
      C:\Windows\Cygwin\bin\cygwin1.dll (already done)
      C:\Windows\Cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
        "cyggcc_s-1.dll" v0.0 ts=2020-09-12 12:49
        C:\Windows\Cygwin\bin\cygwin1.dll (already done)
        C:\Windows\system32\KERNEL32.dll (already done)
      C:\Windows\system32\KERNEL32.dll (already done)
    C:\Windows\Cygwin\bin\cyggcc_s-1.dll (already done)
    C:\Windows\system32\KERNEL32.dll (already done)
  C:\Windows\Cygwin\bin\cygwin1.dll (already done)
  C:\Windows\Cygwin\bin\cyggssapi_krb5-2.dll - os=4.0 img=1.0 sys=4.0
    "cyggssapi_krb5-2.dll" v0.0 ts=2018-03-16 03:46
    C:\Windows\Cygwin\bin\cygk5crypto-3.dll - os=4.0 img=1.0 sys=4.0
      "cygk5crypto-3.dll" v0.0 ts=2018-03-16 03:45
      C:\Windows\Cygwin\bin\cygkrb5support-0.dll - os=4.0 img=1.0 sys=4.0
        "cygkrb5support-0.dll" v0.0 ts=2018-03-16 03:44
        C:\Windows\Cygwin\bin\cygwin1.dll (already done)
        C:\Windows\Cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
          "cygintl-8.dll" v0.0 ts=2021-07-29 03:43
          C:\Windows\Cygwin\bin\cygwin1.dll (already done)
          C:\Windows\Cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
            "cygiconv-2.dll" v0.0 ts=2020-07-13 13:57
            C:\Windows\Cygwin\bin\cygwin1.dll (already done)
            C:\Windows\system32\KERNEL32.dll (already done)
          C:\Windows\system32\KERNEL32.dll (already done)
        C:\Windows\system32\KERNEL32.dll (already done)
      C:\Windows\Cygwin\bin\cygwin1.dll (already done)
      C:\Windows\Cygwin\bin\cygintl-8.dll (already done)
      C:\Windows\system32\KERNEL32.dll (already done)
    C:\Windows\Cygwin\bin\cygkrb5-3.dll - os=4.0 img=1.0 sys=4.0
      "cygkrb5-3.dll" v0.0 ts=2018-03-16 03:45
      C:\Windows\Cygwin\bin\cygk5crypto-3.dll (already done)
      C:\Windows\Cygwin\bin\cygkrb5support-0.dll (already done)
      C:\Windows\Cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
        "cygcom_err-2.dll" v0.0 ts=2019-01-02 01:21
        C:\Windows\Cygwin\bin\cygwin1.dll (already done)
        C:\Windows\Cygwin\bin\cyggcc_s-1.dll (already done)
        C:\Windows\system32\KERNEL32.dll (already done)
      C:\Windows\Cygwin\bin\cygwin1.dll (already done)
      C:\Windows\Cygwin\bin\cygintl-8.dll (already done)
      C:\Windows\Cygwin\bin\cyggcc_s-1.dll (already done)
      C:\Windows\system32\KERNEL32.dll (already done)
    C:\Windows\Cygwin\bin\cygkrb5support-0.dll (already done)
    C:\Windows\Cygwin\bin\cygcom_err-2.dll (already done)
    C:\Windows\Cygwin\bin\cygwin1.dll (already done)
    C:\Windows\Cygwin\bin\cygintl-8.dll (already done)
    C:\Windows\system32\KERNEL32.dll (already done)
  C:\Windows\Cygwin\bin\cygz.dll (already done)
  C:\Windows\Cygwin\bin\cyggcc_s-1.dll (already done)
  C:\Windows\system32\KERNEL32.dll (already done)



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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019