From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id 5B9583858D28 for ; Fri, 12 Nov 2021 10:02:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5B9583858D28 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M8hMn-1mq86340Th-004lyk for ; Fri, 12 Nov 2021 11:02:46 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 639A2A80D4C; Fri, 12 Nov 2021 11:02:46 +0100 (CET) Date: Fri, 12 Nov 2021 11:02:46 +0100 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: 3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot Message-ID: Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: <2cfa5de7-3b95-9062-4572-f36d304bc916@cornell.edu> <20211106151047.4d8f626bd6ebe9e4d8017f3b@nifty.ne.jp> <20211110173003.88359e8482ffa8b8be326903@nifty.ne.jp> <20211110223049.b61c6cb87fb3e540b4214bcf@nifty.ne.jp> <20211111201206.72cd688ce6a0d72d3a4f6c5f@nifty.ne.jp> <20211112173326.71a3a40fececc8a284238051@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211112173326.71a3a40fececc8a284238051@nifty.ne.jp> X-Provags-ID: V03:K1:Dj+y2ZyM4Ai6XgwkgBI1Xronol9xznw7ymIukLA8pWdxhMKO3MB yNimO3Rk9fleIuI3QbUmVp/Fw6iE3TULitizpncB3Tb/+7W2jHZjwYkWl8AdexnEDJiV9zf wTee1jjm9+PuApwonvRmihV1vDZP4ruzHA0JLBj71dOz+zOuStJHhvT5x/x3dutwYu+wmLE uTTRDfPsjkQ2cQ1R+LwDw== X-UI-Out-Filterresults: notjunk:1;V03:K0:kW4fhLtTp/s=:N3SIai4Euud0Bbowy3i+Nz 9swQ2kDsw+76WLg+u/Bm9d8VS2jyTB9OPsrw0pJfsJUZ+F6jqYIANQJvu13NjhrGOiFAG/Od8 bszst/n7zLhDLLKpyu+qPWGDiY76sbtBdDOZqSHUHLyfO/vDSUgIARa0ebDrLAKdQwuoxNvK9 sHHQ8ZFwVOVtdd4IvJzwZnUdCqig2l9M+/VcRYIjTqTsJJcitO93j9Y7/ZQegpD5BwrSexdIH 2vBYwKs8Sz8wxjxZ/qWEDXMniwdWNSRLNka4/qCbwtVWw2d9Uy9XfpLQkogSwCsEkrzXIDf63 LUlnFfJR09KG6IQoVjExy8noAlF8GF5KeQX9g4Wsukfy9ER4E2H8M9EQKeE3GxYvclc7alzhI 9IvC4+JFlAiJqSBcLd09oYS9sFLcrFLdCC8KVeMtlskiyQk34ciHLlPX3ZqoK5ysVg1zSt2zn gwqZih1bk5meEa8fK2HTpKpVpXh2eXh4Bq1wyvc84OYD9kCtg2CNNN3eZNPgCrFmqcHQKWyVY sJvwIAWmeVV/ZNn8m6wxok3PhBTEi+U8I3/nVGn9EhQg2RLs9cJa+RbSs3dqn2luLIwyg9k3P JZbfGEoYz/PLqSFkVkWR20V+XIbkkmd6EV+7rrpxqlrH+n/lw11dtt0fXAslv0vHE01FHgPq4 zG0MEa4evR82itKqrbJIm2aiFO8QrUucZjT+dJQj3P9AEJ6tyn6ptFZU6YjczY5IX7y/ph50E 3bGw7uKIBVvgGvqr X-Spam-Status: No, score=-99.1 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2021 10:02:50 -0000 On Nov 12 17:33, Takashi Yano wrote: > On Thu, 11 Nov 2021 20:12:06 +0900 > Takashi Yano wrote: > > On Thu, 11 Nov 2021 10:52:33 +0100 > > Corinna Vinschen wrote: > > > What I don't like much is that we are now running a busy loop, but the > > > NtQueryObject hang is... disappointing, to say the least. What about > > > using another function like NtQueryInformationFile(FileNameInformation)? > > > I bet this hangs, too, right? > > > > I have just confirmed that NtQueryInformationFile(FileNameInformation) > > also hangs. > > I tried to utilize following APIs, however, all of them hangs. > > NtQueryObject(ObjectNameInformation) > NtQueryInformationFile(FileNameInformation) > GetFinalPathNameByHandle() > GetFileInformationByHandleEx(FileNameInfo) :-P > However, NtQueryInformationFile(FileProcessIdsUsingFileInformation) > does not hang. I wonder how it checks internally that one of the > process handles is pointing the same pipe. Good question. In the meantime, you might want to merge your code into master, whenever you think it's ready. Corinna