delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/24/20:59:48

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FFDF3892447
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1593046741;
bh=EIB4CA8Uvq/8hhoRaOddsrua5w2GKfsZeuIEmCA6fRU=;
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=AEQmm/yBW+fFevcLTmffmAAwdLKYs0a2hQuKXiGvAZeabfJhssUxs7y86dCODpY0P
FKmORIDVZWRDTQmd8uYLRyy69KCL1U1lVwReiIJqUyvnDzQA/NW6SuGE9WqYJfHIcp
e7ziWClAm2WUdehQHwcdW7si9iFMBCAD4Wb137F8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 97831383E81A
X-YMail-OSG: gN1woYwVM1mG7LMGCLu_0b4GyNeoQ2xSXI5.K3cv0pBA4nJBXm_6qVbYGHpIyfT
M3biCzAtFZtOgI8oQ_6yj_OZLnLIcbWwQtqGAAd_5yr_XqwxlXKCeHcYT.wqy8A5Zas62eq36xav
cYlnt5oUfYYuVR495XsA.oNEHaqVBPMuYBOrmRL3ae878khQHILQFZ6TQR3ouZLi.BkogT0whM2b
wgb6n7yDa8o7Z4qPjT77kvu9CPQ2kZbV5jDbuKG39Lb0XO5Q4481UFcaEYsZ6uDGVHD.w.Mq9XWc
H1yxRTVq4xIiMg9ORzdDMOFr5qsKWKbwX7qgO02X_rADW6k01bJsUhAFoj4AT63SnZxCdsoqmuGV
p0Gzv2.wMRNcQdaFkrnPPociSSNYq1si5jmrIYYLGdWhu1d6umxQI86ORrLwqX9li.qm5wR61gA.
IoUbUEzDqNyPmY8s5ZMGr82vuU7FcWf4hLbhGFzKbDBEQEUXF_Ggq6bhnmEKXOlg2cIl9FPg1yC5
kHbQdj.w9jfre6xYLSsb2191oW26J2fI6Vcyf4V30Frr0B9C6O7IYk7UggoL9M8k2k6YVguULkkw
Gt8mt3AMNlSMgaMeH6VThk2RHREFnYyJQCRI_JNhkq0fe5JecLxIq7soNa1GlUaKbHSjcrWK_x3Q
IP3NFzBny7ss9hoNR5D9hPNcMuZ4uBIUPI5Zkmt9QTLJvXwWbbeXJyzcq1xUsoMOYSQdLngdb7pq
2.qcRSaj8mzVGJmcek1s3EzscRZhD2zaEKN9MkPeI24P_hHfyjCRgs7EHXA7foWe_XhlHCrQGOh8
n494ewzOguQN717eyGc46NUTeOt6hybVLGOFnOtutfYrE_oLw0rDrkkGMLt_sGakkXqNSazCofRJ
cM2KJ5ow4OdwLNue2udouAoLzsbdkRnQUvZU9enSLdcdUGrAs2TO.3V.TxuBvAlRq1G5viysGKhC
BHQBsulIOpre0Xd6.7dFWP8wOzFnqkC2G9ct2mLSj9.pqRlprO7VVjG4n5Db54R2F2i85D8EzKe4
C89hDGIyEurshQkX0rOWZYufBEQImP6ucxn61A.daPfTYETMGCdG_hasb2GYI9v9lXem5RWvX7pU
bAc_WnSzAYCd4kC_wub3MiEKbzP2t6FF4JX7dZf5fhIMSZe9PnchdCOvJ_4bq_7YTfva3WdzxIoh
Gt8718XGalQlF6z6eVeEqKLLeJB6CnbubXCjYr03xmrMepmDP_1Yoe87oMUikBHwkrZ9vv0BqhDg
LZnMkwMLijZ3krm8l8wPjt3qGNwI4SfA2rHBBop..GOLWFIv0OzLJWVk0HY4avFn4s9XvyU3dFmc
A9Ui3
Date: Thu, 25 Jun 2020 00:57:45 +0000 (UTC)
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <978064932.3340069.1593046665822@mail.yahoo.com>
In-Reply-To: <198898587.43311.1588386067082@mail.yahoo.com>
References: <198898587 DOT 43311 DOT 1588386067082 DOT ref AT mail DOT yahoo DOT com>
<198898587 DOT 43311 DOT 1588386067082 AT mail DOT yahoo DOT com>
Subject: Re: date command hangs sometimes (coreutils 8.26-2) on cygwin 3.1.4
x86-64
MIME-Version: 1.0
X-Mailer: WebService/1.1.16138 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64;
x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116
Safari/537.36
X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_40, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
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: <http://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: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Gruff Hacker via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Gruff Hacker <gruffhacker-cyg AT yahoo DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 05P0xTWa005427

This happens more frequently for me now.
Another example of thread stacks below:
Thread 1:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!KiSchedulerApc+0x397
ntoskrnl.exe!KiDeliverApc+0x2e8
ntoskrnl.exe!KiSwapThread+0xc98
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!NtWaitForSingleObject+0x10b
ntoskrnl.exe!KiSystemServiceCopyEnd+0x28
ntdll.dll!NtWaitForSingleObject+0x14
KERNELBASE.dll!WaitForSingleObjectEx+0x93
cygwin1.dll!strtosigno+0x4b7
cygwin1.dll!setprogname+0x11fd
cygwin1.dll!secure_getenv+0x171a
cygwin1.dll!dirname+0x1063
cygwin1.dll!cygwin_dll_init+0x34f
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04




Thread 2:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!KiSchedulerApc+0x397
ntoskrnl.exe!KiDeliverApc+0x2e8
ntoskrnl.exe!KiCheckForKernelApcDelivery+0x2b
ntoskrnl.exe!KeLeaveCriticalRegion+0x37
ntoskrnl.exe!IopReleaseFileObjectLock+0x45
ntoskrnl.exe!IopSynchronousServiceTail+0x271
ntoskrnl.exe!NtReadFile+0x59f
ntoskrnl.exe!KiSystemServiceCopyEnd+0x28
ntdll.dll!NtReadFile+0x14
KERNELBASE.dll!ReadFile+0x77
cygwin1.dll!sigfillset+0x29e1
cygwin1.dll!setprogname+0x2d63
cygwin1.dll!setprogname+0x3326
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21


Thread 3:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!KiSchedulerApc+0x397
ntoskrnl.exe!KiDeliverApc+0x2e8
ntoskrnl.exe!KiApcInterrupt+0x2f0
ntdll.dll!SbSelectProcedure+0xc4
KERNELBASE.dll!CloseHandle+0x2b
cygwin1.dll!sigfillset+0x358c
cygwin1.dll!secure_getenv+0x488d
ntdll.dll!RtlpExecuteHandlerForException+0xf
ntdll.dll!RtlDispatchException+0x219
ntdll.dll!KiUserExceptionDispatch+0x2e
cygwin1.dll!setprogname+0x1293
cygwin1.dll!setprogname+0x1e9a
cygwin1.dll!alloca+0x169ee
cygwin1.dll!dlfork+0x110c
cygwin1.dll!dlfork+0x223a
cygwin1.dll!feinitialise+0x1c9cf
cygwin1.dll!feinitialise+0x1da54
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21








 On Friday, May 1, 2020, 10:21:07 PM EDT, Gruff Hacker wrote: 





Hi,

I have an issue where the "date" command (from coreutils 8.26-2) hangs.  This is running it with no arguments from a bash script.
It has only happened maybe 6 times over several years.  This is on Windows 10 64-bit with cygwin 3.1.4 x86-64.

No idea how to reproduce.  Workaround or other tips appreciated.  It hangs forever (or at least for a few hours) and must be killed (Ctrl+C in shell doesn't work).
I've attached a redacted cygcheck output.  

Here are the stacks of the 3 threads within the date.exe process while it is hung:
Thread 1:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!KiSchedulerApc+0x397
ntoskrnl.exe!KiDeliverApc+0x2e8
ntoskrnl.exe!KiSwapThread+0xc98
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!NtWaitForSingleObject+0x10b
ntoskrnl.exe!KiSystemServiceCopyEnd+0x28
ntdll.dll!NtWaitForSingleObject+0x14
KERNELBASE.dll!WaitForSingleObjectEx+0x93
cygwin1.dll!feinitialise+0x1df98
cygwin1.dll!feinitialise+0x1e050
cygwin1.dll!feinitialise+0x4edb
cygwin1.dll!strtosigno+0x513a
cygwin1.dll!_main+0x253
cygwin1.dll!secure_getenv+0x44e6
cygwin1.dll!setcontext+0x59d
cygwin1.dll!sigfillset+0x35c7
cygwin1.dll!secure_getenv+0x488d
ntdll.dll!RtlpExecuteHandlerForException+0xf
ntdll.dll!RtlDispatchException+0x219
ntdll.dll!KiUserExceptionDispatch+0x2e
cygwin1.dll!dlerror+0x820
cygwin1.dll!dlerror+0x1101
cygwin1.dll!dlerror+0x113d
cygwin1.dll!cygwin_dll_init+0x4ae
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04

Thread 2:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!KiSchedulerApc+0x397
ntoskrnl.exe!KiDeliverApc+0x2e8
ntoskrnl.exe!KiSwapThread+0xc98
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!NtWaitForSingleObject+0x10b
ntoskrnl.exe!KiSystemServiceCopyEnd+0x28
ntdll.dll!NtWaitForSingleObject+0x14
KERNELBASE.dll!WaitForSingleObjectEx+0x93
cygwin1.dll!strtosigno+0x4b7
cygwin1.dll!secure_getenv+0x4410
cygwin1.dll!setcontext+0x59d
cygwin1.dll!sigfillset+0x35c7
cygwin1.dll!secure_getenv+0x488d
ntdll.dll!RtlpExecuteHandlerForException+0xf
ntdll.dll!RtlDispatchException+0x219
ntdll.dll!KiUserExceptionDispatch+0x2e
cygwin1.dll!setprogname+0x1293
cygwin1.dll!setprogname+0x1e9a
cygwin1.dll!alloca+0x169ee
cygwin1.dll!dlfork+0x110c
cygwin1.dll!dlfork+0x223a
cygwin1.dll!feinitialise+0x1c9cf
cygwin1.dll!feinitialise+0x1da54
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21

Thread 3:
ntoskrnl.exe!KiSwapContext+0x76
ntoskrnl.exe!KiSwapThread+0xbfd
ntoskrnl.exe!KiCommitThreadWait+0x144
ntoskrnl.exe!KeWaitForSingleObject+0x255
ntoskrnl.exe!IopSynchronousServiceTail+0x24a
ntoskrnl.exe!NtReadFile+0x59f
ntoskrnl.exe!KiSystemServiceCopyEnd+0x28
ntdll.dll!NtReadFile+0x14
KERNELBASE.dll!ReadFile+0x77
cygwin1.dll!sigfillset+0x29e1
cygwin1.dll!setprogname+0x2d63
cygwin1.dll!setprogname+0x3326
cygwin1.dll!setprogname+0x3d53
cygwin1.dll!setprogname+0x3e04
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21

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