[#6787] g729 test will crash with bf533/bf538 boards when toolchain is switched to 2011R1-RC1

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

[#6787] g729 test will crash with bf533/bf538 boards when toolchain is switched to 2011R1-RC1

Submitted By: Vivi Li

Open Date

2011-09-06 04:20:52     Close Date

2013-07-03 02:19:03

Priority:

Medium High     Assignee:

Vivi Li

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

BF533     

Host Operating System:

toolchain rev.:

gcc4.3-2011R1-RC1     kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: g729 test will crash with bf533/bf538 boards when toolchain is switched to 2011R1-RC1

Details:

 

g729 test will crash in bf533-ezkit/bf533-stamp/bf538-ezkit when toolchain is switched to 2011R1-RC1.

 

First failed version:

--

kernel:    Linux release 3.0.0-ADI-2011R1-pre-svn10064, build #372 Thu Sep 1 23:59:49 GMT 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC1)

user-dist: release svn-10348, build #3312 Thu Sep 1 23:58:02 GMT 2011

--

 

 

Last passed version:

--

kernel:    Linux release 3.0.0-ADI-2011R1-pre-svn10064, build #366 Wed Aug 31 22:25:59 GMT 2011

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

user-dist: release svn-10348, build #3258 Wed Aug 31 22:25:01 GMT 2011

--

 

 

--

Linux version 3.0.0-ADI-2011R1-pre-svn10064 (test@uclinux67-533ezkit) (gcc version 4.3.5 (ADI-2011R1-RC1) ) #372 Thu Sep 1 23:59:49 GMT 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011f0e8

  rodata    = 0x0011f0e8-0x001762d0

  bss       = 0x00177000-0x00186a44

  data      = 0x00186a60-0x00196000

    stack   = 0x00194000-0x00196000

  init      = 0x00196000-0x006b8000

  available = 0x006b8000-0x01f00000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF533 Rev 0.3

Warning: Compiled for Rev 3, but running on Rev 4

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

Processor Speed: 594 MHz core clock and 118 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

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

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf533-ezkit:eth0:off

PID hash table entries: 128 (order: -3, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 24536k/32768k RAM, (5256k init code, 1144k kernel code, 476k data, 1024k dma, 332k reserved)

NR_IRQS:81

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1179.64 BogoMIPS (lpj=2359296)

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 (16 KB free)

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@5

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

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

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 47

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 20310300 IRQ 42 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:b1:2e

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 11:11:33 UTC (1086001893)

smc91x smc91x.0: eth0: link down

smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf533-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

dma_alloc_init: dma_page @ 0x011ba000 - 256 pages at 0x01f00000

Freeing unused kernel memory: 5256k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.18.4 (2011-09-01 11:30:15 GMT) hush - the humble shell

 

root:/> ./alltests.sh g729ab_testfdpic

Data access CPLB protection violation

<5> - Attempted read or write to Supervisor resource,

<5>   or illegal data memory access.

Deferred Exception context

CURRENT PROCESS:

COMM=g729ab_testfdpi PID=349  CPU=0

TEXT = 0xffa00228-0xffa0c5ec        DATA = 0xff800000-0xff8031cc

BSS = 0xff8031cc-0x001e0000  USER-STACK = 0x001ffe10

 

return address: [0x00df373a]; contents of:

0x00df3710:  003d  9310  e522  0047  9310  6010  e638  ffad

0x00df3720:  aef8  aef9  6001  6032  6cc0  e738  ffa9  ac42

0x00df3730:  6d41  e739  ffa0  2011  0000 [9110] 0810  140b

0x00df3740:  e12a  fec4  5a97  3042  6001  a3ba  325c  e3ff

 

ADSP-BF533-0.3(Detected 0.4) 594(MHz CCLK) 118(MHz SCLK) (mpu off)

Linux version 3.0.0-ADI-2011R1-pre-svn10064 (test@uclinux67-533ezkit) (gcc version 4.3.5 (ADI-2011R1-RC1) ) #372 Thu Sep 1 23:59:49 GMT 2011

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002023  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x23

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

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

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

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

RETS: <0x00df36d8> [ /lib/ld-uClibc.so.0 + 0x36d8 ]

PC  : <0x00df373a> [ /lib/ld-uClibc.so.0 + 0x373a ]

DCPLB_FAULT_ADDR: <0xffa0025c> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x00df373a> [ /lib/ld-uClibc.so.0 + 0x373a ]

PROCESSOR STATE:

R0 : 00000006    R1 : 00000000    R2 : 00000006    R3 : 00df4904

R4 : 00005b7c    R5 : 00000002    R6 : 00df2ff8    R7 : 00000000

P0 : 001ffd78    P1 : 001ffd78    P2 : ffa0025c    P3 : 00d96bb0

P4 : 00d96bb0    P5 : 00d96bb0    FP : 001ffc1c    SP : 01065f24

LB0: 0040cefb    LT0: 0040cee8    LC0: ffffffff

LB1: 00df35d7    LT1: 00df35d4    LC1: 00000000

B0 : 00000001    L0 : 00000000    M0 : 00000008    I0 : 00000290

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000512

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000290

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 0000000c

A0.w: 0000147a   A0.x: 00000000   A1.w: 0000147a   A1.x: 00000000

USP : 001ffa80  ASTAT: 02000022

 

Hardware Trace:

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

     Source : <0x0000a3e4> { _exception_to_level5 + 0xa4 } CALL pcrel

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

     Source : <0x0000a1f4> { _bfin_return_from_exception + 0x20 } RTX

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

     Source : <0x0000a298> { _ex_trap_c + 0x74 } JUMP.S

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

     Source : <0x0000a0fc> { _ex_workaround_261 + 0x1c } JUMP.S

   4 Target : <0x0000a0e0> { _ex_workaround_261 + 0x0 }

     Source : <0x0000a4b8> { _trap + 0x68 } JUMP (P4)

   5 Target : <0x0000a46e> { _trap + 0x1e }

     Source : <0x0000a46a> { _trap + 0x1a } IF CC JUMP pcrel

   6 Target : <0x0000a450> { _trap + 0x0 }

      FAULT : <0x00df373a> [ /lib/ld-uClibc.so.0 + 0x373a ] R0 = [P2]

     Source : <0x0000a1f4> { _bfin_return_from_exception + 0x20 } RTX

   7 Target : <0x0000a1d4> { _bfin_return_from_exception + 0x0 }

     Source : <0x0000a0f2> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel

   8 Target : <0x0000a0e0> { _ex_workaround_261 + 0x0 }

     Source : <0x0000a4b8> { _trap + 0x68 } JUMP (P4)

   9 Target : <0x0000a46e> { _trap + 0x1e }

     Source : <0x0000a46a> { _trap + 0x1a } IF CC JUMP pcrel

  10 Target : <0x0000a450> { _trap + 0x0 }

     Source : <0x00df3738> [ /lib/ld-uClibc.so.0 + 0x3738 ] NOP

  11 Target : <0x00df3738> [ /lib/ld-uClibc.so.0 + 0x3738 ]

     Source : <0x00df3760> [ /lib/ld-uClibc.so.0 + 0x3760 ] IF CC JUMP pcrel (BP)

  12 Target : <0x00df3758> [ /lib/ld-uClibc.so.0 + 0x3758 ]

     Source : <0x00df3736> [ /lib/ld-uClibc.so.0 + 0x3736 ] JUMP.S

  13 Target : <0x00df3720> [ /lib/ld-uClibc.so.0 + 0x3720 ]

     Source : <0x00df36de> [ /lib/ld-uClibc.so.0 + 0x36de ] JUMP.S

  14 Target : <0x00df36d8> [ /lib/ld-uClibc.so.0 + 0x36d8 ]

     Source : <0x00df1254> [ /lib/ld-uClibc.so.0 + 0x1254 ] RTS

  15 Target : <0x00df124e> [ /lib/ld-uClibc.so.0 + 0x124e ]

     Source : <0x00df1248> [ /lib/ld-uClibc.so.0 + 0x1248 ] IF CC JUMP pcrel

Userspace Stack

Stack info:

SP: [0x001ffa80] <0x001ffa80> [ g729ab_testfdpi + 0x1fa80 ]

FP: (0x001ffe2c)

Memory from 0x001ffa80 to 00200000

001ffa80:[00000000] 00000000  00000000  00000000  00000000  00000000  00000000  001ffd78

001ffaa0: 00000000  00000000  00000000  00000000  00000000  00d96bb0  001ffed0  001ffa80

001ffac0: 001ffd68  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffae0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffb00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffb20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffb40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffb60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffb80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffba0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffbc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffbe0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffc00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  001ffdd0

001ffc20: 00df4470  00d96bb0  001ffe14  00d96bb0  00df2ff8  00000002  00005b7c  001ffc60

001ffc40: 00000000  00000000  001ffd50  001ffe30  001ffe14  001ffef0  00d96bb0  001ffe30

001ffc60: 001ffed0  00d96bb0  00000000  00d96ae4  00000000  00000000  00000000  00000000

001ffc80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffca0: 00000000  00000000  00000000  00000000  00d96bb0  00df00b4  00df0614  00df0244

001ffcc0: 00000000  00000000  00000000  00000392  00000010  00000000  00000000  00000377

001ffce0: 00000000  00000000  00df09a8  00000290  00000008  00000000  00000000  00000000

001ffd00: 00000000  00000001  00000000  00000000  00000000  00000000  00000000  00000000

001ffd20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffd40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001ffd60: 00000000  00000000  00000003  ffa0025c  00000004  00000020  00000005  00000006

001ffd80: 00000006  00001000  00000007  00df0000  00000008  00000000  00000009  ffa03558

001ffda0: 00000000  00000000  0000000b  00000000  0000000c  00000000  0000000d  00000000

001ffdc0: 0000000e  00000000  001ffed0  00d96bb0  00473ce0  00df0c90  00d96bb0  00d10e98

001ffde0: 00d96ae4  001ffed0  001ffef0  00df0c44  00d96bb0  001ffef0  00000000  00d96ae4

001ffe00: 001ffe08  001ffe10  00000000  00000000  00000006  001fff1e  001fff31  001fff5a

001ffe20: 001fff85  001fff8b  001fff93 (00000000)<001fff9a> 001fffa5  001fffc8  001fffcc

001ffe40: 001fffd5  00000000  00000010  00000000  00000006  00001000  00000011  00000064

001ffe60: 00000003  ffa0025c  00000004  00000020  00000005  00000006  00000007  00df0000

001ffe80: 00000008  00000000  00000009  ffa03558  0000000b  00000000  0000000c  00000000

001ffea0: 0000000d  00000000  0000000e  00000000  00000017  00000000  0000001f  0001ffe9

001ffec0: 00000000  00000000  00000000  00000000  00020000  00df0000  00000000  00004ae0

001ffee0: 00d96ae0  00005ae0  00000264  00000000  00020000  ffa00228  00000000  0000c3c4

001fff00: ff800000  0000d3c4  000031cc  00000000  00000000  00000000  00000000  2f2e0000

001fff20: 39323767  745f6261  66747365  63697064  61762f00  65742f72  645f7473  2f617461

001fff40: 39323767  74732f61  6e695f64  2f6e655f  54474c41  492e4d48  762f004e  742f7261

001fff60: 5f747365  61746164  3237672f  732f6139  6f5f6474  655f7475  4c412f6e  4d485447

001fff80: 5449422e  652d2d00  2d00636e  3237672d  2d006139  70696d2d  45540073  6c3d4d52

001fffa0: 78756e69  54415000  622f3d48  2f3a6e69  2f727375  3a6e6962  6962732f  752f3a6e

001fffc0: 732f7273  006e6962  001c1794  3d445750  7261762f  53554800  45565f48  4f495352

001fffe0: 2e313d4e  342e3831  672f2e00  61393237  65745f62  64667473  00636970  00000000

Return addresses in stack:

   frame  1 : <0x001fff9a> [ g729ab_testfdpi + 0x1ff9a ]

SEGV

--

 

Follow-ups

 

--- Stuart Henderson                                         2011-09-12 06:15:56

i think this should be fixed on trunk already.  if you're seeing this in rc1,

but not on trunk then i'll close as fixed.

 

--- Vivi Li                                                  2011-09-13 02:35:26

I'll check that.

 

--- Vivi Li                                                  2011-09-15 05:52:35

I tried a trunk toolchain(gcc4.3) built on Sep 1st, and g729 case still crashed.

 

--- Vivi Li                                                  2011-09-16 01:49:19

I build a trunk toolchain with binutils-2.17, it won't crash.

Kernel will crash with toolchain of binutils-2.21.

 

--- Stuart Henderson                                         2011-09-16 04:23:06

the test uses --sep-code, which was only added on the 5th of September.  the

test shouldn't even compile with a toolchain built on the 1st.  are you making

local alterations to the test?

 

--- Vivi Li                                                  2011-09-16 04:56:14

I build the toolchain with binutils-2.17 on September 6th. Bellow is its gcc

version.

 

--

./bfin-uclinux/bin/bfin-uclinux-gcc -v

Using built-in specs.

Target: bfin-uclinux

Configured with: /home/test/work/cruise/checkouts/toolchain/gcc-4.3/configure

--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux

--prefix=/home/test/uClinux.2011-09-06-bin2.17/bfin-uclinux

--disable-libstdcxx-pch

--with-sysroot=/home/test/uClinux.2011-09-06-bin2.17/bfin-uclinux/bfin-uclinux/runtime

--enable-threads=posix --enable-clocale=generic --disable-symvers

--disable-libssp --disable-libffi --disable-libgcj

--enable-version-specific-runtime-libs --enable-__cxa_atexit

--with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker

--with-pkgversion=ADI-trunk/svn-5683

Thread model: posix

gcc version 4.3.5 (ADI-trunk/svn-5683)

--

 

--- Stuart Henderson                                         2011-09-16 05:00:41

sorry, i was referring to this statement:

"I tried a trunk toolchain(gcc4.3) built on Sep 1st, and g729 case still

crashed."

 

that toolchain shouldn't have even been able to compile the test case, which

suggests that you have local changes to the test.  is this the case?

 

--- Vivi Li                                                  2011-09-16 05:57:22

I don't have local changes to toolchain source code.

 

Bellow is the gcc version that was build on Sep 1st. Are you sure this version

can't be built successfully? Anyway, I can try a latest toolchain.

--

./bfin-uclinux/bin/bfin-uclinux-gcc -v

Using built-in specs.

Target: bfin-uclinux

Configured with: /home/test/work/cruise/checkouts/toolchain/gcc-4.3/configure

--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux

--prefix=/home/test/work/cruise/test_scripts/toolchain/toolchain-build/toolchain-2011_Sep_01_23_41/bfin-uclinux

--disable-libstdcxx-pch

--with-sysroot=/home/test/work/cruise/test_scripts/toolchain/toolchain-build/toolchain-2011_Sep_01_23_41/bfin-uclinux/bfin-uclinux/runtime

--enable-threads=posix --enable-clocale=generic --disable-symvers

--disable-libssp --disable-libffi --disable-libgcj

--enable-version-specific-runtime-libs --enable-__cxa_atexit

--with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker

--with-pkgversion=ADI-trunk/svn-5683

Thread model: posix

gcc version 4.3.5 (ADI-trunk/svn-5683)

--

 

--- Stuart Henderson                                         2011-09-16 06:12:15

that toolchain was built from svn 5683, -sep-code was added to binutils-2.21

with commit 5689.  if the test is compiling with a toolchain built before that

commit, then that would suggest you have local changes to the test.  is this

possible?

 

--- Vivi Li                                                  2011-09-19 03:18:37

I recheck the log and find that toolchain was built from svn 5688, not 5683.

5683 is the svn version of gcc 4.3 source code, not the whole toolchain

version.

 

I re-test g729 on bf533-stamp with toolchain svn version 5689, and it can

pass.

So it's fixed in trunk.

 

--- Stuart Henderson                                         2011-09-20 09:17:07

that's great, thanks Vivi.  setting as fixed for 2011R1-RC2.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes