[#6969] libstdc++ ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test fails to run on uclibc with fdpic kernel

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

[#6969] libstdc++ ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test fails to run on uclibc with fdpic kernel

Submitted By: Mingquan Pan

Open Date

2012-02-15 22:17:44     Close Date

2013-07-04 21:15:58

Priority:

Medium     Assignee:

Mingquan Pan

Stuart Henderson

Board:

EZ-Kit Lite     Silicon Revision:

Resolution:

Not reproducible     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

2012-beta2     kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: libstdc++ ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test fails to run on uclibc with fdpic kernel

Details:

 

ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test fails to run on uclibc with fdpic kernel, while it can pass with uclibc with flat kernel.

 

failed:

 

test@adsl:~/temp/regtest_build2012_Feb_16_11_06> bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0 -DLOCALEDIR="." -I/home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/util /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc libstdc++_build/testsuite/libtestc++.a -Wl,-elf2flt=-s80000 -lm -mcpu=bf609-0.0 -o ./12948-1.exe

test@adsl:~/temp/regtest_build2012_Feb_16_11_06> ls

12948-1.exe  12948-1.exe.gdb  boards  libstdc++_build  logs  tests

test@adsl:~/temp/regtest_build2012_Feb_16_11_06> rcp 12948-1.exe root@10.100.4.50:/

test@adsl:~/temp/regtest_build2012_Feb_16_11_06>

 

On target board:

root:/> ls

12948-1.exe  etc          lib          root         tmp

bin          home         mnt          sbin         usr

dev          init         proc         sys          var

root:/> ./12948-1.exe

SEGV

root:/> version

kernel:    Linux release 3.2.0-ADI-2012R1-pre-00439-gd8167d4-dirty, build #5 Wed Feb 15 17:45:35 CST 2012

toolchain: bfin-linux-uclibc-gcc --sysroot=/home/test/workspace/src/kernel/output/host/usr/bfin-unknown-linux-uclibc/sysroot release gcc version 4.3.5 (ADI-BF60x_2012R1-BETA2)

user-dist: release git-f85d3fe, build #1 Wed Feb 15 16:59:12 CST 2012

root:/>

 

while pass log:

 

Executing on host: bfin-linux-uclibc-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0  -DLOCALEDIR="." -I/home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/util /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc     ./libtestc++.a  -lm  -mcpu=bf609-0.0  -o ./12948-1.exe    (timeout = 600)

spawn bfin-linux-uclibc-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0 -DLOCALEDIR="." -I/home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/util /home/test/work/cruise/checkouts/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc ./libtestc++.a -lm -mcpu=bf609-0.0 -o ./12948-1.exe^M

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)

Executing on bfin-linux-uclibc: /tmp/12948-1.exe.18943    (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executing on bfin-linux-uclibc: rm -f  /tmp/12948-1.exe.18943    (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executed ./12948-1.exe, status 0

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

extra_tool_flags are:

 

pass flat kernel version:

 

root:/> version

kernel:    Linux release 3.2.0-ADI-2012R1-pre-00439-gd8167d4-dirty, build #2 Wed Feb 8 18:07:04 CST 2012

toolchain: bfin-uclinux-gcc --sysroot=/home/test/work/cruise/checkouts/buildroot/output/host/usr/bfin-unknown-linux-uclibc/sysroot release gcc version 4.3.5 (ADI-BF60x_2012R1-BETA2)

user-dist: release git-f85d3fe, build #1 Wed Feb 8 17:48:39 CST 2012

 

This is happening to some other cases.

 

-FAIL: ext/stdio_sync_filebuf/char/12048-1.cc execution test

+PASS: ext/stdio_sync_filebuf/char/12048-1.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-2.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/char/12048-2.cc execution test

+PASS: ext/stdio_sync_filebuf/char/12048-2.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-3.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/char/12048-3.cc execution test

+PASS: ext/stdio_sync_filebuf/char/12048-3.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-4.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/char/12048-4.cc execution test

+PASS: ext/stdio_sync_filebuf/char/12048-4.cc execution test

PASS: ext/stdio_sync_filebuf/char/35209.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/1.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/1.cc execution test

UNSUPPORTED: ext/stdio_sync_filebuf/wchar_t/12077.cc

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

+PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-2.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/wchar_t/12948-2.cc execution test

+PASS: ext/stdio_sync_filebuf/wchar_t/12948-2.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-3.cc (test for excess errors)

-FAIL: ext/stdio_sync_filebuf/wchar_t/12948-3.cc execution test

+PASS: ext/stdio_sync_filebuf/wchar_t/12948-3.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-4.cc (test for excess errors)

 

The failed case is attached.

 

 

Follow-ups

 

--- Stuart Henderson                                         2012-03-12 12:29:18

What's the error you're getting?

 

remember the linux image you use has to have been built with a toolchain with

wide character support in order to support this test.  it passes for me.

 

--- Stuart Henderson                                         2012-03-29 12:09:31

Is this still an issue?

 

--- Mingquan Pan                                             2012-05-15 02:11:52

These failure doesn't appear now when testing with 2012r1-BETA1 toolchain and

all passes.

 

PASS: ext/stdio_sync_filebuf/char/12048-1.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/char/12048-1.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-2.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/char/12048-2.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-3.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/char/12048-3.cc execution test

PASS: ext/stdio_sync_filebuf/char/12048-4.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/char/12048-4.cc execution test

PASS: ext/stdio_sync_filebuf/char/35209.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/1.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/1.cc execution test

UNSUPPORTED: ext/stdio_sync_filebuf/wchar_t/12077.cc

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-2.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/12948-2.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-3.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/12948-3.cc execution test

PASS: ext/stdio_sync_filebuf/wchar_t/12948-4.cc (test for excess errors)

PASS: ext/stdio_sync_filebuf/wchar_t/12948-4.cc execution test

 

Executing on host: bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc

    ./libtestc++.a -Wl,-elf2flt=-s80000  -lm  -mcpu=bf609-0.0  -o ./12048-4.exe

  (timeout = 600)

spawn bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/12048-4.cc

./libtestc++.a -Wl,-elf2flt=-s80000 -lm -mcpu=bf609-0.0 -o ./12048-4.exe^M

PASS: ext/stdio_sync_filebuf/char/12048-4.cc (test for excess errors)

Executing on bfin-uclinux: /tmp/12048-4.exe.29453 {} {}   (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executing on bfin-uclinux: rm -f  /tmp/12048-4.exe.29453    (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executed ./12048-4.exe, status 0

PASS: ext/stdio_sync_filebuf/char/12048-4.cc execution test

 

So close.

 

--- Mingquan Pan                                             2012-05-24 03:30:03

Unfortunately I see this issue again in 2012R1-beta1 toolchain testing. It looks

happens sometimes and somewhat relates to the rcp issue of Dejagnu because when

these cases fails I saw another case fails in the same log for Download to

target board fails. And this download issue happens to ramdon cases in libstdc++

uclibc testing, like:

 

Executing on host: bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/backward/strstream_members.cc

  -Wno-deprecated ./libtestc++.a -Wl,-elf2flt=-s80000  -lm  -mcpu=bf609-0.0  -o

./strstream_members.exe    (timeout = 600)

spawn bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/backward/strstream_members.cc

-Wno-deprecated ./libtestc++.a -Wl,-elf2flt=-s80000 -lm -mcpu=bf609-0.0 -o

./strstream_members.exe^M

PASS: backward/strstream_members.cc (test for excess errors)

Download of ./strstream_members.exe to bfin-uclinux failed.

UNRESOLVED: backward/strstream_members.cc execution test

extra_tool_flags are:

 

or:Executing on host: bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT

-fmessage-length=0  -DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/abi/demangle/regression/old.cc

    ./libtestc++.a -Wl,-elf2flt=-s80000  -lm  -mcpu=bf609-0.0  -o ./old.exe  

(timeout = 600)

spawn bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/abi/demangle/regression/old.cc

./libtestc++.a -Wl,-elf2flt=-s80000 -lm -mcpu=bf609-0.0 -o ./old.exe^M

PASS: abi/demangle/regression/old.cc (test for excess errors)

Download of ./old.exe to bfin-uclinux failed.

UNRESOLVED: abi/demangle/regression/old.cc execution test

extra_tool_flags are:

-x c

compiling and executing as C, not C++

 

 

And the original cases still fails like:Executing on host: bfin-uclinux-g++ -g

-O2 -D_GLIBCXX_ASSERT -fmessage-length=0  -DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc

    ./libtestc++.a -Wl,-elf2flt=-s80000  -lm  -mcpu=bf609-0.0  -o ./12948-1.exe

  (timeout = 600)

spawn bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc

./libtestc++.a -Wl,-elf2flt=-s80000 -lm -mcpu=bf609-0.0 -o ./12948-1.exe^M

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)

Executing on bfin-uclinux: /tmp/12948-1.exe.30405 {} {}   (timeout = 300)

spawn [open ...]^M

SEGV

XYZ139ZYX

Executing on bfin-uclinux: rm -f  /tmp/12948-1.exe.30405    (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executed ./12948-1.exe, status 1

SEGV

FAIL: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

extra_tool_flags are:

 

 

--- Stuart Henderson                                         2012-05-28 07:48:05

i've never been able to reproduce this issue.  is it specific to a particular

test machine?  or have you seen it on a few?

 

--- Mingquan Pan                                             2012-05-30 03:06:57

I see this on two test machines which runs test against bf609 ezkit.

It happens when running test with toolchain-regtest -s

/home/test/workspace/src/toolchain -o /opt/uClinux/bfin -b

/home/test/temp/regtest_build4.3 -t uclinux -T 10.100.4.50 -a -L.

 

From the log of the target console, there is dumping info about testing these

cases:(which means the target board maybe abnormal before 12048 is executed,

which makes this case fail.)

 

11138 total pagecache pages

32512 pages RAM

936 pages reserved

0 pages shared

16935 pages non-shared

Allocation of length 33554432 from process 16355 (28277-4.exe.170) failed

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

active_anon:0 inactive_anon:0 isolated_anon:0

active_file:0 inactive_file:0 isolated_file:0

unevictable:11138 dirty:0 writeback:0 unstable:0

free:14607 slab_reclaimable:231 slab_unreclaimable:549

mapped:0 shmem:0 pagetables:0 bounce:0

DMA free:58428kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:44552kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:924kB

slab_unreclaimable:2196kB kernel_stack:272kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:114 all_unreclaimable? yes

lowmem_reserve[]: 0 0 0

DMA: 1*4kB 1*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 5*1024kB 4*2048kB

1*4096kB 1*8192kB 2*16384kB 0*32768kB = 58428kB

11138 total pagecache pages

1.exe.17050: page allocation failure: order:13, mode:0xd0

Mem-Info:

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

active_anon:0 inactive_anon:0 isolated_anon:0

active_file:0 inactive_file:0 isolated_file:0

unevictable:11177 dirty:0 writeback:0 unstable:0

free:14571 slab_reclaimable:232 slab_unreclaimable:542

mapped:0 shmem:0 pagetables:0 bounce:0

DMA free:58284kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:44708kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:928kB

slab_unreclaimable:2168kB kernel_stack:272kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:151 all_unreclaimable? yes

lowmem_reserve[]: 0 0 0

DMA: 7*4kB 0*8kB 1*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 4*1024kB 4*2048kB

1*4096kB 1*8192kB 2*16384kB 0*32768kB = 58284kB

11177 total pagecache pages

32512 pages RAM

936 pages reserved

0 pages shared

16971 pages non-shared

Allocation of length 33554432 from process 17726 (1.exe.17050) failed

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

active_anon:0 inactive_anon:0 isolated_anon:0

active_file:0 inactive_file:0 isolated_file:0

unevictable:11177 dirty:0 writeback:0 unstable:0

free:14571 slab_reclaimable:232 slab_unreclaimable:542

mapped:0 shmem:0 pagetables:0 bounce:0

DMA free:58284kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:44708kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:928kB

slab_unreclaimable:2168kB kernel_stack:272kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:151 all_unreclaimable? yes

lowmem_reserve[]: 0 0 0

DMA: 7*4kB 0*8kB 1*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 4*1024kB 4*2048kB

1*4096kB 1*8192kB 2*16384kB 0*32768kB = 58284kB

11177 total pagecache pages

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

<6>dwmac_dma_interrupt: unexpected status 08660000

 

 

U-Boot 2011.09-00233-ga8352c9-dirty (ADI-2012R1-pre) (Apr 05 2012 - 17:37:51)

 

CPU:   ADSP bf609-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF609 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 25 MHz, Core: 500 MHz, System0: 100 MHz, System1: 100 MHz, Dclk:

250 MHz

RAM:   128 MiB

0x10, 0x0, 0x1005001, 0x8170977, 0x92231

Flash: Flash addr=0xb0000000, bank=0

16 MiB

MMC:   Blackfin SDH: 0

SF: Detected W25Q32 with page size 4 KiB, total 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

other init

Net:   mii0

Hit any key to stop autoboot:  0

Using mii0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     ############

done

Bytes transferred = 10668255 (a2c8df hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf609-0.0-3.3.0-ADI-2012R1-pre-0

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    10668191 Bytes = 10.2 MiB

   Load Address: 00001000

   Entry Point:  002879f4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 002879f4

Linux version 3.3.0-ADI-2012R1-pre-00047-gb2ce7b5-dirty

(test@test-OptiPlex-390) (gcc version 4.3.5 (ADI-2012R1-BETA1) ) #2 Mon May 28

14:47:51 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001bb950

  rodata    = 0x001bb974-0x0024e238

  bss       = 0x0024f000-0x00261ba4

  data      = 0x00261ba4-0x00284000

    stack   = 0x00282000-0x00284000

  init      = 0x00284000-0x00b7a000

  available = 0x00b7a000-0x07f00000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace active and enabled

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF609 Rev 0.0

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock, 100 MHz SCLk, 100 MHz SCLK0, 100 MHz SCLK1

and 250 MHz DCLK

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

  L2 SRAM        : uncacheable in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32258

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=(25000000)

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf609-ezkit:eth0:off

PID hash table entries: 512 (order: -1, 2048 bytes)

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory available: 117128k/131072k RAM, (9176k init code, 1770k kernel code,

802k data, 1024k dma, 1172k reserved)

NR_IRQS:299

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (9 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 64 KB (51 KB free)

Blackfin L2 SRAM: 256 KB (256 KB free)

NET: Registered protocol family 16

gpiochip_add: registered GPIOs 0 to 111 on device: BFIN-GPIO

Blackfin DMA Controller

ezkit_init(): registering device resources

ezkit_init(): request emac pins failed

bio: create slab <bio-0> at 0

SCSI subsystem initialized

bfin-spi bfin-spi.0: bfin-spi probe success

bfin-spi bfin-spi.1: bfin-spi probe success

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller,

regs_base@ffc01e00

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller,

regs_base@ffc01f00

NET: Registered protocol family 23

Switching to clocksource bfin_cs_cycles

musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

msgmni has been set to 228

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 96) is a BFIN-UART

physmap platform flash device: 01000000 at b0000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID

0x000089 Chip ID 0x008821

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000080000 : "bootloader(nor)"

0x000000080000-0x000000480000 : "linux kernel(nor)"

0x000000480000-0x000001000000 : "file system(nor)"

m25p80 spi0.1: w25q32 (4096 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x000000000000-0x000000080000 : "bootloader(spi)"

0x000000080000-0x000000200000 : "linux kernel(spi)"

0x000000200000-0x000000400000 : "file system(spi)"

CAN device driver interface

bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00,

rx_irq=55, tx_irq=56, err_irq=57, sclk=100000000)

    DWMAC100

No HW DMA feature register supported

Enhanced/Alternate descriptors

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

input: bfin-rotary as /devices/platform/bfin-rotary/input/input0

i2c /dev entries driver

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x04cfc000 - 256 pages at 0x07f00000

Blackfin hardware CRC crypto driver

bfin-hmac-crc bfin-hmac-crc.0: initialized

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

TCP cubic registered

NET: Registered protocol family 17

can: controller area network core (rev 20090105 abi 8)

NET: Registered protocol family 29

eth0: device MAC address a6:6d:66:ee:ec:f4

stmmac: probed

eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active

No MAC Management Counters available

IP-Config: Gateway not on directly connected network.

Freeing unused kernel memory: 9176k freed

 

 

BusyBox v1.17.4 (2012-05-28 14:33:46 CST) hush - the humble shell

 

root:/> PHY: stmmac-0:01 - Link is Up - 100/Full

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=12048-1.exe.170 PID=906  CPU=0

TEXT = 0x05d80040-0x05dc4780        DATA = 0x05dc47a0-0x05ddf678

BSS = 0x05ddf678-0x05de4990  USER-STACK = 0x05df8f44

 

return address: [0x05d896e0]; contents of:

0x05d896c0:  b1f4  0062  2005  3006  e300  0200  3038  3007

0x05d896d0:  e801  0000  0528  0010  05fd  3228  e800  0007

0x05d896e0: [a368] 0c00  1c0e  a129  a1a8  0981  1405  3211

0x05d896f0:  9817  bd2a  202e  3045  e300  0296  3038  2029

 

Compiled for cpu family 0x27fe (Rev 0), but running on:0x0000 (Rev 0)

ADSP-BF609-0.0 500(MHz CCLK) 100(MHz SCLK) (mpu off)

Linux version 3.3.0-ADI-2012R1-pre-00047-gb2ce7b5-dirty

(test@test-OptiPlex-390) (gcc version 4.3.5 (ADI-2012R1-BETA1) ) #2 Mon May 28

14:47:51 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 00000027  IPEND: 0008  IMASK: ffff  SYSCFG: 2806

  EXCAUSE   : 0x27

  physical IVG3 asserted : <0xffa00824> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x05774000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x05d9fcb2> [ 12048-1.exe.170 + 0x1fc72 ]

PC  : <0x05d896e0> [ 12048-1.exe.170 + 0x96a0 ]

DCPLB_FAULT_ADDR: <0x00000034> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x05d896e0> [ 12048-1.exe.170 + 0x96a0 ]

PROCESSOR STATE:

R0 : 00000000    R1 : 00000000    R2 : 05de0750    R3 : 00000000

R4 : 05dc77b8    R5 : 05df8eb8    R6 : 00000000    R7 : 00000000

P0 : 00000000    P1 : 05de0854    P2 : 05d9fca4    P3 : 05dca108

P4 : 05df8e9c    P5 : 00000000    FP : 05df8e64    SP : 05773f24

LB0: 05d8a15f    LT0: 05d8a14c    LC0: fffffffe

LB1: 05db8431    LT1: 05db842e    LC1: 00000000

B0 : 00000137    L0 : 00000000    M0 : fffffffc    I0 : 05dc6438

B1 : 000000c0    L1 : 00000000    M1 : 00000001    I1 : 05c31808

B2 : 7ffff000    L2 : 00000000    M2 : 00001802    I2 : 00000003

B3 : 00000000    L3 : 00000000    M3 : 0000005b    I3 : 00000007

A0.w: 0000008b   A0.x: 00000000   A1.w: 0000008b   A1.x: 00000000

USP : 05df8e48  ASTAT: 02001045

 

Hardware Trace:

   0 Target : <0x00003ee0> { _trap_c + 0x0 }

     Source : <0xffa007b8> { _exception_to_level5 + 0xa0 } CALL pcrel

   1 Target : <0xffa00718> { _exception_to_level5 + 0x0 }

     Source : <0xffa005d2> { _bfin_return_from_exception + 0x6 } RTX

   2 Target : <0xffa005cc> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00672> { _ex_trap_c + 0x72 } JUMP.S

   3 Target : <0xffa00600> { _ex_trap_c + 0x0 }

     Source : <0xffa0084e> { _trap + 0x2a } JUMP (P4)

   4 Target : <0xffa00824> { _trap + 0x0 }

      FAULT : <0x05d896e0> [ 12048-1.exe.170 + 0x96a0 ] P0 = W[P5 + 13]

     Source : <0x05d896dc> [ 12048-1.exe.170 + 0x969c ] 0xe8000007

   5 Target : <0x05d896d8> [ 12048-1.exe.170 + 0x9698 ]

     Source : <0x05d9fcae> [ 12048-1.exe.170 + 0x1fc6e ] CALL pcrel

   6 Target : <0x05d9fca4> [ 12048-1.exe.170 + 0x1fc64 ]

     Source : <0x05d80220> [ 12048-1.exe.170 + 0x1e0 ] CALL (P2)

   7 Target : <0x05d8021c> [ 12048-1.exe.170 + 0x1dc ]

     Source : <0x05d801b8> [ 12048-1.exe.170 + 0x178 ] IF !CC JUMP pcrel

 

   8 Target : <0x05d8019e> [ 12048-1.exe.170 + 0x15e ]

     Source : <0x05d90740> [ 12048-1.exe.170 + 0x10700 ] RTS

   9 Target : <0x05d9073a> [ 12048-1.exe.170 + 0x106fa ]

     Source : <0x05d90754> [ 12048-1.exe.170 + 0x10714 ] JUMP.S

  10 Target : <0x05d90742> [ 12048-1.exe.170 + 0x10702 ]

     Source : <0x05d90700> [ 12048-1.exe.170 + 0x106c0 ] IF CC JUMP pcrel

 

  11 Target : <0x05d906f4> [ 12048-1.exe.170 + 0x106b4 ]

     Source : <0x05d8f246> [ 12048-1.exe.170 + 0xf206 ] RTS

  12 Target : <0x05d8f23a> [ 12048-1.exe.170 + 0xf1fa ]

     Source : <0x05dba8ee> [ 12048-1.exe.170 + 0x3a8ae ] RTS

  13 Target : <0x05dba8e8> [ 12048-1.exe.170 + 0x3a8a8 ]

     Source : <0x05dba8fa> [ 12048-1.exe.170 + 0x3a8ba ] JUMP.S

  14 Target : <0x05dba8f0> [ 12048-1.exe.170 + 0x3a8b0 ]

     Source : <0x05dba892> [ 12048-1.exe.170 + 0x3a852 ] IF CC JUMP pcrel

 

  15 Target : <0x05dba880> [ 12048-1.exe.170 + 0x3a840 ]

     Source : <0x05d8f236> [ 12048-1.exe.170 + 0xf1f6 ] CALL pcrel

Userspace Stack

Stack info:

SP: [0x05df8e48] <0x05df8e48> [ 12048-1.exe.170 + 0x78e48 ]

FP: (0x05df8e80)

Memory from 0x05df8e40 to 05df9000

05df8e40: 00000000  05dca108 [05de0760] 00000000  05df8eb8  05dc77b8  05d88336

00000000

05df8e60: 00000001  05df8e80  05d9fcb2  05df8e9c  00000000  05df8e98

<05d8b108> 05df8ec4

05df8e80:(05df8ec4)<05d80222> 05dc75f4  00000000  00000000  00000000

05df8eb8  05dc75f4

05df8ea0: 00000000  00000000  00000000  00000000  00000000  00000000  05de0760

00000000

05df8ec0: ffffffff (05df8ef0) 05d8029c  00000000  00000001  00000000  05df8f48

05dc4748

05df8ee0: 05d80294  05df8f48  05df8f04  05d8b2be (05df8f04)<05d8b374>

00000000  00000000

05df8f00: 00000000 (00000000) 059f3698  05dc47a0  05c31808  05c31808  00000000

00000000

05df8f20: 05770968  00000000  00000000  00000000  00000000  05dc4748  05dc475a

00000000

05df8f40: 05c33c8c  00000001  05df8f71  00000000  05df8f88  05df8f93  05df8fa1

05df8fb4

05df8f60: 05df8fbd  05df8fc7  05df8fd1  00000000  6d742f00  32312f70  2d383430

78652e31

05df8f80: 37312e65  00303530  454d4f48  6f722f3d  5300746f  4c4c4548  69622f3d

68732f6e

05df8fa0: 54415000  752f3d48  622f7273  2f3a6e69  006e6962  4e474f4c  3d454d41

45535500

05df8fc0: 6f723d52  5000746f  2f3d4457  746f6f72  53554800  45565f48  4f495352

2e313d4e

05df8fe0: 342e3731  6d742f00  32312f70  2d383430  78652e31  37312e65  00303530

00000000

Return addresses in stack:

    address : <0x05d8b108> [ 12048-1.exe.170 + 0xb0c8 ]

   frame  1 : <0x05d80222> [ 12048-1.exe.170 + 0x1e2 ]

   frame  3 : <0x05d8b374> [ 12048-1.exe.170 + 0xb334 ]

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=12048-2.exe.170 PID=919  CPU=0

TEXT = 0x05d80040-0x05dc4760        DATA = 0x05dc4780-0x05ddf658

BSS = 0x05ddf658-0x05de4970  USER-STACK = 0x05df8f44

 

return address: [0x05d896cc]; contents of:

0x05d896a0:  3047  e14a  05d8  6780  6009  e10a  b1e0  0062

0x05d896b0:  2005  3006  e300  0200  3038  3007  e801  0000

0x05d896c0:  0528  0010  05fd  3228  e800  0007 [a368] 0c00

0x05d896d0:  1c0e  a129  a1a8  0981  1405  3211  9817  bd2a

 

Compiled for cpu family 0x27fe (Rev 0), but running on:0x0000 (Rev 0)

ADSP-BF609-0.0 500(MHz CCLK) 100(MHz SCLK) (mpu off)

Linux version 3.3.0-ADI-2012R1-pre-00047-gb2ce7b5-dirty

(test@test-OptiPlex-390) (gcc version 4.3.5 (ADI-2012R1-BETA1) ) #2 Mon May 28

14:47:51 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 00060027  IPEND: 0008  IMASK: ffff  SYSCFG: 2806

  EXCAUSE   : 0x27

  physical IVG3 asserted : <0xffa00824> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x06492000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x05d9fc9e> [ 12048-2.exe.170 + 0x1fc5e ]

PC  : <0x05d896cc> [ 12048-2.exe.170 + 0x968c ]

DCPLB_FAULT_ADDR: <0x00000034> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x05d896cc> [ 12048-2.exe.170 + 0x968c ]

PROCESSOR STATE:

R0 : 00000000    R1 : 00000000    R2 : 05de0730    R3 : 00000000

R4 : 05dc7798    R5 : 05df8eb8    R6 : 05df8f48    R7 : 00000000

P0 : 00000000    P1 : 05de0834    P2 : 05d9fc90    P3 : 05dca0e8

P4 : 05df8e9c    P5 : 00000000    FP : 05df8e64    SP : 06491f24

LB0: 05d8a14b    LT0: 05d8a138    LC0: fffffffe

LB1: 05db841d    LT1: 05db841a    LC1: 00000000

B0 : 00000137    L0 : 00000000    M0 : fffffffc    I0 : 05dc6418

B1 : 000000c0    L1 : 00000000    M1 : 00000001    I1 : 05c31808

B2 : 7ffff000    L2 : 00000000    M2 : 00001802    I2 : 00000003

B3 : 00000000    L3 : 00000000    M3 : 0000005b    I3 : 00000007

A0.w: 0000008b   A0.x: 00000000   A1.w: 0000008b   A1.x: 00000000

USP : 05df8e48  ASTAT: 02001045

 

Hardware Trace:

   0 Target : <0x00003ee0> { _trap_c + 0x0 }

     Source : <0xffa007b8> { _exception_to_level5 + 0xa0 } CALL pcrel

   1 Target : <0xffa00718> { _exception_to_level5 + 0x0 }

     Source : <0xffa005d2> { _bfin_return_from_exception + 0x6 } RTX

   2 Target : <0xffa005cc> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00672> { _ex_trap_c + 0x72 } JUMP.S

   3 Target : <0xffa00600> { _ex_trap_c + 0x0 }

     Source : <0xffa0084e> { _trap + 0x2a } JUMP (P4)

   4 Target : <0xffa00824> { _trap + 0x0 }

      FAULT : <0x05d896cc> [ 12048-2.exe.170 + 0x968c ] P0 = W[P5 + 13]

     Source : <0x05d896c8> [ 12048-2.exe.170 + 0x9688 ] 0xe8000007

   5 Target : <0x05d896c4> [ 12048-2.exe.170 + 0x9684 ]

     Source : <0x05d9fc9a> [ 12048-2.exe.170 + 0x1fc5a ] CALL pcrel

   6 Target : <0x05d9fc90> [ 12048-2.exe.170 + 0x1fc50 ]

     Source : <0x05d80214> [ 12048-2.exe.170 + 0x1d4 ] CALL (P2)

   7 Target : <0x05d80210> [ 12048-2.exe.170 + 0x1d0 ]

     Source : <0x05d801b8> [ 12048-2.exe.170 + 0x178 ] IF !CC JUMP pcrel

 

   8 Target : <0x05d8019e> [ 12048-2.exe.170 + 0x15e ]

     Source : <0x05d9072c> [ 12048-2.exe.170 + 0x106ec ] RTS

   9 Target : <0x05d90726> [ 12048-2.exe.170 + 0x106e6 ]

     Source : <0x05d90740> [ 12048-2.exe.170 + 0x10700 ] JUMP.S

  10 Target : <0x05d9072e> [ 12048-2.exe.170 + 0x106ee ]

     Source : <0x05d906ec> [ 12048-2.exe.170 + 0x106ac ] IF CC JUMP pcrel

 

  11 Target : <0x05d906e0> [ 12048-2.exe.170 + 0x106a0 ]

     Source : <0x05d8f232> [ 12048-2.exe.170 + 0xf1f2 ] RTS

  12 Target : <0x05d8f226> [ 12048-2.exe.170 + 0xf1e6 ]

     Source : <0x05dba8da> [ 12048-2.exe.170 + 0x3a89a ] RTS

  13 Target : <0x05dba8d4> [ 12048-2.exe.170 + 0x3a894 ]

     Source : <0x05dba8e6> [ 12048-2.exe.170 + 0x3a8a6 ] JUMP.S

  14 Target : <0x05dba8dc> [ 12048-2.exe.170 + 0x3a89c ]

     Source : <0x05dba87e> [ 12048-2.exe.170 + 0x3a83e ] IF CC JUMP pcrel

 

  15 Target : <0x05dba86c> [ 12048-2.exe.170 + 0x3a82c ]

     Source : <0x05d8f222> [ 12048-2.exe.170 + 0xf1e2 ] CALL pcrel

Userspace Stack

Stack info:

SP: [0x05df8e48] <0x05df8e48> [ 12048-2.exe.170 + 0x78e48 ]

FP: (0x05df8e80)

Memory from 0x05df8e40 to 05df9000

05df8e40: 00000000  05dca0e8 [05de0740] 05df8f48  05df8eb8  05dc7798  05d88322

00000000

05df8e60: 00000001  05df8e80  05d9fc9e  05df8e9c  00000000  05df8e98

<05d8b0f4> 05df8ec4

05df8e80:(05df8ec4)<05d80216> 05dc75d4  00000000  00000000  00000000

05df8eb8  05dc75d4

05df8ea0: 00000000  00000000  00000000  00000000  00000000  00000000  05de0740

00000000

05df8ec0: ffffffff (05df8ef0) 05d80288  00000000  00000001  00000000  05df8f48

05dc4734

05df8ee0: 05d80280  05df8f48  05df8f04  05d8b2aa (05df8f04)<05d8b360>

00000000  00000000

05df8f00: 00000000 (00000000) 059f3698  05dc4780  05c31808  05c31808  00000000

00000000

05df8f20: 05c0e968  00000000  00000000  00000000  00000000  05dc4734  05dc4746

00000000

05df8f40: 05c33c8c  00000001  05df8f71  00000000  05df8f88  05df8f93  05df8fa1

05df8fb4

05df8f60: 05df8fbd  05df8fc7  05df8fd1  00000000  6d742f00  32312f70  2d383430

78652e32

05df8f80: 37312e65  00303530  454d4f48  6f722f3d  5300746f  4c4c4548  69622f3d

68732f6e

05df8fa0: 54415000  752f3d48  622f7273  2f3a6e69  006e6962  4e474f4c  3d454d41

45535500

05df8fc0: 6f723d52  5000746f  2f3d4457  746f6f72  53554800  45565f48  4f495352

2e313d4e

05df8fe0: 342e3731  6d742f00  32312f70  2d383430  78652e32  37312e65  00303530

00000000

Return addresses in stack:

    address : <0x05d8b0f4> [ 12048-2.exe.170 + 0xb0b4 ]

   frame  1 : <0x05d80216> [ 12048-2.exe.170 + 0x1d6 ]

   frame  3 : <0x05d8b360> [ 12048-2.exe.170 + 0xb320 ]

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=12048-3.exe.170 PID=935  CPU=0

TEXT = 0x05d80040-0x05dc4760        DATA = 0x05dc4780-0x05ddf68c

BSS = 0x05ddf68c-0x05de49a0  USER-STACK = 0x05df8f44

 

--- Stuart Henderson                                         2012-06-01 09:12:15

Ok, i've ran libstdc++ testing about 5 times now and still nothing.

 

questions:

We've established this does fail on more than one computer, does it pass on any

of your machines?

Does it sometimes pass on the machines in which it fails?

What version of dejagnu are you using and what patches have you applied?

Are you sure there isn't an alternative install of dejagnu anywhere that is

being used instead?

Which version of u-boot are you using?

Which uImage are you using?

Which version of the toolchain are you using?

Are you seeing instances of the "failed to download file" error

before you see the out of memory error you posted in the last message?

 

I'm keen to reproduce this so we can avoid it in future. Thanks.

 

--- Mingquan Pan                                             2012-06-26 05:28:57

I would like say please run toolchain-regtest for the whole toolchain utilities,

don't only run libstdc++ test. For it is running after several other tests,

after which runs could change the status of the board and hence influence the

libstdc++ test. I myself can't reproduce this on the same machine by only

running libstdc++ case.

 

On this machine, we test running on buildroot with bf609-ezkit. I didn't find

these case fail on other machines with other boards so far.

 

dejagnu is 1.5 with your 1.5 patch applied.

 

kernel:

root:/> version

kernel:    Linux release 3.3.0-ADI-2012R1-pre-00138-g434523a-dirty, build #2

Mon Jun 25 13:27:25 CST 2012

toolchain:

/home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc

release gcc version 4.3.5 (ADI-2012R1-RC2)

user-dist: release git-f53fff3, build #1 Mon Jun 25 13:22:48 CST 2012

root:/>

 

uboot:

U-Boot 2011.09-00233-ga8352c9-dirty (ADI-2012R1-pre) (Apr 05 2012 - 17:37:51)

 

CPU:   ADSP bf609-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF609 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 25 MHz, Core: 500 MHz, System0: 100 MHz, System1: 100 MHz, Dclk:

250 MHz

RAM:   128 MiB

0x10, 0x0, 0x1005001, 0x8170977, 0x92231

Flash: Flash addr=0xb0000000, bank=0

16 MiB

MMC:   Blackfin SDH: 0

SF: Detected W25Q32 with page size 4 KiB, total 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

other init

Net:   mii0

Hit any key to stop autoboot:  0

bfin>

 

 

When starting test uclibc libstdc++, there do some error info printd on

console:

 

testing uclinux libstdc++^M

Allocation of length 1073745920 from process 2652 (1.exe.24509) failed^M

DMA per-cpu:^M

CPU    0: hi:    0, btch:   1 usd:   0^M

active_anon:0 inactive_anon:0 isolated_anon:0^M

active_file:4515 inactive_file:5265 isolated_file:0^M

unevictable:0 dirty:0 writeback:0 unstable:0^M

free:19761 slab_reclaimable:550 slab_unreclaimable:531^M

mapped:0 shmem:0 pagetables:0 bounce:0^M

DMA free:79044kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:18060kB inactive_file:21060kB unevictable:0kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:2200kB

slab_unreclaimable:2124kB kernel_stack:256kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no^M

lowmem_reserve[]: 0 0 0^M

DMA: 1*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 2*2048kB

2*4096kB 2*8192kB 1*16384kB 1*32768kB = 79044kB^M

9785 total pagecache pages^M

Allocation of length 1073745920 from process 2652 (1.exe.24509) failed^M

DMA per-cpu:^M

CPU    0: hi:    0, btch:   1 usd:   0^M

active_anon:0 inactive_anon:0 isolated_anon:0^M

active_file:4515 inactive_file:5265 isolated_file:0^M

unevictable:0 dirty:0 writeback:0 unstable:0^M

free:19761 slab_reclaimable:550 slab_unreclaimable:531^M

mapped:0 shmem:0 pagetables:0 bounce:0^M

DMA free:79044kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:18060kB inactive_file:21060kB unevictable:0kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:2200kB

slab_unreclaimable:2124kB kernel_stack:256kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no^M

lowmem_reserve[]: 0 0 0^M

DMA: 1*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 2*2048kB

2*4096kB 2*8192kB 1*16384kB 1*32768kB = 79044kB^M

9785 total pagecache pages^M

Allocation of length 1073745920 from process 2730 (1.exe.24509) failed^M

DMA per-cpu:^M

CPU    0: hi:    0, btch:   1 usd:   0^M

active_anon:0 inactive_anon:0 isolated_anon:0^M

active_file:4517 inactive_file:5265 isolated_file:0^M

unevictable:0 dirty:0 writeback:0 unstable:0^M

free:19760 slab_reclaimable:550 slab_unreclaimable:531^M

mapped:0 shmem:0 pagetables:0 bounce:0^M

DMA free:79040kB min:4096kB low:5120kB high:6144kB active_anon:0kB

inactive_anon:0kB active_file:18068kB inactive_file:21060kB unevictable:0kB

isolated(anon):0kB isolated(file):0kB present:129032kB mlocked:0kB dirty:0kB

writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:2200kB

slab_unreclaimable:2124kB kernel_stack:256kB pagetables:0kB unstable:0kB

bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no^M

lowmem_reserve[]: 0 0 0^M

DMA: 0*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 1*1024kB 2*2048kB

2*4096kB 2*8192kB 1*16384kB 1*32768kB = 79040kB^M

9786 total pagecache pages^M

Allocation of length 1073745920 from process 2730 (1.exe.24509) failed^M

DMA per-cpu:^M

CPU    0: hi:    0, btch:   1 usd:   0^M

active_anon:0 inactive_anon:0 isolated_anon:0^M

 

...

 

The whole console printed info is attched as reset_board_log.

 

--- Mingquan Pan                                             2012-06-26 05:40:33

As to your last question, I look through the log, and find that there do exist 4

rsh error in the libgomp test log, like following, but libgomp test is running

after libstdc++ test.

 

Executing on host: bfin-uclinux-gcc

/home/test/workspace/src/toolchain/gcc-4.3/libgomp/testsuite/libgomp.c++/ctor-7.C

-I/home/test/workspace/src/toolchain/gcc-4.3/libgomp/testsuite/..

-fmessage-length=0 -fopenmp  -O3 -fomit-frame-pointer    -Wl,-elf2flt=-s120000

-lstdc++ -lm  -mcpu=bf609-0.0  -o ./ctor-7.exe    (timeout = 300)

spawn bfin-uclinux-gcc

/home/test/workspace/src/toolchain/gcc-4.3/libgomp/testsuite/libgomp.c++/ctor-7.C

-I/home/test/workspace/src/toolchain/gcc-4.3/libgomp/testsuite/..

-fmessage-length=0 -fopenmp -O3 -fomit-frame-pointer -Wl,-elf2flt=-s120000

-lstdc++ -lm -mcpu=bf609-0.0 -o ./ctor-7.exe^M

PASS: libgomp.c++/ctor-7.C  -O3 -fomit-frame-pointer  (test for excess errors)

Executing on bfin-uclinux: /tmp/ctor-7.exe.26004 {} {}   (timeout = 300)

spawn [open ...]^M

poll: protocol failure in circuit setup

Executing on bfin-uclinux: rm -f  /tmp/ctor-7.exe.26004    (timeout = 300)

spawn [open ...]^M

poll: protocol failure in circuit setup

Executed ./ctor-7.exe, status 1

rsh to bfin-uclinux failed for /tmp/ctor-7.exe.26004, poll: protocol failure in

circuit setup

 

FAIL: libgomp.c++/ctor-7.C  -O3 -fomit-frame-pointer  execution test

 

--- Mingquan Pan                                             2012-06-26 07:11:01

More update: I also see this failure on toolchain linux-uclibc test for bf548

ezkit and bf537-stamp, which has many rsh timeout already before the 12048 cases

fail.

 

This test using trunk head toolchain and kernel :

Testing is running on target with following versions:

kernel:    Linux release 3.3.0-ADI-2012R1-pre-00757-g8a0f72d, build #78 Mon Jun

25 18:26:30 CST 2012

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5865)

user-dist: release svn-10724, build #20 Mon Jun 25 18:25:02 CST 2012

 

 

But on the same toolchain testing running against bf533 stamp, I didn't see

this issue.

 

And on bf548 ezkit, it occours in linux-uclibc testing, while on bf609-ezkit ,

it occours in uclinux testing.

 

--- Stuart Henderson                                         2012-06-28 09:39:55

Hi Grace,

Even with a full test run i'm not getting the failures.

 

Can you try applying the following patch and seeing if this resolves your

issues?

 

This may allow us to get a little more consistency with our testing.

 

Index: buildscript/toolchain-regtest

===================================================================

--- buildscript/toolchain-regtest       (revision 5879)

+++ buildscript/toolchain-regtest       (working copy)

@@ -471,10 +471,12 @@

        # only clean targets running under Linux

        test_targets_has LINUX || return 0

 

-       run_rsh_nodie 'free; find / /tmp/ /root/ -maxdepth 1 -type f -name

"[^.]*" -exec rm "{}" \; ; free'

+       # run_rsh_nodie 'free; find / /tmp/ /root/ -maxdepth 1 -type f -name

"[^.]*" -exec rm "{}" \; ; free'

 

        # clean up any servers laying around

-       run_rsh_nodie killall gdbserver

+       #run_rsh_nodie killall gdbserver

+       run_rsh_nodie reboot

+       sleep 45s

 

        # we dump something onto the console so we can track which application

caused a crash

        log_on_board testing $1 $2

 

--- Stuart Henderson                                         2012-06-28 12:29:01

actually, try this for just now:

Index: buildscript/toolchain-regtest

===================================================================

--- buildscript/toolchain-regtest       (revision 5879)

+++ buildscript/toolchain-regtest       (working copy)

@@ -471,13 +471,15 @@

        # only clean targets running under Linux

        test_targets_has LINUX || return 0

 

-       run_rsh_nodie 'free; find / /tmp/ /root/ -maxdepth 1 -type f -name

"[^.]*" -exec rm "{}" \; ; free'

+       # run_rsh_nodie 'free; find / /tmp/ /root/ -maxdepth 1 -type f -name

"[^.]*" -exec rm "{}" \; ; free'

 

        # clean up any servers laying around

-       run_rsh_nodie killall gdbserver

+       #run_rsh_nodie killall gdbserver

+       run_rsh_nodie reboot &

+       sleep 25s

 

        # we dump something onto the console so we can track which application

caused a crash

-       log_on_board testing $1 $2

+       #log_on_board testing $1 $2

}

 

copy_test_results()

 

--- Mingquan Pan                                             2012-06-29 05:13:57

It looks your patch tries to reboot the board once after each specific tool

testing finishes, so the next testing like libstdc++ is running on the freshly

started kernel. This shoudld be why you can't reproduce this issue.

 

when I am running the testing, the tested kernel is started right at the

beginning of this round of testing which includes binutils, gas, gcc, g++,

libstdc++, etc. So when libstdc++ starts, the kernel actually is running for a

quite while and maybe some status is changed.

 

If you restore to use the previous toolchain-regtest, it should can be

reproduced.

 

pls, today I change to use the toolchain-regtest with your patch to testing,

but it looks the target board doesn't reboot as required. Is this exacly the way

you are using?

 

--- Mingquan Pan                                             2012-06-29 06:19:34

I modified the reboot line to :run_rsh_nodie /sbin/reboot , and it can reboot

between the testing of the tools now. I will check the generated results.

 

And if you have time, could you please have a try with the kernel only started

at first and wait for the whole uclibc testing to finish.

 

--- Stuart Henderson                                         2012-06-29 06:45:32

Hi Grace,

I don't use that patch at all.  I was merely suggesting it as a way to get

round some of the random errors we see as a result of memory fragmentation

during testing.  These problems that only occur after a few thousand other tests

have been run before them are almost always due to memory fragmentation, so it

doesn't seem like a good use of resources to be constantly looking at them.

If rebooting the board between each tool is tested avoids the problems, then I

think it's worth considering.

 

--- Mingquan Pan                                             2013-07-04 22:19:07

Now we do reboot before each round of testing.

this case can pass on bf609-ezkit now.

 

Executing on host: bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc

    ./libtestc++.a -Wl,-elf2flt=-s200000  -lm  -mcpu=bf609-0.0  -o ./12948-1.exe

   (timeout = 600)

spawn bfin-uclinux-g++ -g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0

-DLOCALEDIR="."

-I/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/util

/home/test/workspace/src/toolchain/gcc-4.3/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc

./libtestc++.a -Wl,-elf2flt=-s200000 -lm -mcpu=bf609-0.0 -o ./12948-1.exe^M

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc (test for excess errors)

Executing on bfin-uclinux: /tmp/12948-1.exe.10415 {} {}   (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executing on bfin-uclinux: rm -f  /tmp/12948-1.exe.10415    (timeout = 300)

spawn [open ...]^M

XYZ0ZYX

Executed ./12948-1.exe, status 0

PASS: ext/stdio_sync_filebuf/wchar_t/12948-1.cc execution test

extra_tool_flags are:

 

so close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

reset_board_log.normal.test    application/octet-stream    693038    Mingquan Pan

12948-1.exe    application/x-ms-dos-executable    430340    Mingquan Pan

12948-1.exe.gdb    application/octet-stream    5235058    Mingquan Pan

Outcomes