FAQ: [#6037] Sometimes bf561-ezkit smp kernel crashed when rcp file to target in ltp test(2010)

Document created by Aaronwu Employee on Sep 11, 2013Last modified by Aaronwu Employee on Sep 11, 2013
Version 2Show Document
  • View in full screen mode

[#6037] Sometimes bf561-ezkit smp kernel crashed when rcp file to target in ltp test

Submitted By: Vivi Li

Open Date

2010-05-21 02:25:21    

Priority:

Medium     Assignee:

Nobody

Status:

Open     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

N/A     Board:

EZKIT Lite

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Jan_22

App binary format:

N/A     

Summary: Sometimes bf561-ezkit smp kernel crashed when rcp file to target in ltp test

Details:

 

Sometimes ltp test is stuck at rcp file to bf561-ezkit smp kernel. This problem doesn't happen on other platform, for example bf561-ezkit non-smp kernel.

 

--

************** STEP 2477: get test case [setpgrp02] from server

 

^M

root:/bin>

************** STEP 2478: execute [setpgrp02] ...

 

setpgrp02^M

setpgrp02    1  PASS  :

---pass

functionality is correct^M

root:/bin>

---done

 

************** STEP 2479: goto test_cleanup

 

 

sending marker

echo 1274247368^M

1274247368^M

roo

got marker back

 

got marker back

t:/bin>

got kernel prompt

 

************** STEP 2480: remove testcase done

 

rm -f /bin/setpgrp02^M

root:/bin> ^M

root:/bin>

System is fine.

 

===== Recording result: setpgrp02 is PASS

 

************** STEP 2481: Start to test [setpriority01]

 

(It is stuck here and can not exit until process is killed)

--

 

Check with 'ps ax' command:

--

19165 pts/4    S+     0:00 rcp ltp-full-20081130/testcases/bin/setpgrp02 root 10.100.4.50 /bin

--

 

Follow-ups

 

--- Vivi Li                                                  2010-05-21 04:32:31

I meet this situation once and I'm sure kernel is crashed. But I can not get any

error log yet.

 

--- Vivi Li                                                  2010-05-25 06:07:34

debugging information via gdbproxy. No backtrace is found.

 

(gdb) info thread

* 2 Thread 2 (Core B DBGSTAT [0x0058])  0x0000c65c in __raw_spin_lock_asm ()

  1 Thread 1 (Core A DBGSTAT [0x004A])  0x0000100f in do_one_initcall ()

(gdb) info reg

r0             0x31d110 3264784

r1             0x0      0

r2             0x3f     63

r3             0x0      0

r4             0x24e5cfc        38690044

r5             0x2      2

r6             0xcccccccd       -858993459

r7             0x3f     63

p0             0xfeb00000       0xfeb00000

p1             0x31d110 0x31d110

p2             0x86980  0x86980

p3             0x17123c 0x17123c

p4             0x296790 0x296790

p5             0x31d110 0x31d110

sp             0x24e5cd8        0x24e5cd8

fp             0x24e5d58        0x24e5d58

i0             0x24e5b70        38689648

i1             0x139458 1283160

i2             0x20     32

i3             0xf      15

m0             0x16c    364

m1             0x0      0

m2             0x0      0

m3             0x0      0

b0             0x1b     27

b1             0x0      0

b2             0x0      0

b3             0x0      0

l0             0x0      0

l1             0x0      0

l2             0x0      0

l3             0x0      0

a0x            0x0      0

a0w            0x6      6

a1x            0x0      0

a1w            0x6      6

astat          0x2002020        33562656

rets           0xc67a   0xc67a <__raw_spin_lock_asm+34>

lc0            0x0      0

---Type <return> to continue, or q <return> to quit---

lt0            0x9b23a  635450

lb0            0x9b23c  635452

lc1            0x0      0

lt1            0x99afc  629500

lb1            0x99b08  629512

cycles         0xbfc24445       -1077787579

cycles2        0x33     51

usp            0x24a9d38        0x24a9d38

seqstat        0x26     38

syscfg         0x6      6

reti           0x9b2ec  635628

retx           0x8836   34870

retn           0x24e5c04        38689796

rete           0xc65c   50780

pc             0xc65c   0xc65c <__raw_spin_lock_asm+4>

cc             0x1      1

text_addr      0x0      0

text_end_addr  0x0      0

data_addr      0x0      0

fdpic_exec     0x0      0

fdpic_interp   0x0      0

ipend          0x0      0

(gdb) thread 1

[Switching to thread 1 (Thread 1)]#0  0x0000100f in do_one_initcall ()

(gdb) info thread

  2 Thread 2 (Core B DBGSTAT [0x0058])  0x0000c65c in __raw_spin_lock_asm ()

* 1 Thread 1 (Core A DBGSTAT [0x004A])  0x0000100f in do_one_initcall ()

(gdb) info reg

r0             0x100f   4111

r1             0x100f   4111

r2             0x100f   4111

r3             0x100f   4111

r4             0x100f   4111

r5             0x100f   4111

r6             0x100f   4111

r7             0x100f   4111

p0             0x100f   0x100f

p1             0x100f   0x100f

p2             0x100f   0x100f

p3             0x100f   0x100f

p4             0x100f   0x100f

p5             0x100f   0x100f

sp             0x100f   0x100f

fp             0x100f   0x100f

i0             0x100f   4111

i1             0x100f   4111

i2             0x100f   4111

i3             0x100f   4111

m0             0x100f   4111

m1             0x100f   4111

m2             0x100f   4111

m3             0x100f   4111

b0             0x100f   4111

b1             0x100f   4111

b2             0x100f   4111

b3             0x100f   4111

l0             0x100f   4111

l1             0x100f   4111

l2             0x100f   4111

l3             0x100f   4111

a0x            0x100f   4111

a0w            0x100f   4111

a1x            0x100f   4111

a1w            0x100f   4111

astat          0x100f   4111

rets           0x100f   0x100f <do_one_initcall+3>

lc0            0x100f   4111

---Type <return> to continue, or q <return> to quit---

lt0            0x100f   4111

lb0            0x100f   4111

lc1            0x100f   4111

lt1            0x100f   4111

lb1            0x100f   4111

cycles         0x100f   4111

cycles2        0x100f   4111

usp            0x100f   0x100f

seqstat        0x100f   4111

syscfg         0x100f   4111

reti           0x100f   4111

retx           0x100f   4111

retn           0x100f   4111

rete           0x100f   4111

pc             0x100f   0x100f <do_one_initcall+3>

cc             0x0      0

text_addr      0x0      0

text_end_addr  0x0      0

data_addr      0x0      0

fdpic_exec     0x0      0

fdpic_interp   0x0      0

ipend          0x0      0

 

--- Vivi Li                                                  2010-05-25 22:53:25

Update gdb info for the crash.

 

--

test@uclinux65-561-SMP:..uclinux-dist/images> bfin-uclinux-gdb 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"...

(no debugging symbols found)

(gdb) target remote :2000

Remote debugging using :2000

[New Thread 1]

[New Thread 2]

0x0000c75c in put_core_lock ()

(gdb) bt

#0  0x0000c75c in put_core_lock ()

#1  0x0000c202 in smp_send_stop ()

#2  0x0010ff14 in panic ()

#3  0x0000c3a4 in smp_call_function ()

#4  0x0000c3c4 in smp_icache_flush_range_others ()

#5  0x0007af06 in load_flat_file ()

#6  0x0007b1fe in load_flat_binary ()

#7  0x00054102 in search_binary_handler ()

#8  0x0005503c in do_execve ()

#9  0x00001cae in sys_execve ()

#10 0x0000b0ea in system_call ()

(gdb) info thread

  2 Thread 2 (Core B DBGSTAT [0x0050])  0x0000cad8 in __raw_atomic_test_asm ()

* 1 Thread 1 (Core A DBGSTAT [0x0050])  0x0000c75c in put_core_lock ()

(gdb) thread 2

[Switching to thread 2 (Thread 2)]#0  0x0000100f in text ()

(gdb) bt

#0  0x0000100f in text ()

#1  0x0f0f0f0f in ?? ()

#2  0x0000100f in text ()

#3  0x0f0f0f0f in ?? ()

#4  0x0000100f in text ()

#5  0x0f0f0f0f in ?? ()

#6  0x0000100f in text ()

#7  0x0f0f0f0f in ?? ()

#8  0x0000100f in text ()

#9  0x0f0f0f0f in ?? ()

#10 0x0000100f in text ()

#11 0x0f0f0f0f in ?? ()

#12 0x0000100f in text ()

#13 0x0f0f0f0f in ?? ()

#14 0x0000100f in text ()

#15 0x0f0f0f0f in ?? ()

#16 0x0000100f in text ()

#17 0x0f0f0f0f in ?? ()

#18 0x0000100f in text ()

#19 0x0f0f0f0f in ?? ()

#20 0x0000100f in text ()

#21 0x0f0f0f0f in ?? ()

#22 0x0000100f in text ()

#23 0x0f0f0f0f in ?? ()

#24 0x0000100f in text ()

#25 0x0f0f0f0f in ?? ()

#26 0x0000100f in text ()

#27 0x0f0f0f0f in ?? ()

#28 0x0000100f in text ()

#29 0x0f0f0f0f in ?? ()

#30 0x0000100f in text ()

#31 0x0f0f0f0f in ?? ()

#32 0x0000100f in text ()

#33 0x0f0f0f0f in ?? ()

#34 0x0000100f in text ()

#35 0x0f0f0f0f in ?? ()

#36 0x0000100f in text ()

#37 0x0f0f0f0f in ?? ()

#38 0x0000100f in text ()

---Type <return> to continue, or q <return> to quit---q

Quit

(gdb) info reg

r0             0x100f   4111

r1             0x100f   4111

r2             0x100f   4111

r3             0x100f   4111

r4             0x100f   4111

r5             0x100f   4111

r6             0x100f   4111

r7             0x100f   4111

p0             0x100f   0x100f

p1             0x100f   0x100f

p2             0x100f   0x100f

p3             0x100f   0x100f

p4             0x100f   0x100f

p5             0x100f   0x100f

sp             0x100f   0x100f

fp             0x100f   0x100f

i0             0x100f   4111

i1             0x100f   4111

i2             0x100f   4111

i3             0x100f   4111

m0             0x100f   4111

m1             0x100f   4111

m2             0x100f   4111

m3             0x100f   4111

b0             0x100f   4111

b1             0x100f   4111

b2             0x100f   4111

b3             0x100f   4111

l0             0x100f   4111

l1             0x100f   4111

l2             0x100f   4111

l3             0x100f   4111

a0x            0x100f   4111

a0w            0x100f   4111

a1x            0x100f   4111

a1w            0x100f   4111

astat          0x100f   4111

rets           0x100f   0x100f <text+15>

lc0            0x100f   4111

---Type <return> to continue, or q <return> to quit---

lt0            0x100f   4111

lb0            0x100f   4111

lc1            0x100f   4111

lt1            0x100f   4111

lb1            0x100f   4111

cycles         0x100f   4111

cycles2        0x100f   4111

usp            0x100f   0x100f

seqstat        0x100f   4111

syscfg         0x100f   4111

reti           0x100f   4111

retx           0x100f   4111

retn           0x100f   4111

rete           0x100f   4111

pc             0x100f   0x100f <text+15>

cc             0x0      0

text_addr      0x0      0

text_end_addr  0x0      0

data_addr      0x0      0

fdpic_exec     0x0      0

fdpic_interp   0x0      0

ipend          0x0      0

(gdb)

--

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.ltp_wt_slab    application/octet-stream    26645    Vivi Li

Attachments

Outcomes