From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5584394CC1F; Thu, 20 May 2021 13:21:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5584394CC1F From: "andrew.burgess at embecosm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/27891] New: maintenance selftest fail when an executable is loaded Date: Thu, 20 May 2021 13:21:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.burgess at embecosm dot com 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: 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: Thu, 20 May 2021 13:21:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27891 Bug ID: 27891 Summary: maintenance selftest fail when an executable is loaded Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: andrew.burgess at embecosm dot com Target Milestone: --- I built GDB with --enable-targets=3Dall, and am running on an x86-64 GNU/Li= nux host. If I start GDB and load an executable (for example GDB itself), and = then run 'maint selftest', I see 1 failure. In contrast, if I start GDB and don't load an executable, I see 0 failures. Here's the error(s) that I see: Running selftest print_one_insn. Self test failed: arch arm: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv2: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv2a: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv3: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv3m: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv4: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv4t: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv5: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv5t: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv5te: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch xscale: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch ep9312: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch iwmmxt: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch iwmmxt2: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv5tej: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6kz: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6t2: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6k: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv7: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6-m: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv6s-m: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv7e-m: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv8-a: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv8-r: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv8-m.base: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv8-m.main: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch armv8.1-m.main: self-test failed at ../../src/gdb/disasm-selftests.c:165 Self test failed: arch arm_any: self-test failed at ../../src/gdb/disasm-selftests.c:165 warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default cris:common_v10_v32 setti= ngs. Self test failed: self-test failed at ../../src/gdb/selftest-arch.c:85 I had a quick look and it appears that the ARM disassembler gets into a sta= te where it thinks it is disassembling in thumb mode. When there is no execut= able loaded this is not the case. --=20 You are receiving this mail because: You are on the CC list for the bug.=