[#6131] some g++ test fail when testing through jtag

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

[#6131] some g++ test fail when testing through jtag

Submitted By: Vivi Li

Open Date

2010-07-19 06:11:29    

Priority:

Medium     Assignee:

Nobody

Board:

N/A     Silicon Revision:

Resolution:

Under Debugging     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Open     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: some g++ test fail when testing through jtag

Details:

 

Following g++ tests fail when testing through jtag.

Not a regression bug.

 

--

FAIL: g++.dg/opt/pr30590.C execution test

FAIL: g++.dg/opt/pr36449.C execution test

FAIL: g++.dg/opt/thunk1.C execution test

--

 

Bellow is pr30590.C execution test:

--

Executing on host: bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/pr30590.C   -fmessage-length=0  -O  -fno-show-column  -mcpu=bf537-0.2     -lm   -o ./pr30590.exe    (timeout = 300)

spawn bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/pr30590.C -fmessage-length=0 -O -fno-show-column -mcpu=bf537-0.2 -lm -o ./pr30590.exe

PASS: g++.dg/opt/pr30590.C (test for excess errors)

delete breakpoints

Delete all breakpoints? (y or n) y

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) file ./pr30590.exe

Load new symbol table from "/home/test/work/cruise/temp/regtest_build4.3/g++_build/testsuite/pr30590.exe"? (y or n) y

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/g++_build/testsuite/pr30590.exe...done.

(gdb) break _exit

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

(gdb) break abort

Function "abort" not defined.

(gdb) target remote :2000

Remote debugging using :2000

0xffa09c10 in ?? ()

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

(gdb) load

Loading section .rodata, size 0x8 lma 0xff800000

Loading section .eh_frame, size 0x4 lma 0xff800008

Loading section .ctors, size 0x8 lma 0xff80000c

Loading section .dtors, size 0x8 lma 0xff800014

Loading section .jcr, size 0x4 lma 0xff80001c

Loading section .data, size 0x818 lma 0xff800020

Loading section .text, size 0xfb4 lma 0xffa00000

Loading section .init, size 0x12 lma 0xffa00fb4

Loading section .fini, size 0xe lma 0xffa00fc6

Start address 0xffa00000, load size 6156

Transfer rate: 143162 bits/sec, 684 bytes/write.

(gdb) jump *_start

Continuing at 0xffa00000.

target exec

 

FAIL: g++.dg/opt/pr30590.C execution test

--

 

Bellow is pr36449.C execution test:

--

Executing on host: bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/pr36449.C   -fmessage-length=0  -O3  -fno-show-column  -mcpu=bf537-0.2     -lm   -o ./pr36449.exe    (timeout = 300)

spawn bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/pr36449.C -fmessage-length=0 -O3 -fno-show-column -mcpu=bf537-0.2 -lm -o ./pr36449.exe

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(closer.o): In function `_close_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/closer.c:53: warning: _close is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(fstatr.o): In function `_fstat_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_getpid_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(makebuf.o): In function `__smakebuf':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/makebuf.c:96: warning: isatty is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_kill_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:61: warning: _kill is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lseekr.o): In function `_lseek_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/lseekr.c:58: warning: _lseek is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(readr.o): In function `_read_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/readr.c:58: warning: _read is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(syswrite.o): In function `write':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/syscalls/syswrite.c:15: warning: _write is not implemented and will always fail

output is:

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(closer.o): In function `_close_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/closer.c:53: warning: _close is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(fstatr.o): In function `_fstat_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_getpid_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(makebuf.o): In function `__smakebuf':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/makebuf.c:96: warning: isatty is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_kill_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:61: warning: _kill is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lseekr.o): In function `_lseek_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/lseekr.c:58: warning: _lseek is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(readr.o): In function `_read_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/readr.c:58: warning: _read is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(syswrite.o): In function `write':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/syscalls/syswrite.c:15: warning: _write is not implemented and will always fail

 

PASS: g++.dg/opt/pr36449.C (test for excess errors)

 

 

spawn bfin-elf-gdb -nw -nx

^[[?1034hGNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-elf".

(gdb) set height 0

(gdb) set width 0

(gdb) delete breakpoints

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) file ./pr36449.exe

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/g++_build/testsuite/pr36449.exe...done.

(gdb) break _exit

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

(gdb) break abort

Breakpoint 2 at 0xffa06f5c: 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

_unknown_exception_occurred () at /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libgloss/bfin/basiccrt.S:420

420     /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libgloss/bfin/basiccrt.S: No such file or directory.

        in /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libgloss/bfin/basiccrt.S

Current language:  auto; currently asm

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

(gdb) load

Loading section .rodata, size 0x1a24 lma 0xff800000

Loading section .eh_frame, size 0x9b0 lma 0xff801a24

Loading section .gcc_except_table, size 0xe4 lma 0xff8023d4

Loading section .ctors, size 0xc lma 0xff8024b8

Loading section .dtors, size 0x8 lma 0xff8024c4

Loading section .jcr, size 0x4 lma 0xff8024cc

Loading section .data, size 0x820 lma 0xff8024d0

Loading section .text, size 0x95e0 lma 0xffa00000

Loading section .init, size 0x12 lma 0xffa095e0

Loading section .fini, size 0xe lma 0xffa095f2

Start address 0xffa00000, load size 49904

Transfer rate: 175795 bits/sec, 4158 bytes/write.

(gdb) jump *_start

Continuing at 0xffa00000.

 

Breakpoint 2, 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

Current language:  auto; currently c

(gdb) target exec

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

No executable file now.

(gdb) FAIL: g++.dg/opt/pr36449.C execution test

--

 

Bellow is thunk1.C execution test:

--

Executing on host: bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/thunk1.C   -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long  -fno-show-column  -mcpu=bf537-0.2     -lm   -o ./thunk1.exe    (timeout = 300)

spawn bfin-elf-c++ /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/g++.dg/opt/thunk1.C -fmessage-length=0 -ansi -pedantic-errors -Wno-long-long -fno-show-column -mcpu=bf537-0.2 -lm -o ./thunk1.exe

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(closer.o): In function `_close_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/closer.c:53: warning: _close is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(fstatr.o): In function `_fstat_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_getpid_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(makebuf.o): In function `__smakebuf':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/makebuf.c:96: warning: isatty is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_kill_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:61: warning: _kill is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lseekr.o): In function `_lseek_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/lseekr.c:58: warning: _lseek is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(readr.o): In function `_read_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/readr.c:58: warning: _read is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(syswrite.o): In function `write':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/syscalls/syswrite.c:15: warning: _write is not implemented and will always fail

output is:

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(closer.o): In function `_close_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/closer.c:53: warning: _close is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(fstatr.o): In function `_fstat_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_getpid_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(makebuf.o): In function `__smakebuf':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/stdio/makebuf.c:96: warning: isatty is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(signalr.o): In function `_kill_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/signalr.c:61: warning: _kill is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(lseekr.o): In function `_lseek_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/lseekr.c:58: warning: _lseek is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(readr.o): In function `_read_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/readr.c:58: warning: _read is not implemented and will always fail

/home/test/work/cruise/temp/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/libc.a(syswrite.o): In function `write':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/syscalls/syswrite.c:15: warning: _write is not implemented and will always fail

 

PASS: g++.dg/opt/thunk1.C (test for excess errors)

 

 

delete breakpoints

Delete all breakpoints? (y or n) y

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) file ./thunk1.exe

Load new symbol table from "/home/test/work/cruise/temp/regtest_build4.3/g++_build/testsuite/thunk1.exe"? (y or n) y

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/g++_build/testsuite/thunk1.exe...done.

(gdb) break _exit

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

(gdb) break abort

Breakpoint 25 at 0xffa07484: 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

0xffa00fa4 in __cxxabiv1::__vmi_class_type_info::__do_find_public_src (this=<value optimized out>, src2dst=-6291314, obj_ptr=0x0, src_type=0x0, src_ptr=0x0) at /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/libsupc++/vmi_class_type_info.cc:64

64                                    (src2dst, base, src_type, src_ptr);

Current language:  auto; currently c++

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

(gdb) load

Loading section .rodata, size 0x1ab0 lma 0xff800000

Loading section .eh_frame, size 0xa48 lma 0xff801ab0

Loading section .gcc_except_table, size 0xb8 lma 0xff8024f8

Loading section .ctors, size 0xc lma 0xff8025b0

Loading section .dtors, size 0x8 lma 0xff8025bc

Loading section .jcr, size 0x4 lma 0xff8025c4

Loading section .data, size 0x820 lma 0xff8025c8

Loading section .text, size 0x9b08 lma 0xffa00000

Loading section .init, size 0x12 lma 0xffa09b08

Loading section .fini, size 0xe lma 0xffa09b1a

Start address 0xffa00000, load size 51472

Transfer rate: 176123 bits/sec, 4289 bytes/write.

(gdb) jump *_start

Line 79 is not in `__cxxabiv1::__vmi_class_type_info::__do_find_public_src(long, void const*, __cxxabiv1::__class_type_info const*, void const*) const'.  Jump anyway? (y or n) y

Continuing at 0xffa00000.

target exec

 

FAIL: g++.dg/opt/thunk1.C execution test

--

 

Follow-ups

 

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

this looks similar to 6132, where the tests rely on functions not implemented on

bfin-elf.  i'll confirm each one, and then set them to xfail so the logs are

cleaner for testing.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes