From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A545E385782B; Tue, 19 Jan 2021 12:50:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A545E385782B From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug server/26804] gdbserver crash at when program has canary and is 32 bit. Date: Tue, 19 Jan 2021 12:50:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Tue, 19 Jan 2021 12:50:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26804 --- Comment #10 from Tom de Vries --- Created attachment 13132 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13132&action=3Ded= it Tentative patch (In reply to Markus Metzger from comment #8) > This zero-extends all registers in the 64-bit regmap, not just those in t= he > 32-bit regmap that get collected later on. We should rather preserve wha= t's > in the buffer unless we're intentionally overwriting it. Should we remove > the memset here and zero-extend the registers that we collect in the loop > below? Currently testing this approach. --=20 You are receiving this mail because: You are on the CC list for the bug.=