Wind River Support Network

HomeDefectsLIN6-3817
Not to be fixed

LIN6-3817 : [5.0.1][BSP:ti-omap3] kgdboc testing console 'ctrl+c' can NOT stop 'gdb vmlinux' 'continue' running kernel on board 3530evm

Created: Mar 11, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN5-7615, LIN6-3032
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP

Description

Problem Description
======================
kgdboc testing console 'ctrl+c' can NOT stop 'gdb vmlinux' 'continue' run kernel.
Please refer to WIND00383907, it seems the same issue.

Expected Behavior
======================
'ctrl+c' in login console can stop 'gdb vmlinux' 'c' running kernel.

Log location
======================
-----------------------------
(gdb) where
#0  kgdb_breakpoint ()
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx34__Regression/14590/bitbake_build/tmp/work/ti_omap3-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:1010
#1  0xc009b088 in sysrq_handle_dbg (key=<optimized out>)
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx34__Regression/14590/bitbake_build/tmp/work/ti_omap3-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:764
#2  0xc036c358 in __handle_sysrq (key=103, check_mask=<optimized out>)
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx34__Regression/14590/bitbake_build/tmp/work/ti_omap3-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/drivers/tty/sysrq.c:525
#3  0xc036c3f8 in write_sysrq_trigger (file=<optimized out>, 
    buf=<optimized out>, count=2, ppos=<optimized out>)
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx34__Regression/14590/bitbake_build/tmp/work/ti_omap3-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/drivers/tty/sysrq.c:900
#4  0xc018110c in proc_reg_write (file=<optimized out>, 
    buf=0xc5408 "g\noot\n\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\337\3---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) 
[debug] target remote localhost:6861

[debug] gdb_connect_case : connect_target OK
continue
Continuing.
^CInterruptingInterrupting[New Thread 723]

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 723]
kgdb_breakpoint ()
    at /buildarea3/fast_build/BUILD/WRLinux_5.0.1-wrl501_lx34__Regression/14590/bitbake_build/tmp/work/ti_omap3-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/debug/debug_core.c:1010
1010		arch_kgdb_breakpoint();
(gdb) 
[debug] sendcontrol_c OK
continue
Continuing.

kgdb testing ............. FAILED

[debug] ssh -o "StrictHostKeyChecking no" -o "GSSAPIAuthentication=no"  root@128.224.178.128  "lsmod | grep module_debug_example && rmmod module_debug_example;sleep 2;ps aux | grep 732 | grep -v grep && kill 732 ; rm -rf /tmp/* ; echo "echo_result="$?"
module_debug_example     2918  0 
root       732  0.3  0.2   2568   592 ttyO0    S    15:03   0:00 -sh
echo_result=0

Steps to Reproduce

1.Configuration:
/lpg-build/cdc/fast_prod/wrlinux501/dvd_install/lx34_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=ti_omap3 --with-rcpl-version=0
2. Build:
make fs 

Other Downloads


Live chat
Online