date command hangs sometimes (coreutils 8.26-2) on cygwin 3.1.4 x86-64

Gruff Hacker gruffhacker-cyg@yahoo.com
Sat May 2 02:21:07 GMT 2020


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+0x76ntoskrnl.exe!KiSwapThread+0xbfdntoskrnl.exe!KiCommitThreadWait+0x144ntoskrnl.exe!KeWaitForSingleObject+0x255ntoskrnl.exe!KiSchedulerApc+0x397ntoskrnl.exe!KiDeliverApc+0x2e8ntoskrnl.exe!KiSwapThread+0xc98ntoskrnl.exe!KiCommitThreadWait+0x144ntoskrnl.exe!KeWaitForSingleObject+0x255ntoskrnl.exe!NtWaitForSingleObject+0x10bntoskrnl.exe!KiSystemServiceCopyEnd+0x28ntdll.dll!NtWaitForSingleObject+0x14KERNELBASE.dll!WaitForSingleObjectEx+0x93cygwin1.dll!feinitialise+0x1df98cygwin1.dll!feinitialise+0x1e050cygwin1.dll!feinitialise+0x4edbcygwin1.dll!strtosigno+0x513acygwin1.dll!_main+0x253cygwin1.dll!secure_getenv+0x44e6cygwin1.dll!setcontext+0x59dcygwin1.dll!sigfillset+0x35c7cygwin1.dll!secure_getenv+0x488dntdll.dll!RtlpExecuteHandlerForException+0xfntdll.dll!RtlDispatchException+0x219ntdll.dll!KiUserExceptionDispatch+0x2ecygwin1.dll!dlerror+0x820cygwin1.dll!dlerror+0x1101cygwin1.dll!dlerror+0x113dcygwin1.dll!cygwin_dll_init+0x4aecygwin1.dll!setprogname+0x3d53cygwin1.dll!setprogname+0x3e04
Thread 2:ntoskrnl.exe!KiSwapContext+0x76ntoskrnl.exe!KiSwapThread+0xbfdntoskrnl.exe!KiCommitThreadWait+0x144ntoskrnl.exe!KeWaitForSingleObject+0x255ntoskrnl.exe!KiSchedulerApc+0x397ntoskrnl.exe!KiDeliverApc+0x2e8ntoskrnl.exe!KiSwapThread+0xc98ntoskrnl.exe!KiCommitThreadWait+0x144ntoskrnl.exe!KeWaitForSingleObject+0x255ntoskrnl.exe!NtWaitForSingleObject+0x10bntoskrnl.exe!KiSystemServiceCopyEnd+0x28ntdll.dll!NtWaitForSingleObject+0x14KERNELBASE.dll!WaitForSingleObjectEx+0x93cygwin1.dll!strtosigno+0x4b7cygwin1.dll!secure_getenv+0x4410cygwin1.dll!setcontext+0x59dcygwin1.dll!sigfillset+0x35c7cygwin1.dll!secure_getenv+0x488dntdll.dll!RtlpExecuteHandlerForException+0xfntdll.dll!RtlDispatchException+0x219ntdll.dll!KiUserExceptionDispatch+0x2ecygwin1.dll!setprogname+0x1293cygwin1.dll!setprogname+0x1e9acygwin1.dll!alloca+0x169eecygwin1.dll!dlfork+0x110ccygwin1.dll!dlfork+0x223acygwin1.dll!feinitialise+0x1c9cfcygwin1.dll!feinitialise+0x1da54cygwin1.dll!setprogname+0x3d53cygwin1.dll!setprogname+0x3e04KERNEL32.DLL!BaseThreadInitThunk+0x14ntdll.dll!RtlUserThreadStart+0x21
Thread 3:ntoskrnl.exe!KiSwapContext+0x76ntoskrnl.exe!KiSwapThread+0xbfdntoskrnl.exe!KiCommitThreadWait+0x144ntoskrnl.exe!KeWaitForSingleObject+0x255ntoskrnl.exe!IopSynchronousServiceTail+0x24antoskrnl.exe!NtReadFile+0x59fntoskrnl.exe!KiSystemServiceCopyEnd+0x28ntdll.dll!NtReadFile+0x14KERNELBASE.dll!ReadFile+0x77cygwin1.dll!sigfillset+0x29e1cygwin1.dll!setprogname+0x2d63cygwin1.dll!setprogname+0x3326cygwin1.dll!setprogname+0x3d53cygwin1.dll!setprogname+0x3e04KERNEL32.DLL!BaseThreadInitThunk+0x14ntdll.dll!RtlUserThreadStart+0x21
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 115710 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20200502/d844227b/attachment-0001.obj>


More information about the Cygwin mailing list