delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/05/24/18:44:44

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44OMiiva3492608
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=C6VDhgKC
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03D15385E45C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1716590684;
bh=Ql+TZduibbPaA1vWZjzamq0dhhtEdXNdrEWElRN3uIM=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=C6VDhgKCueJyQvK8HqLWPtYn3Y2Ssuxm+eYEstcY2jZLmzkUYq758faeHhpH9AX+i
LwY6rFsSD27iiLn4kj0UWi+t7N81CmtzXmdjsp10lOGasLzCXY0oGgbfF8TH91W+Qs
WhJWMDT4aeYJfg/kEvdLKqexDgPo7rIlJRXY88U0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDA3A3858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DDA3A3858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716590630; cv=none;
b=AoutceE8ZHYjeLqDS+jhxHjzcC/uaTzsQFx0e1sRo7uUS2nP++63FlsOq1bGh9ZKSj/WxVglncifoNdrbtfpyOM11j11ADkx8Cm2srJRVF/L3+zqczXvz8P6lZaJjySmA5UqutnbGdxL3EMQyfT2wEsiQ80mOMqcaD3su/MpGIM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1716590630; c=relaxed/simple;
bh=OP9DNVUc4APtPfMCyYdtpxVspbJE3tjwCVUPItV5U/4=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=CVvBI7kAz8dOXUMVbAIYh4+5bHIw/hjtM1Dgh1x0kH943dpR3Bi6k6zzAPf8ly9CccVOLUWOilhzPNpKBwjMim8wEXkiWevlqsI3zyBW4YZit2Rug6GZe4M2iTEHXzgflmB8dRkxSO+hT3OosY9yStTQwIaKfmMRCB7iX3GBDqI=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <1d3fed70-2f3d-48c4-b043-c06fccf7a1cc@maxrnd.com>
Date: Fri, 24 May 2024 15:43:49 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: frequent hangs running ldd
To: cygwin AT cygwin DOT com
References: <fd3b2d14-0d16-9e66-f7ea-daadc0c5bfcc AT jdrake DOT com>
<20240525045424 DOT ac58c0ff5e325706b2a5f014 AT nifty DOT ne DOT jp>
<0bd2f49b-93f6-7db4-32b6-7f3021db211e AT jdrake DOT com>
<20240525071739 DOT 167d0f2b66b3dd8d2313be19 AT nifty DOT ne DOT jp>
<199f58b5-be55-a490-b94c-8b1ec7ff10fe AT jdrake DOT com>
In-Reply-To: <199f58b5-be55-a490-b94c-8b1ec7ff10fe@jdrake.com>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
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 5/24/2024 3:26 PM, Jeremy Drake via Cygwin wrote:
> On Sat, 25 May 2024, Takashi Yano wrote:
> 
>> On Fri, 24 May 2024 14:46:40 -0700 (PDT)
>> Jeremy Drake wrote:
>>>> Thanks for the report. However, I cannot reproduce the issue.
>>>> If it always hangs in GetConsoleProcessList (), I doubt it is not a cygwin
>>>> bug but a windows bug.
>>>>
>>>> By any chance, is the number of processes that attach to the same pty more
>>>> than 32768 in your environment?
>>>>
>>>
>>> I doubt it, I was running a shell with this command:
>>> find /usr/bin -name \*.dll -printf '%p:\n' -exec ldd '{}' \;
>>
>> Thanks for the details. I could reproduce the issue.
>> It seems that ldh.exe (which is called from ldd?) falls into infinite loop.
>> However, gdb cannot attach to ldh.exe...
>>
> 
> Windbg reports that ldh.exe is already being debugged.  I was able to do a
> "non-invasive" attach to ldh.exe in windbg, but it doesn't seem to be able
> to deal with the split debug symbols (gnulink?).  I don't know if gdb can
> do a non-invasive attach like that (or open a minidump assuming one could
> be made from a non-invasize attach in windbg).

ldd is the debugger of ldh. I found that Sysinternals Process Explorer 
can attach to ldh, show the threads, and can get stack backtraces which 
are refreshable. You have to convert addresses shown there into 
source-relevant addresses manually.

I'm bowing out for now as I think Takashi has a handle on this.
Cheers,

..mark


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