From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id A64F63858D34 for ; Thu, 29 Feb 2024 23:55:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A64F63858D34 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A64F63858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=116.202.254.214 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709250926; cv=none; b=HczQtJ4asq4BO9V+o7Io6kJNE7WD7KlwveVdXdhDvf7QVhRl4cA9P9qvto4NRwJKDwoyWRLrtG8MpWYHY4sPnQKr7PHSD2PWkK8W0+p0UnRi4Vs37yEgmCC+J94G/oLA8KTMBkoYwnRI46h2VnLploBVK2lepn/F+pI+YrRwwCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709250926; c=relaxed/simple; bh=pwHzUecTNZfq8Wy0MyU89UDAl7sm7VDMacXhT17KAwc=; h=To:From:Subject:Date:Message-ID:Mime-Version; b=btBZiiCo426Ee5Zamwq8qJNudEGwVwofHm9wRuyPhWnhxReGoOQ96GMsbdBfklovbPLhUTz0x0tYV2MfjvfsohDOdCL2DxRe1ZdMPBlE6JNwkYqZbGEzo1yajBtYuTCllqvsOY/WqnUy4vc30xFYmUvXTjbvqR6Fq7VJKf4NUAM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rfqFH-0005LL-ME for cygwin@cygwin.com; Fri, 01 Mar 2024 00:55:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: jojelino Subject: Re: Regression: Cygwin 3.5.1 freezes when launching several mingw processes in parallel Date: Fri, 1 Mar 2024 08:55:13 +0900 Message-ID: <23db192e-ac83-4328-ae88-7d5c88200ec5@gmail.com> References: <210767131.2016346.1709242445154@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <210767131.2016346.1709242445154@mail.yahoo.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: $ (echo symbol cygwin1.dll;grep -Po '(?<=cygwin1!)[a-z_0-9]*?\+0x[a-f0-9]*'|sed -E 's/^/i line *(/;s/$/)/')|gdb GNU gdb (GDB) (Cygwin 12.1-1) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-cygwin". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". warning: the current range check setting does not match the language. Whether backtraces should continue past the entry point of a program is off. (gdb) Reading symbols from cygwin1.dll... Reading symbols from /usr/lib/debug/usr/bin/cygwin1.dll.dbg... (gdb) 00000007`ffffc8c0 00007ffe`7dc57f74 : 00000008`00039b40 00000008`00039b40 00000000`00010002 0000000a`00000298 : cygwin1!dirname+0x198e 00000007`ffffc980 00007ffe`7dc56a78 : 00000000`00f2f2f2 00000000`00000000 00000007`ffffcd30 00007ffe`e44773ae : cygwin1!cuserid+0x16e16 00000007`ffffc9c0 00007ffe`7dc581d3 : 00ff783b`00767676 00000000`005b0720 00000000`00000002 00000008`00004870 : cygwin1!cuserid+0x1591a 00000007`ffffca40 00007ffe`7dbb954d : 00020000`00000050 00000000`000a3dd0 00000000`000ab7b0 00000000`00000000 : cygwin1!cuserid+0x17075 00000007`ffffca70 00007ffe`7dbb99c2 : 00000007`ffffcc8a 00007ffe`7dba7d37 00000007`ffffcd30 00000007`00000c90 : cygwin1!dlfork+0x2695 00000007`ffffcb70 00007ffe`7dba7187 : 315c615c`305c625c 2f00735c`2e5c625c 5f5c6c5c`665c615c 745c735c`6e5c695c : cygwin1!dlfork+0x2b0a 00000007`ffffcbf0 00007ffe`7dba5e08 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : cygwin1!cygwin_dll_init+0x381 00000007`ffffcd80 00007ffe`7dba5e86 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : cygwin1!_assert+0x23f0 00000007`ffffcdd0 00000000`00000000 : 00007ffe`7dd0604f 00000008`0003a210 00000000`00000000 00000008`00039400 : cygwin1!_assert+0x246e Line 74 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/local_includes/tty.h" starts at address 0x1800995ad <_pinfo::set_ctty(fhandler_termios*, int)+1275> and ends at 0x1800995bb <_pinfo::set_ctty(fhandler_termios*, int)+1289>. (gdb) Line 1853 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/fhandler/console.cc" starts at address 0x1800f7f74 and ends at 0x1800f7f78 . (gdb) Line 474 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/fhandler/base.cc" starts at address 0x1800f6a78 and ends at 0x1800f6a7c . (gdb) Line 4132 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/fhandler/console.cc" starts at address 0x1800f81d3 and ends at 0x1800f81de . (gdb) Line 407 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dtable.cc" starts at address 0x18005954d and ends at 0x180059555 . (gdb) Line 186 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dtable.cc" starts at address 0x1800599b0 and ends at 0x1800599c3 . (gdb) Line 928 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dcrt0.cc" starts at address 0x180047187 and ends at 0x180047191 . (gdb) No symbol "_assert" in current context. (gdb) No symbol "_assert" in current context. (gdb) quit On 3/1/2024 6:34 AM, Kevin Schnitzius via Cygwin wrote: > On Thursday, February 29, 2024 at 01:21:01 PM EST, Kate Deplaix via Cygwin wrote: >> At some point of the make process, one job will infinit loop (taking 100% of one core), while the rest of the mingw jobs will idle and never finish. After some time Cygwin Terminal isn't >> responsive anymore, and I'm not able to open another one or to spawn any other processes that are relying on the cygwin dll. I was able to observe this behaviour every time i tried >> consistently. > > I have repro'd this problem with the exception that there was no 100% cpu usage.  Looks like an exception handling loop: > > (2c20.4df8): Access violation - code c0000005 (first chance) > First chance exceptions are reported before any exception handling. > This exception may be expected and handled. > cygwin1!dirname+0x198e: > 00007ffe`7dbf95ad 458b5c2408      mov     r11d,dword ptr [r12+8] ds:00000001`a0030008=???????? > 0:000> g > (2c20.4df8): Access violation - code c0000005 (first chance) > First chance exceptions are reported before any exception handling. > This exception may be expected and handled. > cygwin1!dirname+0x198e: > 00007ffe`7dbf95ad 458b5c2408      mov     r11d,dword ptr [r12+8] ds:00000001`a0030008=???????? > 0:000> g > (2c20.4df8): Access violation - code c0000005 (first chance) > First chance exceptions are reported before any exception handling. > This exception may be expected and handled. > cygwin1!dirname+0x198e: > 00007ffe`7dbf95ad 458b5c2408      mov     r11d,dword ptr [r12+8] ds:00000001`a0030008=???????? > 0:000> g > (2c20.4df8): Access violation - code c0000005 (first chance) > First chance exceptions are reported before any exception handling. > This exception may be expected and handled. > cygwin1!dirname+0x198e: > 00007ffe`7dbf95ad 458b5c2408      mov     r11d,dword ptr [r12+8] ds:00000001`a0030008=???????? > > > STACK_TEXT: > 00000007`ffffc8c0 00007ffe`7dc57f74     : 00000008`00039b40 00000008`00039b40 00000000`00010002 0000000a`00000298 : cygwin1!dirname+0x198e > 00000007`ffffc980 00007ffe`7dc56a78     : 00000000`00f2f2f2 00000000`00000000 00000007`ffffcd30 00007ffe`e44773ae : cygwin1!cuserid+0x16e16 > 00000007`ffffc9c0 00007ffe`7dc581d3     : 00ff783b`00767676 00000000`005b0720 00000000`00000002 00000008`00004870 : cygwin1!cuserid+0x1591a > 00000007`ffffca40 00007ffe`7dbb954d     : 00020000`00000050 00000000`000a3dd0 00000000`000ab7b0 00000000`00000000 : cygwin1!cuserid+0x17075 > 00000007`ffffca70 00007ffe`7dbb99c2     : 00000007`ffffcc8a 00007ffe`7dba7d37 00000007`ffffcd30 00000007`00000c90 : cygwin1!dlfork+0x2695 > 00000007`ffffcb70 00007ffe`7dba7187     : 315c615c`305c625c 2f00735c`2e5c625c 5f5c6c5c`665c615c 745c735c`6e5c695c : cygwin1!dlfork+0x2b0a > 00000007`ffffcbf0 00007ffe`7dba5e08     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : cygwin1!cygwin_dll_init+0x381 > 00000007`ffffcd80 00007ffe`7dba5e86     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : cygwin1!_assert+0x23f0 > 00000007`ffffcdd0 00000000`00000000     : 00007ffe`7dd0604f 00000008`0003a210 00000000`00000000 00000008`00039400 : cygwin1!_assert+0x246e > > > gdb does not connect... > > Other interesting thing, the "bad" gcc has cons0 tty attached: > > 18907       1   18907      11296  cons0   1610619958 16:19:23 /usr/bin/x86_64-w64-mingw32-gcc > > Kevin > > >