DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44OMReUG3487335 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=KmkOqcu8 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D3613858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1716589659; bh=kRUoHIwOx8wtPysO0946dPttfsBaMr2vCCPufJ1MAwo=; 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=KmkOqcu8H5Tqie2khyPQVEHKoYud3TUh9ubvqhQvzZmNJZ4//y5ni2Gfd+sRIu7s0 HxmFNGDn1IbN0GkxORTe418EUtNsexk9zv00jSIobyydBOZj3JORB2vqAfDL5EitKa pTcGX10//chj7I6m2u4x3AMSBhebPzeseDPUFHj0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABBDF3858D29 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ABBDF3858D29 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716589605; cv=none; b=sVlAHr5W+wWWXZLlpm1rrSY2e5IK8YB9jh0MaZEVPzDwxeEOq6aOOgWbWL0O5SAW2pQ1/QNGZScTQmU+iTPJBy5QXYo6xs0mkUv74JtBVHMpwymSRuiRIAyVMuBK1CthWXGyxDCyqhYDba+7ufApDKBKkHmOMYSZQPViV2lIVGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716589605; c=relaxed/simple; bh=Za0CCd2MYTzexHr49H3yJTJh9biv2LXY5czxbsYtpKk=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=HbrJGeCC7NLoKpHCTflBhLBUaxeldIVj/+9jsvCgia9VOlGHm8OhpOD5c25GEDt3SbCz9Uv592ISyT+mQrUzjjQSlu9HDSIZjkinVVasOI8QfIakK3TXpgImrvHIVThjtlJtH8mTImyVp3BIaUjORi800B2m1JQPptXYhFIVFNw= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Fri, 24 May 2024 15:26:43 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: Takashi Yano cc: cygwin AT cygwin DOT com Subject: Re: frequent hangs running ldd In-Reply-To: <20240525071739.167d0f2b66b3dd8d2313be19@nifty.ne.jp> Message-ID: <199f58b5-be55-a490-b94c-8b1ec7ff10fe@jdrake.com> References: <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> MIME-Version: 1.0 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jeremy Drake via Cygwin Reply-To: Jeremy Drake Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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). -- 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