Wind River Support Network

HomeDefectsLIN5-7612
Fixed

LIN5-7612 : [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: Dec 19, 2017
Resolved Date: Mar 19, 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 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