FAQ: [#7067] kgdb test fails at case 10 in trunk(2012)

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

[#7067] kgdb test fails at case 10 in trunk

Submitted By: Vivi Li

Open Date

2012-04-19 03:46:26     Close Date

2012-05-01 23:03:52

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2012_Feb_15

App binary format:

N/A     

Summary: kgdb test fails at case 10 in trunk

Details:

 

KGDB test fails at case 10 in trunk, including test through Ethernet and uart.

 

Last passed time: 2012_Mar_12_23_10.

--

kernel:    Linux release 3.2.0-ADI-2012R1-pre-00342-g3ef373c, build #180 Tue Mar 13 02:49:30 CST 2012

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

user-dist: release svn-10648, build #2689 Tue Mar 13 02:48:45 CST 2012

--

 

First failed time: 2012_Mar_15_13_31.

--

kernel:    Linux release 3.2.0-ADI-2012R1-pre-00347-g9e8145c, build #192 Thu Mar 15 16:38:30 CST 2012

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

user-dist: release svn-10652, build #2426 Thu Mar 15 16:37:43 CST 2012

--

 

Bellow is the KGDB Ethernet test log:

--

Starting Kernel at = 001d3de4

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

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

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

NET: Registered protocol family 16

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

Blackfin DMA Controller

stamp_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@7

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: 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

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 92

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

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

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

kgdboe: local port 6443

kgdboe: local IP 10.100.4.50

kgdboe: interface 'eth0'

kgdboe: remote port 6442

kgdboe: remote IP 10.100.4.174

kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff

kgdboe: device eth0 not up yet, forcing it

kgdboe: carrier detect appears untrustworthy, waiting 4 seconds

PHY: bfin_mii_bus-0:01 - Link is Up - 100/Full

kgdb: Registered I/O driver kgdboe.

kgdboe: debugging over ethernet enabled

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

TCP cubic registered

NET: Registered protocol family 17

console [netcon0] enabled

netconsole: network logging started

rtc-bfin rtc-bfin: setting system clock to 1970-08-08 23:04:05 UTC (19004645)

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

Freeing unused kernel memory: 7292k 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 (2012-04-17 18:58:31 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 3.3.0-ADI-2012R1-pre-00361-g2501d57, build #360 Tue Apr 17 22:24:08 CST 2012

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

user-dist: release svn-10654, build #5479 Tue Apr 17 22:23:21 CST 2012

root:/> successful boot attempt

************** STEP 3: Start KGDB TEST (ethernet)

 

ifconfig eth0 10.100.4.50

root:/> spawn bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

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

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

Type "show copying" to see the conditions.

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

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

(gdb)

Case 1 ...PASS

 

Case 1 ...PASS

target remote udp:10.100.4.50:6443

warning: The remote protocol may be unreliable over UDP.

Some events may be lost, rendering further debugging impossible.

Remote debugging using udp:10.100.4.50:6443

 

Case 2 ...PASS

 

Case 2 ...PASS

kgdb_breakpoint () at kernel/debug/debug_core.c:993

993             wmb(); /* Sync point after breakpoint */

(gdb) break kgdb_test

Breakpoint 1 at 0x8016: file arch/blackfin/kernel/kgdb_test.c, line 53.

 

Case 3 ...PASS

 

Case 3 ...PASS

(gdb) c

Continuing.

 

Case 4 ...PASS

 

Case 4 ...PASS

 

root:/> [New Thread 170]

[Switching to Thread 170]

 

Breakpoint 1, kgdb_test (name=0x16fdf4 "hello world!", len=12, count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

 

Case 5 ...PASS

 

Case 5 ...PASS

53      {

(gdb) hbreak 58

Hardware assisted breakpoint 2 at 0x8040: file arch/blackfin/kernel/kgdb_test.c, line 58.

(gdb)

Case 6 ...PASS

 

Case 6 ...PASS

info b

Num Type           Disp Enb Address    What

1   breakpoint     keep y   0x00008016 in kgdb_test at arch/blackfin/kernel/kgdb_test.c:53

        breakpoint already hit 1 time

2   hw breakpoint  keep y   0x00008040 in kgdb_test_proc_read at arch/blackfin/kernel/kgdb_test.c:58

 

Case 7 ...PASS

 

Case 7 ...PASS

(gdb) list

48      }

49

50      #endif

51

52      noinline int kgdb_test(char *name, int len, int count, int z)

53      {

54              pr_alert("kgdb name(%d): %s, %d, %d\n", len, name, count, z);

55              count = z;

56              return count;

57      }

(gdb)

Case 8 ...PASS

 

Case 8 ...PASS

bt

#0  kgdb_test (name=0x16fdf4 "hello world!", len=12, count=85, z=16) at arch/blackfin/kernel/kgdb_test.c:53

 

Case 9 ...PASS

 

Case 9 ...PASS

#1  0x00008060 in kgdb_test_proc_read (file=<value optimized out>, buf=<value optimized out>, count=<value optimized out>, ppos=0x2079eec) at arch/blackfin/kernel/kgdb_test.c:63

#2  0x00081d58 in proc_reg_read (file=0x27dc840, buf=0xc <Address 0xc out of bounds>, count=85, ppos=0x2079eec) at fs/proc/inode.c:195

#3  0x00053dba in vfs_read (file=0x27dc840, buf=0x2bf3e88 "", count=<value optimized out>, pos=0x2079eec) at fs/read_write.c:379

#4  0x00053ed0 in sys_read (fd=<value optimized out>, buf=0x2bf3e88 "", count=4096) at fs/read_write.c:469

#5  0xffa009f2 in system_call () at include/linux/wait.h:99

(gdb) c

Continuing.

spawn /bin/sh

uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> ps aux | grep bfin-uclinux-gdb

test     19393  1.1  1.6  39852 33592 pts/2    Ss+  22:25   0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test     19404  0.0  0.0   3064   728 pts/4    S+   22:25   0:00 grep bfin-uclinux-gdb

uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb> kill -9 `pidof  bfin-uclinux-gdb`

uclinux52-bf537-spinet:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

Last passed time: 2012_Mar_12_23_10.

--

 

Follow-ups

 

--- Sonic Zhang                                              2012-04-26 06:32:11

fixed.

 

--- Vivi Li                                                  2012-05-02 00:00:27

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.kgdb    application/octet-stream    51944    Vivi Li

config.linux.kgdb    application/octet-stream    37770    Vivi Li

Outcomes