[#6076] elf-jtag test failed and hang in gdb.gdbtk/srcwin.exp on bf561-ezkit

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

[#6076] elf-jtag test failed and hang in gdb.gdbtk/srcwin.exp on bf561-ezkit

Submitted By: Vivi Li

Open Date

2010-06-25 00:20:48     Close Date

2010-06-29 03:59:30

Priority:

Medium     Assignee:

Vivi Li

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

2010R1

Processor:

BF561     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2010R1

Is this bug repeatable?:

N/A     

Summary: elf-jtag test failed and hang in gdb.gdbtk/srcwin.exp on bf561-ezkit

Details:

 

elf-jtag test failed and hang in gdb.gdbtk/srcwin.exp on bf561-ezkit.

It failed since srcwin-2.8 and hang after srcwin-2.10 is done.

On bf537-stamp, there is no such problem.

 

It's not a regression bug and this test has not been test before.

 

Bellow is the log:

--

Running /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/insight-support.exp ...

testcase /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/insight-support.exp completed in 0 seconds

Running /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/srcwin.exp ...

spawn Xvfb :24829 -ac

Executing on host: bfin-elf-gcc /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/list0.c /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/list1.c   -mcpu=bf537-0.2   -g  -lm   -o /home/test/work/cruise/temp/regtest_build4.3/gdb_build/testsuite/gdb.gdbtk/list    (timeout = 300)

spawn bfin-elf-gcc /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/list0.c /home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/list1.c -mcpu=bf537-0.2 -g -lm -o /home/test/work/cruise/temp/regtest_build4.3/gdb_build/testsuite/gdb.gdbtk/list

/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(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(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(writer.o): In function `_write_r':

/home/test/work/cruise/checkouts/toolchain/gcc-4.3/newlib/libc/reent/writer.c:58: 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(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(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(writer.o): In function `_write_r':

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

 

(...)

 

==== srcwin-2.8 step while browsing

==== Contents of test case:

 

  gdb_immediate "next" 1

  set r 0

  set name [$statbar.name get]

  set func [$statbar.func get]

 

  # check contents of name and function comboboxes

  if {$name != "list0.c"} {set r -1}

  if {$func != "main"} {set r -2}

 

  # check that correct file is displayed

  set twin [$stw test_get twin]

  set a [$twin get 1.0 end]

  if {[string compare $file1(source) $a]} {set r -3}

 

  # check for PC_TAG on correct line

  if {$r == 0} {

    if {![catch {set z [$twin dump -tag 1.0 end]}]} {

      foreach {k v i} $z {

        if {$k == "tagon"} {

          if {$v == "PC_TAG"} {

            if {$i == "11.2"} {

              incr r

            } else {

              incr r 5

            }

          }

          if {$v == "STACK_TAG"} {incr r 10}

          if {$v == "BROWSE_TAG"} {incr r 100}

        }

      }

    } else {

      set r -4

    }

  }

  set r

 

==== Result was:

-3

---- Result should have been:

1

---- srcwin-2.8 FAILED

 

 

==== srcwin-2.9 next

==== Contents of test case:

 

  gdb_immediate "next" 1

  set r 0

  set name [$statbar.name get]

  set func [$statbar.func get]

 

  # check contents of name and function comboboxes

  if {$name != "list0.c"} {set r -1}

  if {$func != "main"} {set r -2}

 

  # check that correct file is displayed

  set twin [$stw test_get twin]

  set a [$twin get 1.0 end]

  if {[string compare $file1(source) $a]} {set r -3}

 

  # check for PC_TAG on correct line

  if {$r == 0} {

    if {![catch {set z [$twin dump -tag 1.0 end]}]} {

      foreach {k v i} $z {

        if {$k == "tagon"} {

          if {$v == "PC_TAG"} {

            if {$i == "12.2"} {

              incr r

            } else {

              incr r 5

            }

          }

          if {$v == "STACK_TAG"} {incr r 10}

          if {$v == "BROWSE_TAG"} {incr r 100}

        }

      }

    } else {

      set r -4

    }

  }

  set r

 

==== Result was:

-3

---- Result should have been:

1

---- srcwin-2.9 FAILED

 

 

==== srcwin-2.10 step

==== Contents of test case:

 

  gdb_immediate "step" 1

  set r 0

  set name [$statbar.name get]

  set func [$statbar.func get]

 

  # check contents of name and function comboboxes

  if {$name != "list0.h"} {set r -1}

  if {$func != "foo"} {set r -2}

 

  # check that a new file is displayed

  set twin [$stw test_get twin]

  set file3(source) [$twin get 1.0 end]

  if {![string compare $file1(source) $file3(source)]} {set r -3}

  # check for PC_TAG on correct line

  if {$r == 0} {

    if {![catch {set z [$twin dump -tag 1.0 end]}]} {

      foreach {k v i} $z {

        if {$k == "tagon"} {

          if {$v == "PC_TAG"} {

            if {$i == "9.2"} {

              incr r

            } else {

              incr r 5

            }

          }

          if {$v == "STACK_TAG"} {incr r 10}

          if {$v == "BROWSE_TAG"} {incr r 100}

        }

      }

    } else {

      set r -4

    }

  }

  set r

 

==== Result was:

-2

---- Result should have been:

1

---- srcwin-2.10 FAILED

--

 

Bellow is the part of 'ps' result:

--

23991 ?        S      0:00 /usr/bin/expect ./start_gdbproxy.exp /home/test/work/cruise/temp/bfin-elf/bin/

23992 pts/1    Ss     0:00 su

23995 pts/1    S      0:00 bash

24009 pts/1    S+     0:29 ./bfin-gdbproxy bfin

24536 ?        S      0:00 /bin/sh ./toolchain-regtest -s /home/test/work/cruise/checkouts/toolchain -o /home/test/work/cruise/temp/bfin -b /home/test/work/cruise/temp/regtest_build4.3 -t elf-jtag -a -L

24824 ?        S      0:00 /bin/sh ./toolchain-regtest -s /home/test/work/cruise/checkouts/toolchain -o /home/test/work/cruise/temp/bfin -b /home/test/work/cruise/temp/regtest_build4.3 -t elf-jtag -a -L

24829 ?        S      0:21 /usr/bin/expect -- /usr/share/dejagnu/runtest.exp --tool gdb -all

29208 pts/6    Ss+    0:28 Xvfb :24829 -ac

29221 ?        S      0:02 bfin-elf-insight -nx -q --tclcommand=/home/test/work/cruise/checkouts/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/srcwin.test

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-06-25 00:22:16

are you sure it's a bf561-ezkit specific bug and not something specific to the

test machine ?  like i mentioned in [#6030], you really need to get a screen

shot of the X session to figure out the real error, and gdbtk tests are often

fragile.

 

--- Vivi Li                                                  2010-06-25 07:11:42

I attached the screen shot of the X session.

 

--- Mike Frysinger                                           2010-06-25 13:11:06

err, your log says it's compiling with -mcpu=bf537 but you're testing on a

bf561-ezkit ?  i dont think that'll work with jtag.

 

--- Vivi Li                                                  2010-06-27 23:04:49

Yeah, I can see that too. That's strange because I've already set BOARD_CONFIG

to BF561-EZKIT in local script toolchain_test.

I'll look into it. Assign to me.

 

--- Vivi Li                                                  2010-06-29 03:56:39

File toolchain/buildscript/boards/bfin-elf.exp.1 also needs to be modified for

different board config.

Fix it in regression machine.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

gdb.tar.bz2    application/x-bzip2    118640    Vivi Li

snap.png    image/png    18178    Vivi Li

Attachments

Outcomes