DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44OIpYuS3424308 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=fqFplDOl X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3003F385ED4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1716576692; bh=9iImZZAuka7WN1nVnW5V78bv1fUslNoTtdthNTV+3u0=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=fqFplDOlM+3uw4tnIPPR1BqKFMTqLeK1fyOmjr3s4+cUqCGhVSddrosCKCyado1Pr ysWBhdlLINo6/lOwyK3ccqC6zRzOr3/kzWknwdnP4rxU83G1bE1n4a9FEcy1dPc4Yp swjXAeo/xtje61bvQs6yhXwYyq48j4/2iZ95QlUo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AD923858D29 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2AD923858D29 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716576640; cv=none; b=skgkGtHw0ZqwXP28iNfiLE9hvLc595WB0Pwt0RwKOMuATNWr3Ts/qtvk8ahtt7saACkFsFs8UBkKcP6wiGmRPFDHlDSsgcu8cFCfOzalRCOlt/kCmr3nO/WrEp2oNmdowumQOgrrsO6CykJedd3AQUmxlFCHIokwaAZ+wd5lrvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716576640; c=relaxed/simple; bh=uXGQs3dVIkzNcmFCkE7bftHX/qhSKzK5qoLCQfafkTI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=MhHr4EWwEo+zWZTc4WMQrVgiqABTh778YQMtQMzAS45zDOl3q7EmaYdAmT89ube0frDseYdaR++wppjOlZwyH5J1Y9QqlRm3SzrHufgCHG7TCq502JVoq2VrSKU7mqFGXqtvvLZtvPKzl3s/kbGuB6ZAnM3cQSuNWImhKaJ08v4= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Fri, 24 May 2024 11:50:35 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: cygwin AT cygwin DOT com Subject: frequent hangs running ldd Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 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 Sender: "Cygwin" 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=, 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 , 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=, arg=) 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. -- 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