Wind River Support Network

HomeDefectsLIN6-1222
Not to be fixed

LIN6-1222 : "cat /sys/kernel/debug/kmemleak" will hung up on fsl-b4xxx bsp preempt rt

Created: Dec 10, 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

There are too many outputs were printed out, when the command of "cat /sys/kernel/debug/kmemleak" was run. And this will lead the KTS test case of kmemleak to time out.

 root@localhost:~# cat /sys/kernel/debug/kmemleak 
unreferenced object 0xc0000000fb001160 (size 16):
  comm "swapper/0", pid 0, jiffies 4294937322 (age 28240.020s)
  hex dump (first 16 bytes):
    70 67 74 61 62 6c 65 2d 32 5e 39 00 de ad be ef  pgtable-2^9.....
  backtrace:
unreferenced object 0xc0000000fb001180 (size 16):
  comm "swapper/0", pid 0, jiffies 4294937322 (age 28240.020s)
  hex dump (first 16 bytes):
    70 67 74 61 62 6c 65 2d 32 5e 37 00 de ad be ef  pgtable-2^7.....
  backtrace:
unreferenced object 0xc0000000fb850000 (size 1024):
  comm "swapper/0", pid 1, jiffies 4294937411 (age 28239.140s)
  hex dump (first 32 bytes):
    c0 00 00 00 fb 81 f0 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f82fde00 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f82fdf00 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f8352000 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f8352100 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f8352200 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
unreferenced object 0xc0000000f8352300 (size 256):
  comm "swapper/0", pid 1, jiffies 4294937732 (age 28235.980s)
  hex dump (first 32 bytes):
...

Too many outputs to stop.


http://pek-rth-vm1.wrs.com/publiclog/wrl60/kts/RCPL0001-LX03/fsl-b4xxx/b4860qds-Rev2/preempt-rt//kmemleak.log

Steps to Reproduce

1. Build the kernel and rootfs 

/lpg-build/cdc/fast_prod/wrlinux6001/dvd_install/lastest_dvd/wrlinux-6/wrlinux/configure \
  --enable-board=fsl-b4xxx \
  --enable-kernel=preempt-rt \
  --enable-rootfs=glibc_std \
  --with-layer=wr-driver-support,./wr-testing/kts-test,./wr-testing/bts \
  --with-template=feature/kts-basic,feature/kts-extended,feature/kts-standard \
  --enable-jobs=8 \
  --enable-parallel-pkgbuilds=8

make fs

2. To load images to the target

3. To run the KTS test case of kmemleak

root@localhost:/opt/wr-test# time ./main_test.sh -u 1 -s kmemleak

	>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
	The test case list : 
	 kmemleak
	<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

	Start kts Case kmemleak at Tue Dec 10 04:52:49 UTC 2013 with duration 36000 s
^C      please wait / 

real	251m6.310s
user	0m0.381s
sys	217m59.094s


Live chat
Online