public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: jojelino <jojelino@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Regression: Cygwin 3.5.1 freezes when launching several mingw processes in parallel
Date: Fri, 1 Mar 2024 08:55:13 +0900	[thread overview]
Message-ID: <23db192e-ac83-4328-ae88-7d5c88200ec5@gmail.com> (raw)
In-Reply-To: <210767131.2016346.1709242445154@mail.yahoo.com>

$ (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 
<http://gnu.org/licenses/gpl.html>
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:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.

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 <fhandler_console::open_setup(int)+52>
    and ends at 0x1800f7f78 <fhandler_console::open_setup(int)+56>.
(gdb) Line 474 of 
"/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/fhandler/base.cc"
    starts at address 0x1800f6a78 <fhandler_base::open_with_arch(int, 
unsigned int)+312>
    and ends at 0x1800f6a7c <fhandler_base::open_with_arch(int, unsigned 
int)+316>.
(gdb) Line 4132 of 
"/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/fhandler/console.cc"
    starts at address 0x1800f81d3 <fhandler_console::init(void*, 
unsigned int, unsigned int)+73>
    and ends at 0x1800f81de <fhandler_console::init(void*, unsigned int, 
unsigned int)+84>.
(gdb) Line 407 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dtable.cc"
    starts at address 0x18005954d 
<dtable::init_std_file_from_handle(int, void*)+1011>
    and ends at 0x180059555 <dtable::init_std_file_from_handle(int, 
void*)+1019>.
(gdb) Line 186 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dtable.cc"
    starts at address 0x1800599b0 <dtable::stdio_init()+148>
    and ends at 0x1800599c3 <dtable::stdio_init()+167>.
(gdb) Line 928 of "/usr/src/debug/cygwin-3.5.1-1/winsup/cygwin/dcrt0.cc"
    starts at address 0x180047187 <dll_crt0_1(void*)+463>
    and ends at 0x180047191 <dll_crt0_1(void*)+473>.
(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 <cygwin@cygwin.com> 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
> 
> 
> 



  reply	other threads:[~2024-02-29 23:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 18:19 Kate Deplaix
2024-02-29 21:34 ` Kevin Schnitzius
2024-02-29 23:55   ` jojelino [this message]
2024-02-29 23:57   ` jojelino
2024-03-01  4:31     ` jojelino
2024-03-01  0:25 ` Takashi Yano
2024-03-01 10:21   ` Takashi Yano
2024-03-01 13:02     ` Takashi Yano
2024-03-01 15:26       ` David Allsopp
2024-03-01 17:48         ` Kate Deplaix
2024-03-02  4:41           ` Takashi Yano
2024-03-02 11:49             ` Kate Deplaix
2024-03-03  4:07               ` Takashi Yano
2024-03-04 11:00                 ` Takashi Yano
2024-03-04 12:06                   ` Takashi Yano
2024-03-04 12:26                     ` Dimitry Andric
2024-03-04 15:58                     ` Kate Deplaix
2024-03-04 19:38                       ` Dimitry Andric
2024-03-04 19:54                         ` Cedric Blancher
2024-03-04 22:23                           ` Dimitry Andric

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=23db192e-ac83-4328-ae88-7d5c88200ec5@gmail.com \
    --to=jojelino@gmail.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).