[#6132] several gcc tests fail when testing through jtag

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6132] several gcc tests fail when testing through jtag

Submitted By: Vivi Li

Open Date

2010-07-20 04:24:31    

Priority:

Medium     Assignee:

Nobody

Board:

N/A     Silicon Revision:

Resolution:

Under Debugging     Fixed In Release:

N/A

Processor:

BF537     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Open     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: several gcc tests fail when testing through jtag

Details:

 

some gcc test fail when testing through jtag.

Not a regression bug. These failures are new for gcc4.3.

 

--

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O0

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O1

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O2

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -O0

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -O1

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -O2

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/fprintf-chk-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/printf-1.c execution,  -O0

FAIL: gcc.c-torture/execute/printf-1.c execution,  -O1

FAIL: gcc.c-torture/execute/printf-1.c execution,  -O2

FAIL: gcc.c-torture/execute/printf-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/printf-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/printf-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -O0

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -O1

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -O2

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/printf-chk-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -O0

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -O1

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -O2

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/vfprintf-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -O0

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -O1

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -O2

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/vfprintf-chk-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -O0

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -O1

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -O2

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/vprintf-1.c execution,  -Os

 

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -O0

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -O1

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -O2

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -O3 -fomit-frame-pointer

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -O3 -g

FAIL: gcc.c-torture/execute/vprintf-chk-1.c execution,  -Os

 

 

FAIL: gcc.c-torture/execute/980605-1.c execution,  -O0

FAIL: gcc.c-torture/execute/pr23135.c execution,  -O0

FAIL: gcc.c-torture/execute/pr23135.c execution,  -O1

 

FAIL: gcc.dg/pr37544.c execution test

FAIL: gcc.c-torture/execute/pr43220.c execution,  -O0

 

FAIL: gcc.dg/struct/wo_prof_array_through_pointer.c execution test

FAIL: gcc.dg/struct/wo_prof_escape_substr_pointer.c execution test

FAIL: gcc.dg/struct/wo_prof_escape_substr_value.c execution test

FAIL: gcc.dg/struct/wo_prof_malloc_size_var.c execution test

FAIL: gcc.dg/struct/wo_prof_two_strs.c execution test

--

 

 

Detailed log is attached. Bellow is example log:

--

delete breakpoints

Delete all breakpoints? (y or n) y

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) file /home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/fpri ntf-1.x0

Load new symbol table from "/home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/fprintf-1.x0"? (y or n) y

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/fprintf-1.x0...done.

(gdb) break _exit

Breakpoint 1271 at 0xffa060a0: file /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libgloss/libnosys/_exit.c, line 13.

(gdb) break abort

Breakpoint 1272 at 0xffa00510: file /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdlib/abort.c, line 62.

(gdb) target remote :2000

Remote debugging using :2000

0xffa01348 in _vfprintf_r (data=0xffb00fdc, fp=0x0, fmt0=<value optimized out>, ap=0xffa0011a) at /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c:1185

1185    /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c: No such file or directory.

        in /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c

(gdb) source /home/test/work/cruise/temp/regtest_build4.3/boards/gdb-init-comman ds

(gdb) load

Loading section .rodata, size 0x544 lma 0xff800000

Loading section .eh_frame, size 0x18c lma 0xff800544

Loading section .ctors, size 0x8 lma 0xff8006d0

Loading section .dtors, size 0x8 lma 0xff8006d8

Loading section .jcr, size 0x4 lma 0xff8006e0

Loading section .data, size 0x828 lma 0xff8006e4

Loading section .text, size 0x7f10 lma 0xffa00000

Loading section .init, size 0x12 lma 0xffa07f10

Loading section .fini, size 0xe lma 0xffa07f22

Start address 0xffa00000, load size 36412

Transfer rate: 153880 bits/sec, 3641 bytes/write.

(gdb) jump *_start

Line 79 is not in `_vfprintf_r'.  Jump anyway? (y or n) y

Continuing at 0xffa00000.

 

Breakpoint 1272, abort () at /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdlib/abort.c:62

62      /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdlib/abort.c: No such file or directory.

        in /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdlib/abort.c

(gdb) target exec

A program is being debugged already.  Kill it? (y or n) y

No executable file now.

(gdb) FAIL: gcc.c-torture/execute/fprintf-1.c execution,  -O0

--

 

 

--

delete breakpoints

Delete all breakpoints? (y or n) y

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) file /home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/9806 05-1.x0

Load new symbol table from "/home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/980605-1.x0"? (y or n) y

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/980605-1.x0...done.

(gdb) break _exit

Breakpoint 6731 at 0xffa05eb4: file /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libgloss/libnosys/_exit.c, line 13.

(gdb) break abort

Breakpoint 6732 at 0xffa0046c: file /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdlib/abort.c, line 62.

(gdb) target remote :2000

Remote debugging using :2000

0xffa01350 in _vfprintf_r (data=0x3ff00000, fp=0x0, fmt0=<value optimized out>, ap=0xff800894) at /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c:780

780     /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c: No such file or directory.

        in /home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/vfprintf.c

(gdb) source /home/test/work/cruise/temp/regtest_build4.3/boards/gdb-init-comman ds

(gdb) load

Loading section .rodata, size 0x520 lma 0xff800000

Loading section .eh_frame, size 0x1ac lma 0xff800520

Loading section .ctors, size 0x8 lma 0xff8006cc

Loading section .dtors, size 0x8 lma 0xff8006d4

Loading section .jcr, size 0x4 lma 0xff8006dc

Loading section .data, size 0x82c lma 0xff8006e0

Loading section .text, size 0x7d24 lma 0xffa00000

Loading section .init, size 0x12 lma 0xffa07d24

Loading section .fini, size 0xe lma 0xffa07d36

Start address 0xffa00000, load size 35920

Transfer rate: 152769 bits/sec, 3592 bytes/write.

(gdb) jump *_start

Line 79 is not in `_vfprintf_r'.  Jump anyway? (y or n) y

Continuing at 0xffa00000.

target exec

FAIL: gcc.c-torture/execute/980605-1.c execution,  -O0

--

 

Follow-ups

 

--- Stuart Henderson                                         2010-10-13 06:37:48

almost all of these tests rely on functions like _write which aren't implemented

on bfin-elf.  presumably all we can do is xfail these for now.

 

the main exception being gcc.c-torture/execute/pr43220.c which looks more

interesting, and i'll investigate.

 

--- Mike Frysinger                                           2010-10-13 09:34:55

i dont think we want to go through and XFAIL every single test that uses stdio.

in the past, we had talked a bit about making a set of funcs that could be used

over jtag via emuexcpt.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

gcc.log.tar.gz    application/x-gzip    1472932    Vivi Li

Attachments

Outcomes