public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: frequent hangs running ldd
Date: Fri, 24 May 2024 15:43:49 -0700	[thread overview]
Message-ID: <1d3fed70-2f3d-48c4-b043-c06fccf7a1cc@maxrnd.com> (raw)
In-Reply-To: <199f58b5-be55-a490-b94c-8b1ec7ff10fe@jdrake.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


      parent reply	other threads:[~2024-05-24 22:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-24 18:50 Jeremy Drake
2024-05-24 19:54 ` Takashi Yano
2024-05-24 20:09   ` Takashi Yano
2024-05-24 21:46   ` Jeremy Drake
2024-05-24 22:17     ` Takashi Yano
2024-05-24 22:24       ` Mark Geisert
2024-05-24 22:26       ` Jeremy Drake
2024-05-24 22:38         ` Jeremy Drake
2024-05-24 23:29           ` Jeremy Drake
2024-05-25  2:28             ` Jeremy Drake
2024-05-25  2:29               ` Jeremy Drake
2024-05-28  1:58                 ` Takashi Yano
2024-05-28  2:16                   ` Takashi Yano
2024-05-24 22:43         ` Mark Geisert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1d3fed70-2f3d-48c4-b043-c06fccf7a1cc@maxrnd.com \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).