[#5222] application "reset" crashed on all platform

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

[#5222] application "reset" crashed on all platform

Submitted By: Vivi Li

Open Date

2009-06-09 04:03:34     Close Date

2010-08-12 23:26:49

Priority:

Very Low     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

toolchain4.1-09r1-rc7

App binary format:

N/A     

Summary: application "reset" crashed on all platform

Details:

 

I happened to find that application "reset" crashed.

 

Bellow is the log:

--

Linux version 2.6.28.10-ADI-2009R1-svn6600 (test@uclinux50-bf537-ad9960-ad1836) (gcc version 4.1.2 (ADI svn)) #6 Sat Jun 6 19:009

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00105c40

  rodata    = 0x00105c40-0x00157308

  bss       = 0x00158000-0x00169728

  data      = 0x00169728-0x0017a000

    stack   = 0x00178000-0x0017a000

  init      = 0x0017a000-0x008c1000

  available = 0x008c1000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

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

Compiled for ADSP-BF537 Rev 0.2

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

Processor Speed: 500 MHz core clock and 125 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50f

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

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

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

Memory available: 47808k/65536k RAM, (7452k init code, 1043k kernel code, 465k data, 1024k dma, 7744k reserved)

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

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (37 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

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

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 93

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

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 1970-05-18 14:22:01 UTC (11888521)

IP-Config: Complete:

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

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 7452k freed

dma_alloc_init: dma_page @ 0x008bd000 - 256 pages at 0x03f00000

                           _____________________________________

        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.13.4 (2009-06-06 18:54:19 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

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

 

root:/> reset

munmap of non-mmaped memory [001d4000-00398000] by process 162 (reset)

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=reset PID=162

CPU = 0

TEXT = 0x001c0040-0x001ca9e0        DATA = 0x001caa00-0x001d0d14

BSS = 0x001d0d14-0x001d11f0  USER-STACK = 0x001d3f84

 

return address: [0x001c1410]; contents of:

0x001c13f0:  05fd  e14a  001d  e800  0003  e10a  0f10  9152

0x001c1400:  e149  001d  e109  0efc  3228  0c42  910f  1802

0x001c1410: [b150] 0c45  934d  1817  e428  0029  e300  0ef2

0x001c1420:  e14a  001d  e10a  0f22  9710  ad2a  0c42  180b

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1-svn6600

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060027  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x27

  interrupts disabled

  physical IVG5 asserted : <0xffa00c14> { _evt_ivhw + 0x0 }

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

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

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

RETS: <0x001c188a> [ reset + 0x184a ]

PC  : <0x001c1410> [ reset + 0x13d0 ]

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

ICPLB_FAULT_ADDR: <0x001c1410> [ reset + 0x13d0 ]

 

PROCESSOR STATE:

R0 : 001d0bbc    R1 : 00000000    R2 : 00000006    R3 : 001d0ff4

R4 : 00000001    R5 : 001d3f10    R6 : 00000001    R7 : ffffffff

P0 : 001d0c86    P1 : 001d0efc    P2 : ffffffff    P3 : 001d0bbc

P4 : 001d0bbc    P5 : 001d0bbc    FP : 001d2d80    SP : 0379df24

LB0: 001c67d9    LT0: 001c67d6    LC0: 00000000

LB1: 001c195d    LT1: 001c1956    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 001d2400

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 001d2d68

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

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 001d2d74  ASTAT: 02002002

 

Hardware Trace:

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

     Source : <0xffa0065a> { _exception_to_level5 + 0x9e } CALL pcrel

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

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

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

     Source : <0xffa00512> { _ex_trap_c + 0x46 } JUMP.S

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

     Source : <0xffa003b2> { _ex_workaround_261 + 0x22 } JUMP.S

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

     Source : <0xffa00732> { _trap + 0x66 } JUMP (P4)

   5 Target : <0xffa006ec> { _trap + 0x20 }

     Source : <0xffa006e8> { _trap + 0x1c } IF !CC JUMP

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

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

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

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

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

     Source : <0xffa00732> { _trap + 0x66 } JUMP (P4)

   9 Target : <0xffa006ec> { _trap + 0x20 }

     Source : <0xffa006e8> { _trap + 0x1c } IF !CC JUMP

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

     Source : <0x001c140e> [ reset + 0x13ce ] IF !CC JUMP

  11 Target : <0x001c13f0> [ reset + 0x13b0 ]

     Source : <0x001c1886> [ reset + 0x1846 ] CALL pcrel

  12 Target : <0x001c1880> [ reset + 0x1840 ]

     Source : <0x001c6fec> [ reset + 0x6fac ] RTS

  13 Target : <0x001c6fe4> [ reset + 0x6fa4 ]

     Source : <0x001c67dc> [ reset + 0x679c ] RTS

  14 Target : <0x001c67ce> [ reset + 0x678e ]

     Source : <0x001c679e> [ reset + 0x675e ] IF !CC JUMP

  15 Target : <0x001c6794> [ reset + 0x6754 ]

     Source : <0x001c6fe0> [ reset + 0x6fa0 ] CALL pcrel

Userspace Stack

Stack info:

SP: [0x001d2d74] <0x001d2d74> /* kernel dynamic memory */

Memory from 0x001d2d70 to 001d3000

001d2d70:<001c1836>[001d3fe7] 001d0bbc  001d3da0  001d3da0 <001c188a> 001d0960  001d3fe7

001d2d90: 00000000  00000000  00000000  00000000  7273752f  6168732f  742f6572  696d7265

001d2db0: 2f6f666e  696c2f6c  0078756e  00000000  00000000  00000000  00000000  00000000

001d2dd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2df0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2e10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2e30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2e50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2e70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2e90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2eb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2ed0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2ef0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2f10: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2f30: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2f50: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2f70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2f90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2fb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2fd0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

001d2ff0: 00000000  00000000  00000000  00000000  00000000

Return addresses in stack:

    address : <0x001c1836> [ reset + 0x17f6 ]

    address : <0x001c188a> [ reset + 0x184a ]

SIGSEGV

root:/>

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-09 04:24:05

you didnt say what is providing the reset program.  there is one in ncurses and

one in busybox.

 

--- Vivi Li                                                  2009-06-09 22:42:40

I checked it, and it's from ncurses.

 

On host:

--

test@uboot30-527ezkit:~> ls

~/uclinux-dist/lib/ncurses/build-ncurses-5.7/progs

clear      infocmp      Makefile    tic      toe      tput      transform.h

tset.gdb

clear.gdb  infocmp.gdb  termsort.c  tic.gdb  toe.gdb  tput.gdb  tset

test@uboot30-527ezkit:~>

--

 

On target:

--

root:/> ls -l /usr/bin/

lrwxrwxrwx    1 root     root            4 Jun  9  2009 reset -> tset

-rwxr-xr-x    1 root     root        78380 Jun  9  2009 tset

root:/>

--

 

--- Mike Frysinger                                           2009-06-09 22:55:05

did you install ncurses using normal build system or manually copy the binary

over yourself ?

 

--- Vivi Li                                                  2009-06-10 02:06:36

After I build the kernel, it has already been there. I didn't manually copy the

binary file.

 

--- Robin Getz                                               2009-06-10 02:15:11

lib/ncurses/Makefile

 

$(ROMFSINST) -s tset /usr/bin/reset

 

-Robin

 

--- Vivi Li                                                  2010-08-12 23:26:49

The bug disappeared.

So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes