[RTEMS Project] #4689: mips/jmr3904 Massive Number of Test Failures
RTEMS trac
trac at rtems.org
Mon Aug 1 07:57:51 UTC 2022
#4689: mips/jmr3904 Massive Number of Test Failures
---------------------------+---------------------
Reporter: Joel Sherrill | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: arch/mips | Version: 6
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
---------------------------+---------------------
Comment (by Sebastian Huber):
This looks like a GDB or other tool issue. Maybe a sign extension bug:
{{{
objdump -h build/mips/jmr3904/testsuites/samples/ticker.exe
build/mips/jmr3904/testsuites/samples/ticker.exe: file format
elf32-tradbigmips
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000115a0 88000000 88000000 00001000 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rtemsroset 00000070 880115a0 880115a0 000125a0 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .init 00000048 88011610 88011610 00012610 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
3 .fini 00000030 88011658 88011658 00012658 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .ctors 00000008 88011688 88011688 00012688 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .dtors 00000008 88011690 88011690 00012690 2**2
CONTENTS, ALLOC, LOAD, DATA
6 .rdata 00002030 880116a0 880116a0 000126a0 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .MIPS.abiflags 00000018 880136d0 880136d0 000146d0 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA,
LINK_ONCE_SAME_SIZE
8 .data 000005c0 880136e8 880136e8 000146e8 2**3
CONTENTS, ALLOC, LOAD, DATA
9 .bss 00001410 88013cb0 88013cb0 00014ca8 2**4
ALLOC
10 .noinit 00001310 880150c0 880150c0 00014ca8 2**3
ALLOC
11 .rtemsstack 00004000 880163d0 880163d0 00014ca8 2**4
ALLOC
12 .debug_aranges 00002958 00000000 00000000 00014ca8 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
13 .debug_info 00109cb1 00000000 00000000 00017600 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
14 .debug_abbrev 00023397 00000000 00000000 001212b1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
15 .debug_line 0003dc56 00000000 00000000 00144648 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
16 .debug_frame 000048f4 00000000 00000000 001822a0 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
17 .debug_str 0001160c 00000000 00000000 00186b94 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
18 .gnu.attributes 00000010 00000000 00000000 001981a0 2**0
CONTENTS, READONLY
19 .comment 00000063 00000000 00000000 001981b0 2**0
CONTENTS, READONLY
20 .debug_line_str 000001be 00000000 00000000 00198213 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
21 .debug_loclists 00022d89 00000000 00000000 001983d1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
22 .debug_rnglists 0000605d 00000000 00000000 001bb15a 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
~/src/rtems (master) > /opt/rtems/6/bin/mipstx39-rtems6-gdb
build/mips/jmr3904/testsuites/samples/ticker.exe
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu
--target=mipstx39-rtems6".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/mips/jmr3904/testsuites/samples/ticker.exe...
(gdb) tar sim
Connected to the simulator.
(gdb) load
Loading section .text, size 0x115a0 lma ffffffff88000000
Loading section .rtemsroset, size 0x70 lma ffffffff880115a0
Loading section .init, size 0x48 lma ffffffff88011610
Loading section .fini, size 0x30 lma ffffffff88011658
Loading section .ctors, size 0x8 lma ffffffff88011688
Loading section .dtors, size 0x8 lma ffffffff88011690
Loading section .rdata, size 0x2030 lma ffffffff880116a0
Loading section .MIPS.abiflags, size 0x18 lma ffffffff880136d0
Loading section .data, size 0x5c0 lma ffffffff880136e8
Start address ffffffff88000004
Transfer rate: 648448 bits in <1 sec.
(gdb) r
Starting program:
/tmp/sh/b-rtems/mips/jmr3904/testsuites/samples/ticker.exe
mips-core: 4 byte read to unmapped address 0xffffffff88000004 at
0xffffffff88000004
Program received signal SIGBUS, Bus error.
_start () at
/home/EB/sebastian_h/src/rtems/bsps/mips/jmr3904/start/start.S:57
57 bal $LF1
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4689#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list