From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 49531385EC57; Sat, 14 Nov 2020 23:38:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49531385EC57 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/26876] gdb error: internal-error: Unknown CFA rule when debugging the linux kernel with qemu Date: Sat, 14 Nov 2020 23:38:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca 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: 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: Sat, 14 Nov 2020 23:38:12 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26876 --- Comment #7 from Simon Marchi --- (In reply to Tom Tromey from comment #6) > It looks like find_comp_unit and set_comp_unit have their tests reversed: >=20 > bfd *abfd =3D objfile->obfd; > if (gdb_bfd_requires_relocations (abfd)) > return dwarf2_frame_bfd_data.set (abfd, unit); > return dwarf2_frame_objfile_data.set (objfile, unit); >=20 > Seems like it should use the per-BFD when relocations are *not* required. Oh, interesting! When I swap that, I no longer get an ASan crash, but I get: loading vmlinux scanning for modules in /home/smarchi/build/linux loading @0xffffffffc011a000: /home/smarchi/build/linux/arch/x86/kvm/kvm-amd= .ko Python Exception Cannot access memory at address 0xffff868177dcbff0:=20 Error occurred in Python: Cannot access memory at address 0xffff868177dcbff0 I should be able to fix set_comp_unit/find_comp_unit in the commit that introduced those changes and bisect again to find when GDB starts giving th= is MemoryError... --=20 You are receiving this mail because: You are on the CC list for the bug.=