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






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

Reply via email to