Wind River Support Network

HomeDefectsLIN5-7117
Fixed

LIN5-7117 : [5.0.1][BSP:fsl-e500mc] kgdboc test failed due to target snuff out while step debug moules on preempt_rt

Created: Mar 5, 2013    Updated: Dec 19, 2017
Resolved Date: Mar 17, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.1
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP

Description

Problem Description
======================
kgdboc test failed due to target snuff out while step debug moules on preempt_rt

Expected Behavior
======================
It works well.

Observed Behavior
======================
On Intel-atom,stm-spear13xx, this case passed.

Logs (dmesg)
======================

root@localhost:~# cat /proc/version 
Linux version 3.4.28-rt40-WR5.0.1.0_preempt-rt (wr-taf@pek-lpgtest1) (gcc version 4.6.3 (Wind River Linux Sourcery CodeBench 4.6a-99) ) #1 SMP PREEMPT RT Sat Mar 2 05:30:03 CST 2013
root@localhost:~# cat /proc/cmdline 
root=/dev/nfs rw nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/21603/rootfs ip=128.224.165.103:128.224.165.20:128.224.165.1:255.255.255.0::eth1:off console=ttyS0,115200
root@localhost:~# echo "ttyS0,115200" > /sys/module/kgdboc/parameters/kgdboc 
kgdb: Registered I/O driver kgdboc.
root@localhost:~# echo g > /proc/sysrq-trigger 
SysRq : DEBUG
KGDB or $3#33 for KDB
+$#00+$OK#9a+$S05#b8+$OK#9a+$QC0586#67+$#00+$#00+$c0a3a1f8e7477e60ea2e80600000001c0000000000000000c03aeee$7c0004ac#22+$c00b0c3000000000244424840000000700000700c09e830002000000c09e0000e7477e70c00b0c3000000067c09e0000e7477ea0c0398828c0076330ea2e8060#59+$#00+$#00+$#00+$#00+$OK#9a+$#00+$OK#9a+root@localhost:~# 
root@localhost:~# 
root@localhost:~# 
root@localhost:~# modprobe module_debug_example
$T05thread:058c;#a6+$c00b0834#f4+$c00b0834#f4+$f9291528#da+$6a62643200000060f92e9470#0d+$2e696e69742e706c74008c68e9138c68000000000000000000000000000000#91+$e9e19660f92e95f0#43+$2e73796d74616200e9e19668e9e1966800000000deadbeefdeadbeefdeadbe#dc+$e97ab4a0f92f13b0#8a+$2e73747274616200e97ab4a8e97ab4a800000000deadbeefdeadbeefdeadbe#4e+$c09e66b8#37+$7c0802a6#fb+$4e800020#c3+$7c0802a6#fb+$4e800020#c3+$c00b0834eb1dbe30e8a68060c09e82e800000001f946c5a8eb1dbd688973491ce8a68060c09e82e8007e9000fffffff784002424100252201000c4ac1001e0a81000c6300000000000000000c009d9e4f946900000000000f946c5f0f946c5a8000004380000001b00000001eb1da0000000000000000000f946c5a8000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00b08340002900284002428c06f7208c00b083420000000000000000000000000000000#9b+$c06f7208#00+$#00+$#00+$#00+$#00+$#00+$OK#9a+$7c0802a6#fb+$OK#9a+$T05thread:058c;#a6+$c00b0838#f8+$#00+$OK#9a+$OK#9a+$OK#9a+BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1420, name: modprobe
Call Trace:
Welcome to Module Debug Sample !
privateData is at 0xf946c454. globalData is at 0xf946c528
Address of putABreakPointHere is 0xf946c200.
Mo$T05thread:058d;#a7+$f946c218#07+$f946c218#07+$OK#9a+$OK#9a+$3d20f947#03+$90010014#8f+$3d20f947#03+$90010014#8f+$f946c044e7527fc0eb1780e000000000c0007fd42400248400000000c000f17c00029002000000000000000000000000e7526000100252201000c4ac1001e0a81000c6300000000000000000c009d9e4f946900000000000f946c5f0f946c5a8000004380000001b00000001f946c38cf946c5a4f946c728f946c758000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f946c2180002900224002484f946c044c007e35c20000000000000000000000000000000#93+$e7527fd0f946c000f946c00000000000e7527ff0f946c04400800900c0a4000000000000f946c000f946c0000000000000000000c000f1a08400242800000000#0e+$3d20f947#03+$OK#9a+dul$T05thread:058d;#a7+$f946c21c#32+$#00+$OK#9a+$OK#9a+$8169c754#db+$OK#9a+e Module Debug Sample loaded.  initModuleTest exiting.
BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1421, name: modprobe
Call Trace:
$T05thread:058c;#a6+$c00b0834#f4+$c00b0834#f4+$f9291528#da+$6a6264320000000000000000000000000000000002488100252201000c4ac1001e0a81000c6300000000000000000c009d9e4f946900000000000f946c5f0f946c5a8000004380000001b00000001eb1da0000000000000000000f946c5a8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00b083c0002900284002488c06f7208c00b083420000000000000000000000000000000#3b+$c06f7208#00+root@localhost:~# 
root@localhost:~# 
root@localhost:~# 
root@localhost:~# 
root@localhost:~# 
root@localhost:~# 
root@localhost:~# BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1420, name: modprobe
Call Trace:
SysRq : DEBUG
$T05thread:057f;#a8+$c00b0c08#20+$c00b0c08#20+$OK#9a+$OK#9a+$#00+$7d821008#ce+$7c0004ac#22+$7d821008#ce+$7c0004ac#22+$c0a3a1f8e756fe50e79cf060000000670000000000000000c03aeee40001ffffc0a40b78c0a4000000008000000000012404808251d4e31e0000000000000000c0000a00000000143fffffff03fe1000000000157ff3d33cc0a28000c00bdbf8000000e100000001c09ff7d800000007c0a34280c09e830000000067c09e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00b0c080002900224048084c0398828c00b0ba400000000000000000000000000000000#d1+$00000700000080000200000000000007e756fe60c09e830000000067c09e0000e756fe90c0398828c03b6ab000000081000000e10000006700000000ea2d7000#9e+$OK#9a+$OK#9a+[sched_delayed] sched: RT throttling activated

root@localhost:~# 
root@localhost:~# lsmod 
Module                  Size  Used by
jbd2                   84117  1 ext4
vfat                   10797  1 
fat                    55346  1 vfat
minix                  31745  0 
nls_cp437               5132  1 
nls_iso8859_1           3466  1 
module_debug_example     2500  0 
ext4                  469729  0 
root@localhost:~# dmesg | tail
Address of putABreakPointHere is 0xf946c200.
Module Module Debug Sample loaded.  initModuleTest exiting.
BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1421, name: modprobe
Call Trace:
BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1420, name: modprobe
Call Trace:
SysRq : DEBUG
[sched_delayed] sched: RT throttling activated
root@localhost:~# 
root@localhost:~# 
root@localhost:~# SysRq : DEBUG
$T05thread:057f;#a8+$c00b0c08#20+$OK#9a+$OK#9a+$#00+$7d821008#ce+$7c0004ac#22+$7d821008#ce+$7c0004ac#22+$c0a3a1f8e756fe50e79cf060000000670000000000000000c03aeee40001ffffc0a40b78c0a4000000008000000000012404808251d4e31e0000000000000000c0000a00000000143fffffff03fe1000000000157ff3d33cc0a28000c00bdbf8000000e100000001c09ff7d800000007c0a34280c09e830000000067c09e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00b0c080002900224048084c0398828c00b0ba400000000000000000000000000000000#d1+$00000700000080000200000000000007e756fe60c09e830000000067c09e0000e756fe90c0398828c03b6ab000000081000000e10000006700000000ea2d7000#9e+$OK#9a+$OK#9a+

.......... target snuff out..........

------------------------------------
 
wr-taf@pek-lpgtest1:/buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133$ 
wr-taf@pek-lpgtest1:/buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133$ /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/toolchain/powerpc-wrs-linux-gnuspe-gdb /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/build/linux-windriver-3.4-r0/linux-fsl-e500mc-preempt-rt-build/vmlinux
GNU gdb (Wind River Linux Sourcery CodeBench 4.6a-99) 7.4.50.20120716-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-wrs-linux-gnu".
For bug reporting instructions, please see:
<support@windriver.com>...
Reading symbols from /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux-fsl-e500mc-preempt-rt-build/vmlinux...done.
(gdb) target remote 128.224.158.220:6661
Remote debugging using 128.224.158.220:6661
warning: Could not load shared library symbols for 7 libraries, e.g. jbd2.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
kgdb_breakpoint () at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:1010
1010		arch_kgdb_breakpoint();
(gdb) path /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/build/kernel-test-modules-0.1-r0/
Executable and object file path: /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/build/kernel-test-modules-0.1-r0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
(gdb) break bpHere.c:putABreakPointHere
No source file named bpHere.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (bpHere.c:putABreakPointHere) pending.
(gdb) info b
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   <PENDING>  bpHere.c:putABreakPointHere
(gdb) c
Continuing.
[New Thread 1420]
[New Thread 1421]
[Switching to Thread 1421]

Breakpoint 1, putABreakPointHere () at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/kernel-test-modules-0.1-r0/bpHere.c:20
20	    siLocal++;
(gdb) s

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 1420]
0xc00b083c in module_event (self=<optimized out>, val=0, data=0xf946c5a8 <__this_module>)
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:699
699	{
(gdb) c
Continuing.

^CInterruptingInterrupting[New Thread 1407]

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 1407]
kgdb_breakpoint () at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:1010
1010		arch_kgdb_breakpoint();
(gdb) c
Continuing.


^CInterruptingInterrupting
Program received signal SIGTRAP, Trace/breakpoint trap.
kgdb_breakpoint () at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:1010
1010		arch_kgdb_breakpoint();
(gdb) info b
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   0xf946c218 in putABreakPointHere 
                                           at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/kernel-test-modules-0.1-r0/bpHere.c:20
	breakpoint already hit 1 time
(gdb) c
Continuing.

Steps to Reproduce

1)/lpg-build/cdc/fast_prod/wrlinux501/dvd_install/lx31_12sp/wrlinux-5/wrlinux/configure --enable-jobs=8 --enable-parallel-pkgbuilds=4 --enable-kernel=preempt-rt --with-layer=/lpg-build/cdc/bsp/wrlinux-5.0.1/wr-testing/kts,/lpg-build/cdc/bsp/wrlinux-5.0.1/wr-testing/bts,, --enable-test=yes --enable-rootfs=glibc-std --enable-board=fsl_e500mc --with-rcpl-version=auto

2) 
   1> target: 
    root@localhost:~# echo "ttyS0,115200" > /sys/module/kgdboc/parameters/kgdboc 
    root@localhost:~# echo g > /proc/sysrq-trigger 
   2> host:
   wr-taf@pek-lpgtest1:/buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133$ /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/toolchain/powerpc-wrs-linux-gnuspe-gdb /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/build/linux-windriver-3.4-r0/linux-fsl-e500mc-preempt-rt-build/vmlinux
(gdb) target remote 128.224.158.220:6661
(gdb) path /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/build/kernel-test-modules-0.1-r0/
(gdb) break bpHere.c:putABreakPointHere
(gdb) info b
(gdb) c

    3> target: 
    root@localhost:~# modprobe module_debug_example
    4> host:
    (gdb) s
    (gdb) c
    
     5> target: 
     root@localhost:~# lsmod 
module_debug_example     2500  0 
     root@localhost:~# dmesg | tail
Address of putABreakPointHere is 0xf946c200.
Module Module Debug Sample loaded.  initModuleTest exiting.
BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1421, name: modprobe
Call Trace:
BUG: sleeping function called from invalid context at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx31_RC0_Regression/14133/bitbake_build/tmp/work/fsl_e500mc-wrs-linux/linux-windriver-3.4-r0/linux/mm/slab.c:3321
in_atomic(): 0, irqs_disabled(): 1, pid: 1420, name: modprobe
Call Trace:
SysRq : DEBUG
    6> host            
(gdb) c
^CInterruptingInterrupting[New Thread 1407]
Program received signal SIGTRAP, Trace/breakpoint trap.
(gdb) c
Continuing.
^C
(gdb) info b
(gdb) c
Continuing.

Other Downloads


Live chat
Online