delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/05/24/15:55:30

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44OJtThu3441639
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=PgxvSfWn
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BF89385ED4B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1716580527;
bh=5hstsaiHfCjk7CTHm9Rc2ce+nvBEOKFd161VfBYm88w=;
h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=PgxvSfWnqU0ZUgI55+N94CFjcNN39pJR9yYfo4IhoAuBu+W4OUTPDtWQehPEkoe17
ufd+HZdugDP1tLQLEayGUK1Eekqcfd8ZnKV5wjY264HT09GX4FrK4mvXTnsi10mJYj
IHfpDZshObaKYNueXCYf0n39fW3cMTRvipQQD8Rs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7E653858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B7E653858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716580471; cv=none;
b=dqBgSzKyxuP0eInzDEIaZI8SzYG9wS9/RLjOiU/1mb4OjPitoJj+LpO8ebtYQ5OWT6hZVmDK+dxQrdMaB4d1wAZKJg9wiWxn6XRUy+iceAgjBGJHG1hbIWThPvnSS2/gkwRaOT7b0/L4JE5K2DJtb2qM/h1P3qDpOtKW71lslzk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1716580471; c=relaxed/simple;
bh=LC+QdQkzqq5nlJZ2bnhMxswHrwAhE90bGCt0wLAFUkE=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=QuuUHhgGUx7YIln1PDaCXe9gOoazVBfTvdx7jbc3M8Cma5dUISFKJZtpzLyaCcioi13wqQeLLK2P6yuzjpIas0VzaBRDrRLBse5JTYOikjBnoAL29NsEiYiGWf5erHfc0cs0rFRb/go+TBxT4Lq9MwFoDYnAmxdbHuWt3/6DKCM=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Sat, 25 May 2024 04:54:24 +0900
To: cygwin AT cygwin DOT com
Cc: Jeremy Drake <cygwin AT jdrake DOT com>
Subject: Re: frequent hangs running ldd
Message-Id: <20240525045424.ac58c0ff5e325706b2a5f014@nifty.ne.jp>
In-Reply-To: <fd3b2d14-0d16-9e66-f7ea-daadc0c5bfcc@jdrake.com>
References: <fd3b2d14-0d16-9e66-f7ea-daadc0c5bfcc AT jdrake DOT com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS,
SPF_PASS, TXREP, WEIRD_PORT 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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
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 Fri, 24 May 2024 11:50:35 -0700 (PDT)
Jeremy Drake wrote:
> Seen on msys2, but doesn't seem specific to it.
> 
> Frequently, when running ldd in a loop, it will hang.  I managed to get a
> backtrace from gdb with symbols:
> 
> (gdb) bt
> #0  0x00007ffecea0fa34 in ntdll!ZwDeviceIoControlFile ()
>    from /c/Windows/SYSTEM32/ntdll.dll
> #1  0x00007ffecbead7a9 in KERNELBASE!GetConsoleScreenBufferInfoEx ()
>    from /c/Windows/System32/KERNELBASE.dll
> #2  0x00007ffecbef58dc in KERNELBASE!GetConsoleTitleW ()
>    from /c/Windows/System32/KERNELBASE.dll
> #3  0x00007ffecbfb8195 in KERNELBASE!GetConsoleProcessList ()
>    from /c/Windows/System32/KERNELBASE.dll
> #4  0x000000018015851f in fhandler_pty_common::get_console_process_id (
>     pid=19348, match=match AT entry=true, cygwin=cygwin AT entry=false,
>     stub_only=stub_only AT entry=false, nat=nat AT entry=false)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/pty.cc:95
> #5  0x0000000180101e3b in fhandler_console::attach_console (
>     owner=<optimized out>, err=err AT entry=0x0)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/console.cc:76
> #6  0x0000000180102d40 in fhandler_console::set_output_mode (m=tty::native,
>     t=0x1a0030028, p=0x800021d68)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/console.cc:853
> #7  0x000000018010d6cc in fhandler_console::set_console_mode_to_native ()
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/console.cc:4189
> #8  0x000000018010d71d in ContinueDebugEvent_Hooked (p=26628, t=26656, s=65538)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler/console.cc:4238
> #9  0x0000000100401bd7 in ?? ()
> #10 0x000000010040279f in ?? ()
> #11 0x00000001800483a7 in dll_crt0_1 ()
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/dcrt0.cc:1015
> #12 0x0000000180045f63 in _cygtls::call2 (this=0x7ffffce00,
>     func=0x180047240 <dll_crt0_1(void*)>, arg=0x0,
> buf=buf AT entry=0x7ffffcdf0)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/cygtls.cc:41
> #13 0x0000000180046014 in _cygtls::call (func=<optimized out>,
>     arg=<optimized out>)
>     at /C/_/msys2-runtime/src/msys2-runtime/winsup/cygwin/cygtls.cc:28
> #14 0x0000000000000000 in ?? ()
> 
> Other attempts without symbols showed the same Windows APIs at least.

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?

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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