From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic304-20.consmr.mail.ne1.yahoo.com (sonic304-20.consmr.mail.ne1.yahoo.com [66.163.191.146]) by sourceware.org (Postfix) with ESMTPS id DB97B3894E6B for ; Wed, 6 May 2020 06:10:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DB97B3894E6B X-YMail-OSG: oTzKGvoVM1n8e0XecbPw79UIca4z4kvqS_kl2Z.4vL8_RZurA9MkvjORvdMBmyk 47UmVhXxelRXiX07QV3pcYPRsKNNEZPeR9rnnBCnk9QnzRYO2IHNDwK1HT2EMZhxtIzm4Ahfj1xG pbX0OsOuGj.spVRfDaWp6euZOrwFYEG2I4nxRLE7iTvY8hPksZiGYwEM72zSQf8mlnOzjPrTH8N1 AQl9agi_PbE.s_f1FtVCBFt.VdRNb8VM6QAj_BBk4WH.IvkCsDwpJGmOJdlSAajEIUbqLtyJIUHD rE56kRhXT5IjQXJTRPbAZYsrPNjknzL3iNL5i4qm43rMd.ACpYMb_5FQ26uCFlCB5gRU7IV.Ea7X 7rQR.gv7eHn7x43rDvSHlIHNJEXdIHfdsG9V.hoI18owDHfCXMVzKVc9bACkYp_6h4ZB.wxrZqRP uhfEFt4Fn0NbicYH_BKq9SsS7x1K2rGtQrmt_mQ0gkrFrznlEzc5QXQ2HnwY3c0Cbm8AV04b2GeS Q6fitf4xTM1lFoQsotcIZUM8hE.cZH6T45x.Z_Mxbm0UQHU8m9rJeb1ozQhRZdOqDGSzg1eX2B39 VoR7jE.YxvjywlGNEN4_HeeheJ3Ua7N9v3H5vLw0MjWGxBuUSt8CMhVNjJrsnMoFUIac7ho5fry6 miN3WctIijAUlijTHPp0QnzDWJOAHbPaf8saoS8Celo07.Poujd.orcvFYmlSGo3UEvqaDOfjvKM K3oiBtX6hF1ReliKJkgjq1bY9BcMNqYQIE1mqfI0CrjkUAQha34YeSUCsqBZBPplakbS0f.TpNdD 2TrqtqpfkaZ.UhXkBkUz_HCfjy86fa5nFBThcida8YXXIXg2FY4Lvp1U24vI0jVqZ2jjRT2L3FDn AutqSszoto1BEd6Hqf0E7CZPgUDutSp9oxcabsG9F3SIAj06H20WTw_YNVLPBFcw_u6PXMyTk768 5fift1Ly5FiR3dJ3kHIKv.DHPFzwoRyJR1GW.TLSns4EhtCxdsHYPgyYB081V88VXo1on8eTbqJZ 8iVWbCkBZUrNK2ml7j5cbLPoouEAI809Uh0oiivJrW7dM.bq_YmKHv9JrTF19bZjBuOGx.ZFVYk_ v27_h226dWCbnjWiJbJ4JFGA1V2hYUocK.ofCIp5GR.cnnPgQv4EcLNDZpsai8O9zrdOcZaWKZY. 5gAap1uCz0j1fA6BY7IM28rf5VBm5rT7TYi7ftXlKyYcsAI_KGybFwdxyypEQ1DLSHl2E1QQ8qpP UYXgafkJu3hFUnUjlLSsAo43dx1oCBzwnnPvxewlYO2N0oqtgKlNzrZnjZqXnyjKjVZI- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 6 May 2020 06:10:34 +0000 Date: Wed, 6 May 2020 06:10:33 +0000 (UTC) From: Cezar Damian To: cygwin@cygwin.com Message-ID: <849984783.2025130.1588745433116@mail.yahoo.com> In-Reply-To: <1599677377.20200504184247@yandex.ru> References: <475030844.772124.1588585159800.ref@mail.yahoo.com> <475030844.772124.1588585159800@mail.yahoo.com> <1599677377.20200504184247@yandex.ru> Subject: Re: CygWin / Sshd / ssh-keygen hangs MIME-Version: 1.0 X-Mailer: WebService/1.1.15756 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 X-Spam-Status: No, score=1.5 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, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 06 May 2020 06:10:46 -0000 =20 Hi Andrew, I'm not using W10 components, I have only cygwin installed with open-ssh an= d rsync.Unfortunatelly disable_pcon didn't help, I have the same issue : - ssh-keygen hangs- sshd - hangs with high CPU usage ( 100% split on number= of instances )- I don't see any handles or files open by sshd or ssh-keyge= n- when debuggin with windbg I got cygwin1.dll waiting for a get_perm_acl, = but only once BTW, I'm runnig sshd as service, but also in console, via bash, is hanging. Could it be that the fact that W10 is in a VMWare has some impact on cygWin= ? Regards, Cezar Damian On Monday, May 4, 2020, 05:50:05 PM GMT+2, Andrey Repin wrote: =20 =20 Greetings, Cezar Damian! > When trying to run ssh-keygen or sshd from Cygwin bash both of them are > hanging. > Wehave the following configuration : >=C2=A0 =C2=A0=20 >=C2=A0 =C2=A0 - CygWin =E2=80=93 latest version >=C2=A0 =C2=A0 - Openssh =E2=80=93 latest available version >=C2=A0 =C2=A0 - OS =E2=80=93 W10 running in a VMWare environment > When attaching with gdb to the process, I can see that ssh-keygen threads > are waiting for something ( see below ) and the program is blocked in > pthread_setspecific (). > =C2=A0 > Do you have any idea what is causing such a behaviorand how can we: >=C2=A0 =C2=A0=20 >=C2=A0 =C2=A0 - Work around it >=C2=A0 =C2=A0 - Understand what causes it ? This can be an external (to Cygwin) issue, and I see tha tyou are indeed us= ing Cygwin's ssh-keyegen for all that I can tell, but please double-check that = you aren't actually using Win10 peovided OpenSSH components. To the hangs, try running them with CYGWIN=3Ddisable_pcon for a test. > Thank you, > Cezar Damian > (gdb) info threads > =C2=A0 Id=C2=A0=C2=A0 TargetId=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Frame > =C2=A0 1=C2=A0=C2=A0=C2=A0 Thread 14616.0x2ccc0x00007ffa62e30154 in ntdll= !ZwWaitForSingleObject > () from/cygdrive/c/Windows/SYSTEM32/ntdll.dll > =C2=A0 2=C2=A0=C2=A0=C2=A0 Thread 14616.0x3d0c0x00007ffa62e339e4 in > ntdll!ZwWaitForWorkViaWorkerFactory () > from/cygdrive/c/Windows/SYSTEM32/ntdll.dll > =C2=A0 3=C2=A0=C2=A0=C2=A0 Thread 14616.0x12c40x00007ffa62e339e4 in > ntdll!ZwWaitForWorkViaWorkerFactory () > from/cygdrive/c/Windows/SYSTEM32/ntdll.dll > =C2=A0 4=C2=A0=C2=A0=C2=A0 Thread 14616.0x32ac0x00007ffa62e339e4 in > ntdll!ZwWaitForWorkViaWorkerFactory () > from/cygdrive/c/Windows/SYSTEM32/ntdll.dll > * 5=C2=A0=C2=A0=C2=A0 Thread 14616.0x33040x0000000000000000 in ?? () > =C2=A0 6=C2=A0=C2=A0=C2=A0 Thread 14616.0x38a80x00007ffa62e30194 in ntdll= !ZwReadFile () from > /cygdrive/c/Windows/SYSTEM32/ntdll.dll > =C2=A0 7=C2=A0=C2=A0=C2=A0 Thread 14616.0x8f0=C2=A00x00007ffa62e30c24 in > ntdll!ZwWaitForMultipleObjects () from/cygdrive/c/Windows/SYSTEM32/ntdll.= dll > =C2=A0 8=C2=A0=C2=A0=C2=A0 Thread 14616.0x3d540x00007ffa62e30c24 in > ntdll!ZwWaitForMultipleObjects () from /cygdrive/c/Windows/SYSTEM32/ntdll= .dll > =C2=A0 9=C2=A0=C2=A0=C2=A0 Thread 14616.0x1ab40x00007ffa62dbec08 in ntdll= !LdrShutdownThread () > from/cygdrive/c/Windows/SYSTEM32/ntdll.dll > =C2=A0 > (gdb) backtrace full > #0=C2=A0 0x0000000000000000 in ?? () > No symbol table info available. > #1=C2=A0 0x0000000180163eb0 in pthread_setspecific ()at > /usr/src/debug/cygwin-3.1.4-1/winsup/cygwin/thread.cc:2858 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_key::keys =3D {mx =3D {= lock_counter =3D 0, win32_obj_id =3D 0xcc}, head =3D0x800064fb0} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pthread_rwlock::rwlocks=3D {mx= =3D {lock_counter =3D 0, win32_obj_id =3D 0xc8}, head =3D 0x8000659a0} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread::threads =3D {mx =3D {l= ock_counter =3D 0, win32_obj_id =3D 0xbc}, head =3D0x800000010} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_mutex::mutex_initializa= tion_lock =3D {lock_counter =3D 0, win32_obj_id =3D0x254} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_null::_instance =3D { =3D { =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0_vptr.verifyable_object =3D 0x1802bdea0 pthread_null+16>, magic=3D 0}, win32_obj_id =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0attr = =3D { =3D {_vptr.verifyable_object > =3D0x1802bde60 , magic =3D 3742232648}, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0joinable =3D 1, contentionscope =3D 0, inheritsched =3D 0, > schedparam =3D{sched_priority =3D 0}, stackaddr =3D 0x0, stacksize =3D 0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0guardsize=3D 12288, name =3D 0x0}, function =3D 0x0, arg =3D 0x0, > return_ptr =3D 0x0, valid =3Dfalse, suspended =3D false, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0cancele= d =3D false, cancelstate =3D 0, canceltype =3D 0, cygtls =3D 0x0, > cancel_event =3D0x0, joiner =3D 0x0, next =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0static = threads =3D {mx =3D {lock_counter =3D 0, win32_obj_id =3D0xbc}, > head =3D 0x800000010}, thread_id =3D 0, cleanup_stack =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0mutex = =3D { =3D {_vptr.verifyable_object =3D > 0x1802bed20, magic =3D 3742232646}, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0next =3D 0x0, lock_counter =3D 0, win32_obj_id =3D 0xd8, owner =3D > 0x1, static_new_mutex =3D 0x1, static _unlocked_mutex =3D 0x2, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0static _destroyed_mutex =3D 0x3, recursion_counter =3D 0, > condwaits =3D 0, type =3D 2,pshared =3D 0, static mutexes =3D {mx =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0lock_counter =3D 0, win32_obj_id =3D 0xd0}, h= ead =3D > 0x800065b38}, staticmutex_initialization_lock =3D {lock_counter =3D 0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0win32_obj_id =3D 0x254}}, parent_sigmask =3D 0}, static > _instance =3D{ =3D { =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0_vptr.verifyable_object =3D 0x1802bdea0 pthread_null+16>, magic=3D 0}, win32_obj_id =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0attr =3D { =3D {_vptr.verifyable_object =3D > 0x1802bde60, magic =3D 3742232648}, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0joinable=3D 1, contentionscope =3D 0, inheritsched =3D 0, > schedparam =3D {sched_priority =3D 0},stackaddr =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0stacksize =3D 0, guardsize =3D 12288, name =3D 0x0}, func= tion =3D > 0x0, arg =3D 0x0,return_ptr =3D 0x0, valid =3D false, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0suspended =3D false, canceled =3D false, cancelstate =3D 0, > canceltype =3D 0, cygtls =3D0x0, cancel_event =3D 0x0, joiner =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0next =3D 0x0, static threads =3D {mx =3D {lock_counter =3D 0, > win32_obj_id =3D 0xbc},head =3D 0x800000010}, thread_id =3D 0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0cleanup_stack =3D 0x0, mutex =3D { =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0_vptr.verifyable_object =3D 0x1802bed20 pthread_mutex+16>,magic =3D 3742232646}, next =3D 0x0, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0lock_counter =3D 0, win32_obj_id =3D 0xd8, owner =3D 0x1,= static > _new_mutex =3D 0x1,static _unlocked_mutex =3D 0x2, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0static _destroyed_mutex =3D 0x3, recursion_counter =3D 0, > condwaits =3D 0, type =3D 2,pshared =3D 0, static mutexes =3D {mx =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0lock_counter =3D 0, win32_obj_id = =3D 0xd0}, head =3D > 0x800065b38}, staticmutex_initialization_lock =3D { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0lock_counter =3D 0, win32_obj_id =3D 0x254}},= parent_sigmask =3D 0}, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0static = _instance =3D }} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_rwlock::rwlock_initiali= zation_lock =3D {lock_counter =3D 0, win32_obj_id =3D0x108} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0semaphore::semaphores =3D {mx = =3D {lock_counter =3D 0, win32_obj_id =3D 0xd4}, head =3D0x0} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_cond::conds =3D {mx =3D= {lock_counter =3D 0, win32_obj_id =3D 0xc4}, head =3D0x800065ad0} > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_cond::cond_initializati= on_lock =3D {lock_counter =3D 0, win32_obj_id =3D0x104} > --Type for more, q to quit, c to continuewithout paging-- > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pthread_mutex::mutexes =3D {mx = =3D {lock_counter =3D 0, win32_obj_id =3D 0xd0}, head =3D0x800065b38} > Backtrace stopped: Cannot access memory at address 0x0 > (gdb) --=20 With best regards, Andrey Repin Monday, May 4, 2020 18:39:42 Sorry for my terrible english... =20