Wind River Support Network

HomeDefectsLIN1018-2740
Not to be fixed

LIN1018-2740 : Call trace may occur when using kgdb

Created: Oct 24, 2018    Updated: May 8, 2020
Resolved Date: May 8, 2020
Found In Version: unknown
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Kernel

Description

You may encounter the folllowing error when using kgdb in intel-x86-64 targets:
root@intel-x86-64:/opt/wr-test/testcases/kts/kgdbts_V1N6F100# dmesg |sed '/kgdbts: ERROR hw_access_break_test test failed/,/kgdbts:RUN plant and detach test/d'| grep -i -w -E -B10 -A50 'Call Trace|BUG:' ||return 0
[ 327.883101] RAX: 0000000000000026 RBX: 0000000000000000 RCX: 0000000000000001
[ 327.891073] RDX: 0000000000000000 RSI: ffffffff9d0fe9de RDI: 00000000ffffffff
[ 327.898995] RBP: ffffa90a0a3e7de0 R08: 0000000000000464 R09: 0000000000000001
[ 327.906795] R10: 00000000ffffffff R11: 0000000000000001 R12: ffffffff9c4a1fd0
[ 327.914545] R13: ffffffff9c4a2870 R14: 0000000000000246 R15: ffffffffffffffff
[ 327.922247] FS: 00007f7dcb1fc740(0000) GS:ffff8c359ec00000(0000) knlGS:0000000000000000
[ 327.931034] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 327.937258] CR2: ffffffff9c4a20d0 CR3: 000000010c048006 CR4: 00000000003606f0
[ 327.945007] DR0: ffffffff9d94a8c4 DR1: 0000000000000000 DR2: 0000000000000000
[ 327.952798] DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000600
[ 327.960537] Call Trace:
[ 327.963524] param_set_kgdbts_var+0x61/0x80
[ 327.968352] param_attr_store+0x6b/0xb0
[ 327.972778] module_attr_store+0x20/0x30
[ 327.977319] sysfs_kf_write+0x3b/0x50
[ 327.981402] kernfs_fop_write+0x117/0x190
[ 327.985859] __vfs_write+0x1b/0x40
[ 327.989802] vfs_write+0xab/0x180
[ 327.993639] ksys_write+0x55/0xc0
[ 327.997488] __x64_sys_write+0x1a/0x20
[ 328.001629] do_syscall_64+0x4d/0xf0
[ 328.005693] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 328.011256] RIP: 0033:0x7f7dcb2e60c4
[ 328.015334] Code: 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b3 0f 1f 80 00 00 00 00 48 8d 05 39 36 0d 00 8b 00 85 c0 75 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 41 54 49 89 d4 55 48 89 f5 53
[ 328.035183] RSP: 002b:00007ffc8f7a5618 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 328.043546] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007f7dcb2e60c4
[ 328.051426] RDX: 0000000000000010 RSI: 000056025766b110 RDI: 0000000000000001
[ 328.059302] RBP: 000056025766b110 R08: 000000000000000a R09: 00007ffc8f7a51a0
[ 328.067250] R10: 000000000000000a R11: 0000000000000246 R12: 00007f7dcb3b5760
[ 328.075250] R13: 0000000000000010 R14: 00007f7dcb3b0740 R15: 0000000000000010
[ 328.083175] ---[ end trace 1dbcd6a61269eb47 ]---
[ 328.089883] kgdbts: ERROR nmi_sleep_test test failed
[ 328.095948] WARNING: CPU: 2 PID: 11897 at drivers/misc/kgdbts.c:938 configure_kgdbts.cold.19+0x27/0x1c3
[ 328.106317] Modules linked in: rfcomm bnep snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul snd_hda_codec_realtek crct10dif_common snd_hda_codec_generic iTCO_wdt aesni_intel iwlwifi aes_x86_64 snd_hda_intel iTCO_vendor_support snd_hda_codec crypto_simd cryptd efi_pstore glue_helper cfg80211 btusb i2c_i801 efivars snd_hda_core snd_pcm btrtl btbcm lpc_ich i915 btintel video acpi_pad thermal fan snd_timer pcc_cpufreq openvswitch nsh nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_conncount nf_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack [last unloaded: kernel_stack]
[ 328.167170] CPU: 2 PID: 11897 Comm: sh Tainted: G W O 4.18.9-yocto-standard #1
[ 328.176857] Hardware name: \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff/NUC5i3MYBE, BIOS MYBDWi30.86A.0017.2014.1127.1854 11/27/201
[ 328.192115] RIP: 0010:configure_kgdbts.cold.19+0x27/0x1c3
[ 328.198897] Code: f8 ff ff 8b 75 d0 48 c7 c7 a8 26 15 9d e8 f3 8f a2 ff e9 10 fc ff ff 48 8b 35 a4 72 4a 01 48 c7 c7 90 23 15 9d e8 db 8f a2 ff <0f> 0b e9 76 fc ff ff 44 89 f2 89 de 48 c7 c7 80 26 15 9d e8 c3 8f
[ 328.219533] RSP: 0018:ffffa90a0a3e7da0 EFLAGS: 00010246
[ 328.226145] RAX: 0000000000000028 RBX: 0000000000000000 RCX: 0000000000000001
[ 328.234603] RDX: 0000000000000000 RSI: ffffffff9d0fe9de RDI: 00000000ffffffff
[ 328.242888] RBP: ffffa90a0a3e7de0 R08: 000000000000048b R09: 0000000000000001
[ 328.251286] R10: 00000000ffffffff R11: 0000000000000001 R12: ffffffff9c4a1fd0
[ 328.259720] R13: ffffffff9c4a2870 R14: 0000000000000246 R15: ffffffffffffffff
[ 328.268117] FS: 00007f7dcb1fc740(0000) GS:ffff8c359ed00000(0000) knlGS:0000000000000000
[ 328.277469] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 328.284514] CR2: 0000560257669680 CR3: 000000010c048004 CR4: 00000000003606e0
[ 328.292670] DR0: ffffffff9d94a8c4 DR1: 0000000000000000 DR2: 0000000000000000
[ 328.300703] DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000600
[ 328.308605] Call Trace:
[ 328.311869] param_set_kgdbts_var+0x61/0x80
[ 328.317113] param_attr_store+0x6b/0xb0
[ 328.321800] module_attr_store+0x20/0x30
[ 328.326804] sysfs_kf_write+0x3b/0x50
[ 328.331290] kernfs_fop_write+0x117/0x190
[ 328.336052] __vfs_write+0x1b/0x40
[ 328.340444] vfs_write+0xab/0x180
[ 328.344621] ksys_write+0x55/0xc0
[ 328.348685] __x64_sys_write+0x1a/0x20
[ 328.353036] do_syscall_64+0x4d/0xf0
[ 328.357126] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 328.362681] RIP: 0033:0x7f7dcb2e60c4
[ 328.366715] Code: 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b3 0f 1f 80 00 00 00 00 48 8d 05 39 36 0d 00 8b 00 85 c0 75 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 41 54 49 89 d4 55 48 89 f5 53
[ 328.386295] RSP: 002b:00007ffc8f7a5618 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 328.394441] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007f7dcb2e60c4
[ 328.402146] RDX: 0000000000000010 RSI: 000056025766b110 RDI: 0000000000000001
[ 328.409981] RBP: 000056025766b110 R08: 000000000000000a R09: 00007ffc8f7a51a0
[ 328.417679] R10: 000000000000000a R11: 0000000000000246 R12: 00007f7dcb3b5760
[ 328.425468] R13: 0000000000000010 R14: 00007f7dcb3b0740 R15: 0000000000000010
[ 328.433252] ---[ end trace 1dbcd6a61269eb48 ]---
[ 328.645150] kgdbts:RUN do_fork for 100 breakpoints
[ 331.258041] KGDB: Unregistered I/O driver kgdbts, debugger disabled

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_18/WRL10_18_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --distros=wrlinux --dl-layers --accept-eula=yes

. environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env build
bitbake-layers add-layer /net/pek-lpgtest15/buildarea1/jhu2/wrlinux/wr-testing/kts-dev
echo PREFERRED_PROVIDER_virtual/kernel = linux-yocto >> conf/local.conf
echo require templates/feature/wr-kts/template.conf >> conf/local.conf
bitbake wrlinux-image-glibc-std

On target:
/opt/wr-test/testcases/kts/kgdbts_V1N6F100/runtest.sh
/opt/wr-test/testcases/kts/kgdbts_V1N6S1000/runtest.sh
Live chat
Online