From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.superhosting.bg (smtp-out1.superhosting.bg [185.123.190.10]) by sourceware.org (Postfix) with ESMTPS id 08D7F3858C2C for ; Fri, 25 Mar 2022 07:49:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 08D7F3858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=roumenpetrov.info Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=roumenpetrov.info Received: from rila.superhosting.bg ([91.196.125.212]) by smtp-out1.superhosting.bg with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nXegl-00ExJI-T7 for cygwin@cygwin.com; Fri, 25 Mar 2022 09:49:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roumenpetrov.info; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V4RBVoX9mK/LkY2dpNbKxn+n3I9k+NhGXAgAUoP86KY=; b=XNRDL3VOG0V8eDv72FIAErHPT7 xGDDV0SkG3LYMv4OelJSHVdm+2XtKopVD5UyEDoLTRcgcUyWln6zlLhpmirW2akoOfO330EF1isKL r4bzE6qCvlnqR/ftR3nlGFi7NC/i8SpPnDdKIGpQ1dKhV+BVVOPHEa/TGNdj3pgRNr94cRdiR7gDV jRiRx5GDIgceC3wmSCVE9GdVqjwAYkesh5UyvleSxmvRIn4jNmiAUsaSE5ajs+d/v2EHhJdDMtb6U 5iMSIgYt71OhqXo2IfmT4HT5/cT8exPp/vjUJFikOxQjm6OGHPP80DmBCu88l5FTfLDmNTahren13 q3E24XOA==; Received: from [78.128.48.21] (port=52356 helo=[192.168.0.10]) by rila.superhosting.bg with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nXegj-0001Mf-Ng for cygwin@cygwin.com; Fri, 25 Mar 2022 09:48:50 +0200 Subject: Re: pipe hang issue when running as SYSTEM To: cygwin@cygwin.com References: <20220322191807.8348f074683c127b1723c5c2@nifty.ne.jp> <20220322221756.2b7e80ec0a51e7ebd9df5a53@nifty.ne.jp> <20220325144253.4053d19d7e7b0243dcefa79e@nifty.ne.jp> From: Roumen Petrov Message-ID: Date: Fri, 25 Mar 2022 09:48:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1 MIME-Version: 1.0 In-Reply-To: <20220325144253.4053d19d7e7b0243dcefa79e@nifty.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-2.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rila.superhosting.bg X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roumenpetrov.info X-Get-Message-Sender-Via: rila.superhosting.bg: authenticated_id: master78@roumenpetrov.info X-Authenticated-Sender: rila.superhosting.bg: master78@roumenpetrov.info X-Source: X-Source-Args: X-Source-Dir: X-SA-Score: -2.1 (--) X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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@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: Fri, 25 Mar 2022 07:49:34 -0000 Hi, Takashi Yano wrote: > [SNIP] >> Just got another report to MSYS2 of this behavior, this time from a Gitlab >> CI runner that is running as a service and trying to pipe output from >> Microsoft cl.exe while running configure. This user reports that 3.3.4 >> with your "[PATCH v2] Cygwin: pipe: Avoid deadlock for non-cygwin writer." >> applied to it does not solve the problem. >> >> https://github.com/msys2/MSYS2-packages/issues/2893 > I can confirm the sample script hangs indeed if the script is > running as SYSTEM account. However, in my test, the patch solves > the issue. > > It would be very helpfull if a simple github repository with > github actions, which can reproduce the issue, is provided. In my environment with AD user account: $ cmd.exe /c "type big_file" | : The process tried to write to a nonexistent pipe. $ cat big_file | : *** starting debugger for pid NNN tid KKKKK $ uname -a CYGWIN_NT-10.0 ZZZZZZZ 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin Remarks: - no way to debug - no error if run as administrator Regards, Roumen Petrov