public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
@ 2022-07-30  8:08 vries at gcc dot gnu.org
  2022-07-30  8:08 ` [Bug tdep/29432] " vries at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2022-07-30  8:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

            Bug ID: 29432
           Summary: [gdb, tdep/s390x] Self test failed: self-test failed
                    at arm-tdep.c:14482 (selftest arm-record)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

The gdb-fedora-s390x buildbot fails, alternatively with checkout problems and
an actual failure.

For an example of the latter, see
https://builder.sourceware.org/buildbot/#/builders/75/builds/839 :
...
Ran 3640 unit tests, 1 failed
(gdb) PASS: gdb.gdb/unittest.exp: no executable loaded: maintenance selftest,
ran some tests
FAIL: gdb.gdb/unittest.exp: no executable loaded: maintenance selftest, failed
none
...

In more detail:
...
Running selftest arm-record.
Process record and replay target doesn't support syscall number -2036195
Process record does not support instruction 0x7f70ee1d at address 0x0.
Self test failed: self-test failed at ../../binutils-gdb/gdb/arm-tdep.c:14482
...

The failure is in the "ret == 0" selftest:
...
    static const uint16_t insns[] = {
      /* 1d ee 70 7f     mrc    15, 0, r7, cr13, cr0, {3} */
      0xee1d, 0x7f70,
    };

    enum bfd_endian endian = gdbarch_byte_order_for_code (arm_record.gdbarch);
    instruction_reader_thumb reader (endian, insns);
    int ret = decode_insn (reader, &arm_record, THUMB2_RECORD,
                           THUMB2_INSN_SIZE_BYTES);

    SELF_CHECK (ret == 0);
    SELF_CHECK (arm_record.mem_rec_count == 0);
    SELF_CHECK (arm_record.reg_rec_count == 1);
    SELF_CHECK (arm_record.arm_regs[0] == 7);
...

Note that the:
...
Process record does not support instruction 0x7f70ee1d at address 0x0.
...
message corresponds to the insns array.  Hm, process record seems to think that
it's one insn, while in fact there are two.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
@ 2022-07-30  8:08 ` vries at gcc dot gnu.org
  2022-07-30  9:26 ` vries at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2022-07-30  8:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
  2022-07-30  8:08 ` [Bug tdep/29432] " vries at gcc dot gnu.org
@ 2022-07-30  9:26 ` vries at gcc dot gnu.org
  2022-07-30 11:29 ` [Bug tdep/29432] [gdb, tdep/s390x/ppc64] " mark at klomp dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2022-07-30  9:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> Hm, process record seems to think
> that it's one insn, while in fact there are two.

Scrap that.  It's one insn, but:
...
    static const uint16_t insns[] = {
      /* 1d ee 70 7f     mrc    15, 0, r7, cr13, cr0, {3} */
      0xee1d, 0x7f70,
    };
...
written out as two half-words.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
  2022-07-30  8:08 ` [Bug tdep/29432] " vries at gcc dot gnu.org
  2022-07-30  9:26 ` vries at gcc dot gnu.org
@ 2022-07-30 11:29 ` mark at klomp dot org
  2022-08-03 11:56 ` mark at klomp dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mark at klomp dot org @ 2022-07-30 11:29 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[gdb, tdep/s390x] Self test |[gdb, tdep/s390x/ppc64]
                   |failed: self-test failed at |Self test failed: self-test
                   |arm-tdep.c:14482 (selftest  |failed at arm-tdep.c:14482
                   |arm-record)                 |(selftest arm-record)

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Same test fails on ppc64 (big endian)

Also see
https://sourceware.org/pipermail/gdb/2022-July/050215.html
and
https://sourceware.org/pipermail/gdb/2022-July/050217.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-07-30 11:29 ` [Bug tdep/29432] [gdb, tdep/s390x/ppc64] " mark at klomp dot org
@ 2022-08-03 11:56 ` mark at klomp dot org
  2022-08-03 11:58 ` luis.machado at arm dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mark at klomp dot org @ 2022-08-03 11:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis.machado at arm dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-08-03 11:56 ` mark at klomp dot org
@ 2022-08-03 11:58 ` luis.machado at arm dot com
  2022-08-03 11:58 ` luis.machado at arm dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2022-08-03 11:58 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

--- Comment #3 from Luis Machado <luis.machado at arm dot com> ---
This seems to be a problem with the arm instruction test and endianness
confusion. I'll try to come up with a fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-08-03 11:58 ` luis.machado at arm dot com
@ 2022-08-03 11:58 ` luis.machado at arm dot com
  2022-08-08 10:16 ` luis.machado at arm dot com
  2022-09-07 17:25 ` vries at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2022-08-03 11:58 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

--- Comment #4 from Luis Machado <luis.machado at arm dot com> ---
I don't think this has anything to do with ppc64 or s390x.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2022-08-03 11:58 ` luis.machado at arm dot com
@ 2022-08-08 10:16 ` luis.machado at arm dot com
  2022-09-07 17:25 ` vries at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: luis.machado at arm dot com @ 2022-08-08 10:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

--- Comment #5 from Luis Machado <luis.machado at arm dot com> ---
https://pi.simark.ca/gdb-patches/20220808101203.168954-1-luis.machado@arm.com/T/#u

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tdep/29432] [gdb, tdep/s390x/ppc64] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record)
  2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2022-08-08 10:16 ` luis.machado at arm dot com
@ 2022-09-07 17:25 ` vries at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2022-09-07 17:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29432

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |13.1
             Status|NEW                         |RESOLVED

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0833fb8f4bc8d8f369d0d76f604c248b4ad1de1d

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-09-07 17:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-30  8:08 [Bug tdep/29432] New: [gdb, tdep/s390x] Self test failed: self-test failed at arm-tdep.c:14482 (selftest arm-record) vries at gcc dot gnu.org
2022-07-30  8:08 ` [Bug tdep/29432] " vries at gcc dot gnu.org
2022-07-30  9:26 ` vries at gcc dot gnu.org
2022-07-30 11:29 ` [Bug tdep/29432] [gdb, tdep/s390x/ppc64] " mark at klomp dot org
2022-08-03 11:56 ` mark at klomp dot org
2022-08-03 11:58 ` luis.machado at arm dot com
2022-08-03 11:58 ` luis.machado at arm dot com
2022-08-08 10:16 ` luis.machado at arm dot com
2022-09-07 17:25 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).