Wind River Support Network

HomeDefectsLIN5-5428
Fixed

LIN5-5428 : [WRLinux 5.0.1 Async][fsl_t4xxx] kgdbts triggers a call trace if using a relocatable kernel

Created: Sep 9, 2013    Updated: Dec 19, 2017
Resolved Date: Sep 23, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

When eanbling relocation and while also enabling kgdbts, the kernel attempts to access a illegal address when executing kgdbts at boot stage.

kgdb: Registered I/O driver kgdbts.
kgdbts:RUN plant and detach test

Entering kdb (current=0xc00000017960a040, pid 1) on processor 13 due to Keyboard Entry
[13]kdb> kgdbts:RUN sw breakpoint test
kgdbts:RUN bad memory access test
kgdbts:RUN singlestep test 1000 iterations
Unable to handle kernel paging request for data at address 0x00000068
Faulting instruction address: 0xc00000000001f614
Oops: Kernel access of bad area, sig: 11 [#1]
PREEMPT SMP NR_CPUS=24 LTT NESTING LEVEL : 0 
T4240 QDS
Modules linked in:
NIP: c00000000001f614 LR: c0000000004dd548 CTR: c0000000004b31d0
REGS: c00000017960f9b0 TRAP: 0300   Not tainted  (3.4.43-rt56-WR5.0.1.0_preempt-rt)
MSR: 0000000080001000 <ME>  CR: 28044084  XER: 20000000
SOFTE: 1
DEAR: 0000000000000068, ESR: 0000000000000000
TASK = c00000017960a040[1] 'swapper/0' THREAD: c00000017960c000 CPU: 13
GPR00: c0000000004dd548 c00000017960fc30 c000000001481c68 0000000000000031 
GPR04: 0000000000000000 0000000000000000 c000000001436cf0 000000000001ffff 
GPR08: c0000000014a6100 c0000000014d3c48 0000000000000068 0000000080029200 
GPR12: 0000000024044082 c00000000fffd400 0000000000000068 000000007ffb0b08 
GPR16: 0000000000000000 0000000000000000 000000007fb32880 0000000000000000 
GPR20: 0000000000000000 0000000000000000 c000000001336c70 c000000001337338 
GPR24: c000000000b68008 0000000051eb851f 00000000000003e8 0000000000000000 
GPR28: c000000001555d68 0000000000000000 c0000000013ca758 c000000001336c68 
NIP [c00000000001f614] exc_debug_debug_book3e+0x50/0x130
LR [c0000000004dd548] .configure_kgdbts+0x2a8/0x5a0
Call Trace:
[c00000017960fc30] [c0000000004dd540] .configure_kgdbts+0x2a0/0x5a0 (unreliable)
[c00000017960fd10] [c000000000c46b38] .init_kgdbts+0x2c/0x40
[c00000017960fd90] [c0000000000015e8] .do_one_initcall+0x68/0x1f0
[c00000017960fe50] [c000000000c1bc50] .kernel_init+0x1e8/0x2c4
[c00000017960ff90] [c00000000001981c] .original_kernel_thread+0x54/0x70
Instruction dump:
914d02c8 7d7f8aa6 716a4000 40820030 7dde42a6 55ce1838 3d400000 614a0000 
794a07c6 654a0000 614a0000 7d4a7214 <e94a0000> 394a4000 f94d0310 e82d0310

Steps to Reproduce

1)
wrlinux/configure --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-kernel=standard  --enable-test=yes --enable-rootfs=glibc-std --enable-board=fsl_t4xxx --with-template=feature/kexec,feature/kdump
2) boot up target

Other Downloads


Live chat
Online