delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/04/08/04:42:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B6683858C83
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=ispras.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ispras.ru
MIME-Version: 1.0
Date: Fri, 08 Apr 2022 11:42:29 +0300
From: Alexey Izbyshev <izbyshev AT ispras DOT ru>
To: cygwin AT cygwin DOT com
Subject: Re: Deadlock of the process tree when running make
In-Reply-To: <23e627a3-39a7-e22f-6372-65d50f1a63d6@SystematicSw.ab.ca>
References: <9388316255ada0e0fcb2d849cce5a894 AT ispras DOT ru>
<23e627a3-39a7-e22f-6372-65d50f1a63d6 AT SystematicSw DOT ab DOT ca>
User-Agent: Roundcube Webmail/1.4.4
Message-ID: <5c00c0cd21bac6b4564fe5d2721520f1@ispras.ru>
X-Sender: izbyshev AT ispras DOT ru
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DOS_RCVD_IP_TWICE_B,
KAM_DMARC_STATUS, 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2022-04-08 02:54, Brian Inglis wrote:
> I've seen infinite loops with readlink in build scripts under Cygwin.
> Seeing that readlink in a process tree makes me suspicious that
> something in a shell script is looping because two paths never match
> or always match under Cygwin.
> Often there is one constant path and a varying path which is subjected
> to readlink in a loop.
> Under Cygwin, you may have to pass the first path through readlink and
> compare that resulting path against the varying value.

Thanks, but I don't think I have such loops in this project. Also, other 
processes hang in independent make jobs, so a hang around readlink 
wouldn't explain that.

There is also an additional detail that I forgot to mention: in the 
stack trace of all leaf processes as displayed by ProcessHacker, it 
seems that the executable entry point is not reached yet. The only 
non-Windows-DLL location is in cygwin1.dll, so I suspect that all 
processes hang at early initialization in Cygwin's DLL entry point.

Thanks,
Alexey

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