From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 213FA3858009; Sun, 29 Nov 2020 17:40:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 213FA3858009 From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug tui/26973] New: gdb crashes when not including the status window in a new layout Date: Sun, 29 Nov 2020 17:40:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: ssbssa at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 29 Nov 2020 17:40:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26973 Bug ID: 26973 Summary: gdb crashes when not including the status window in a new layout Product: gdb Version: 10.1 Status: NEW Severity: normal Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: ssbssa at sourceware dot org Target Milestone: 10.2 If you create a new TUI layout, don't include the status window, and then change from a layout with the status window to the new one, gdb crashes. (gdb) layout src (gdb) tui new-layout test src 2 cmd 1 (gdb) layout test On Windows I get a STATUS_HEAP_CORRUPTION exception (0xc0000374). It happens because tui_apply_current_layout() deletes all windows that are = no longer needed, but the status (locator) window is never allocated dynamical= ly. --=20 You are receiving this mail because: You are on the CC list for the bug.=