From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF0A8384A8AD; Fri, 10 Sep 2021 19:36:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF0A8384A8AD From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug tui/26973] gdb crashes when not including the status window in a new layout Date: Fri, 10 Sep 2021 19:36:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 19:36:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26973 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #9 from Mehmet gelisin --- It does not happen on every run. My MWE: ``` // test.cpp https://komiya-dental.com/=20 #include int main() { int a{ 4 }; std::cout << "a =3D " << a << '\n'; return 0; } http://www.iu-bloomington.com/=20 ``` Simply running the program under GDB yields: ``` (gdb) r Starting program: test-gdb/a.out [New Thread 0x1a03 of process 24826] https://www.webb-dev.co.uk/=20 [New Thread 0x1b03 of process 24826] warning: unhandled dyld version (17) a =3D 4 [Inferior 1 (process 24826) exited normally] ``` However, setting breakpoints triggers it: https://waytowhatsnext.com/=20 ``` (gdb) b main Breakpoint 1 at 0x100003e57: file test.cpp, line 5. (gdb) r Starting program: test-gdb/a.out [New Thread 0x2403 of process 24836] [New Thread 0x2203 of process 24836] http://www.acpirateradio.co.uk/=20 warning: unhandled dyld version (17) Thread 2 hit Breakpoint 1, main () at test.cpp:5 5 int a{ 4 }; (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) n http://www.logoarts.co.uk/=20 Program not restarted. (gdb) q A debugging session is active. Inferior 1 [process 24836] will be killed. Quit anyway? (y or n) y http://www.slipstone.co.uk/=20 ../../gdb/target.c:2149: internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid =3D=3D inferior_ptid' failed. A problem internal to GDB has been detected, http://embermanchester.uk/ further debugging may prove unreliable. Quit this debugging session? (y or n) y This is a bug, please report it. For instructions, see: http://connstr.net= /=20 I also get this error on my old macOS 10.11.6 system with a self-compiled G= DB 10.1. This did not happen with GDB 8.3.1 which I was using previously. http://joerg.li/ So it is definitely not specific to ARM or even Big Sur... http://www.jopspeech.com/ My reproducer program: ~~~cpp # test.cpp http://www.wearelondonmade.com/ void here() {}; int main() { const int size =3D 5; http://www.compilatori.com/ double array[size] =3D {1.0, 2.0, 3.0, 4.0, 5.0}; here(); return 0; } ~~~ I build that example and invoke GDB like so: http://www-look-4.com/ ~~~shell $ g++ --version --=20 You are receiving this mail because: You are on the CC list for the bug.=