Wind River Support Network

HomeDefectsLIN6-1150
Not to be fixed

LIN6-1150 : LTP test case of msgctl10 failed on bcm_xlp BSP

Created: Dec 12, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP

Description

The LTP test case of msgctl10 failed on the bcm_xlp BSP, shown as below.


root@XLP208B0:/opt/ltp# ./testcases/bin/msgctl10
INFO: rcu_preempt detected stalls on CPUs/tasks: {} (detected by 6, t=2102 jiffies, g=1402, c=1401, q=5656633)
INFO: Stall ended before state dump start
INFO: rcu_preempt detected stalls on CPUs/tasks: { P4791 P4791} (detected by 6, t=2102 jiffies, g=1405, c=1404, q=6198832)
msgctl10        R  running task        0  4791   4783 0x00100000
Stack : c00000003379fb20 0000000000000004 0000000000000064 c00000003379fab0
	  ffffffffc1033fb8 ffffffffc1a1c520 ffffffffc1a07cb0 0000e6be37fdc2f8
	  0000000000000000 ffffffffc1a70cb8 c000000047902a60 c0000000762bafc0
	  c000000047902a60 c0000000762bafc0 ffffffffc1ef0000 0000000000000000
	  0000000000000001 c00000003379fca8 ffffffffc104207c 0000000000000000
	  ffffffffc119e0cc 0000000000000000 0000000000000000 ffffffffc1eea480
	  0000000000000001 c000000047902a60 0000000000000000 000000c8c8c8c8c8
	  00000001200244dd 0000000000000018 000000000000004e c00000003379fcc0
	  0000000000000000 0000000000000000 1010101010101010 c000000047902a60
	  c0000000762bafc0 ffffffffc1ef0000 0000000000000000 0000000000000001
	  ...
Call Trace:
[<ffffffffc17aa720>] __schedule+0x4c0/0xa80
[<ffffffffc17ab144>] preempt_schedule+0x54/0x78
[<ffffffffc119e0cc>] find_and_get_object+0x11c/0x190
[<ffffffffc119e878>] delete_object_full+0x28/0x70
[<ffffffffc1199208>] kfree+0x1b8/0x328
[<ffffffffc13b06d0>] free_msg+0x38/0x78
[<ffffffffc13b2040>] do_msgrcv+0x220/0x430
[<ffffffffc104f8e4>] handle_sys64+0x44/0x68

msgctl10        R  running task        0  4791   4783 0x00100000
Stack : c00000003379fb20 0000000000000004 0000000000000064 c00000003379fab0
	  ffffffffc1033fb8 ffffffffc1a1c520 ffffffffc1a07cb0 0000e6be37fdc2f8
	  0000000000000000 ffffffffc1a70cb8 c000000047902a60 c0000000762bafc0
	  c000000047902a60 c0000000762bafc0 ffffffffc1ef0000 0000000000000000
	  0000000000000001 c00000003379fca8 ffffffffc104207c 0000000000000000
	  ffffffffc119e0cc 0000000000000000 0000000000000000 ffffffffc1eea480
	  0000000000000001 c000000047902a60 0000000000000000 000000c8c8c8c8c8
	  00000001200244dd 0000000000000018 000000000000004e c00000003379fcc0
	  0000000000000000 0000000000000000 1010101010101010 c000000047902a60
	  c0000000762bafc0 ffffffffc1ef0000 0000000000000000 0000000000000001
	  ...
Call Trace:
[<ffffffffc17aa720>] __schedule+0x4c0/0xa80
[<ffffffffc17ab144>] preempt_schedule+0x54/0x78
[<ffffffffc119e0cc>] find_and_get_object+0x11c/0x190
[<ffffffffc119e878>] delete_object_full+0x28/0x70
[<ffffffffc1199208>] kfree+0x1b8/0x328
[<ffffffffc13b06d0>] free_msg+0x38/0x78
[<ffffffffc13b2040>] do_msgrcv+0x220/0x430
[<ffffffffc104f8e4>] handle_sys64+0x44/0x68

kmemleak: Cannot allocate a kmemleak_object structure
kmemleak: Cannot allocate a kmemleak_object structure
kmemleak: Kernel memory leak detector disabled
kmemleak: Cannot allocate a kmemleak_object structure
kmemleak: Cannot allocate a kmemleak_object structure
tcf-agent invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
kmemleak: Automatic memory scanning thread ended
CPU: 3 PID: 539 Comm: tcf-agent Not tainted 3.10.19-WR6.0.0.1_standard #1
Stack : c0000000f3f6f638 0000000040808800 ffffffffc1075038 0000000000000000
	  0000000000000000 0000000000000000 0000000000000000 0000000000000000
	  0000000000000000 0000000000000000 0000000000000000 00000000f0000000
	  c0000000f3f6f698 ffffffffc1075028 0000000000000000 0000000000000000
	  0000000000000000 ffffffffc1e00000 ffffffffc1e011c8 ffffffffc1e00000
	  ffffffffc18baa98 ffffffffc1a0cd37 ffffffffc1e011c8 c0000000e0cc9a78
	  000000000000021b 0000000000000003 ffffffffc1a0ce30 0000000000000002
	  c0000000f3f6f718 c0000000f3f6f628 c0000000f3f6f740 ffffffffc17a1598
	  c0000000f3f6f778 ffffffffc1076bc8 c0000000e0cc9740 ffffffffc18baa98
	  0000000000000003 ffffffffc1048b48 0000000000000000 0000000000000000
	  ...
Call Trace:
[<ffffffffc1048b48>] show_stack+0xd8/0xf8
[<ffffffffc17a1598>] dump_header.isra.14+0x8c/0x21c
[<ffffffffc11480d4>] oom_kill_process+0x37c/0x500
[<ffffffffc1148938>] out_of_memory+0x350/0x388
[<ffffffffc114d9cc>] __alloc_pages_nodemask+0x784/0x850
[<ffffffffc1146a98>] filemap_fault+0x230/0x4f0
[<ffffffffc116f038>] __do_fault+0x98/0x670
[<ffffffffc1172e10>] handle_pte_fault+0xa8/0xc28
[<ffffffffc17ae1f8>] do_page_fault+0x158/0x4c8
[<ffffffffc1041f04>] resume_userspace_check+0x0/0x10

Mem-Info:
DMA per-cpu:
CPU    0: hi:    6, btch:   1 usd:   5
CPU    1: hi:    6, btch:   1 usd:   5
CPU    2: hi:    6, btch:   1 usd:   5
CPU    3: hi:    6, btch:   1 usd:   5
CPU    4: hi:    6, btch:   1 usd:   5
CPU    5: hi:    6, btch:   1 usd:   5
CPU    6: hi:    6, btch:   1 usd:   5
CPU    7: hi:    6, btch:   1 usd:   5
Normal per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
CPU    1: hi:    0, btch:   1 usd:   0
CPU    2: hi:    0, btch:   1 usd:   0
CPU    3: hi:    0, btch:   1 usd:   0
CPU    4: hi:    0, btch:   1 usd:   0
CPU    5: hi:    0, btch:   1 usd:   0
CPU    6: hi:    0, btch:   1 usd:   0
CPU    7: hi:    0, btch:   1 usd:   0
active_anon:832 inactive_anon:46 isolated_anon:0
 active_file:12 inactive_file:14 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:4161 slab_reclaimable:151 slab_unreclaimable:41610
 mapped:14 shmem:56 pagetables:308 bounce:0
 free_cma:0
DMA free:700352kB min:6080kB low:7552kB high:9088kB active_anon:14272kB inactive_anon:128kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):64kB present:2801664kB managed:2785984kB mlocked:0kB dirty:0kB writeback:0kB mapped:64kB shmem:128kB slab_reclaimable:0kB slab_unreclaimable:1813184kB kernel_stack:215744kB pagetables:8064kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 31 31
Normal free:92480kB min:1088kB low:1344kB high:1600kB active_anon:32704kB inactive_anon:2816kB active_file:768kB inactive_file:832kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:524288kB managed:513280kB mlocked:0kB dirty:0kB writeback:0kB mapped:832kB shmem:3456kB slab_reclaimable:9664kB slab_unreclaimable:351552kB kernel_stack:34688kB pagetables:6912kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 5543*64kB (UM) 1796*128kB (UMR) 696*256kB (UM) 192*512kB (UMR) 24*1024kB (UMR) 4*2048kB (UM) 0*4096kB 0*8192kB 0*16384kB 0*32768kB 0*65536kB 0*131072kB 0*262144kB 0*524288kB = 893888kB
Normal: 1059*64kB (UMR) 248*128kB (UMR) 22*256kB (UM) 1*512kB (M) 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB 0*65536kB 0*131072kB 0*262144kB 0*524288kB = 105664kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=8192kB
83 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
65280 pages RAM
13709 pages reserved
446 pages shared
33972 pages non-shared
[ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[  135]     0   135       75       28       3        0         -1000 udevd
[  337]     0   337       55       17       3        0             0 atd
[  346]   995   346       69       13       3        0             0 dbus-daemon
[  353]     0   353      109       22       3        0         -1000 sshd
[  375]     0   375       56       16       3        0             0 rpcbind
[  412]   994   412      190       78       3        0             0 named
[  424]     0   424       80       12       3        0             0 irqbalance
[  425]     0   425     3676       25       3        0             0 rsyslogd
[  436]   997   436       84       26       3        0             0 avahi-daemon
[  437]   997   437       84       20       3        0             0 avahi-daemon
[  523]     0   523      123       30       3        0             0 master
[  526]     0   526       57       18       3        0             0 crond
[  529]   999   529      123       31       3        0             0 pickup
[  530]   999   530      124       30       3        0             0 qmgr
[  537]     0   537     1373       12       3        0             0 tcf-agent
[  541]     0   541       90       38       3        0             0 login
[  542]     0   542       42       14       3        0             0 mingetty
[  543]     0   543       42       14       3        0             0 mingetty
[  544]     0   544       42       14       3        0             0 mingetty
[  545]     0   545       42       15       3        0             0 mingetty
[  546]     0   546       42       14       3        0             0 mingetty
[  549]     0   549       72       21       3        0         -1000 udevd
[  550]     0   550       74       23       3        0         -1000 udevd
[  551]     0   551       77       27       3        0             0 sh
[  555]     0   555       43       16       3        0             0 msgctl10
[ 6441]     0  6441       43        7       3        0             0 msgctl10
Out of memory: Kill process 412 (named) score 1 or sacrifice child
Killed process 412 (named) total-vm:12160kB, anon-rss:4800kB, file-rss:192kB

msgctl10    0  TWARN  :  	Fork failed (may be OK if under stress)
msgctl10    0  TWARN  :  	Fork failed (may be OK if under stress)
msgctl10    0  TWARN  :  	Fork failed (may be OK if under stress)
msgctl10    0  TWARN  :  	Fork failed (may be OK if under stress)
msgctl10    1  TFAIL  :  	Fork failed (may be OK if under stress)


root@XLP208B0:/opt/ltp# uname -a
Linux XLP208B0 3.10.19-WR6.0.0.1_standard #1 SMP PREEMPT Fri Dec 13 11:12:41 CST 2013 mips64 GNU/Linux

Workaround

N/A

Steps to Reproduce

1. Build kernel and rootfs

/lpg-build/cdc/fast_prod/wrlinux6001/dvd_install/lastest_dvd/wrlinux-6/wrlinux/configure \
  --enable-board=bcm_xlp \
  --enable-kernel=standard \
  --enable-rootfs=glibc_std \
  --with-layer=wr-driver-support,/buildarea2/lliu2/wr-testing/kts-test,/buildarea2/lliu2/wr-testing/bts \
  --with-template=feature/kts-basic,feature/kts-extended,feature/kts-standard \
  --enable-jobs=18 \
  --enable-parallel-pkgbuilds=18

make fs

2. Load the images to the target (barcode:20373)

3. Run the ltp test case

root@XLP208B0:/opt/ltp# ./testcases/bin/msgctl10
Live chat
Online