Fixed
Created: Jul 5, 2016
Updated: Dec 3, 2018
Resolved Date: Jul 18, 2016
Found In Version: 8.0.0.3
Fix Version: 8.0.0.8
Severity: Severe
Applicable for: Wind River Linux 8
Component/s: Toolchain
when run gdb to debug any application, it will show the following error on t10xx board with wrlinux 8 RCPL3 project :
/*****************************************************************/
root@localhost:~# gdb sort
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 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 "powerpc64-wrs-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from sort...done.
(gdb) r
Starting program: /root/sort
Oops: Exception in kernel mode, sig: 5 [#7]
PREEMPT SMP NR_CPUS=4 CoreNet Generic
Modules linked in: mpc85xx_edac edac_core
CPU: 3 PID: 564 Comm: sort Tainted: G D 4.1.18-WR8.0.0.3_standard #8
task: c0000000f18eaf00 ti: c0000000fff74000 task.ti: c00000007e2d8000
NIP: c00000000001b1e4 LR: 00003fffb7fc3d64 CTR: 0000000000000000
REGS: c0000000fff77cf0 TRAP: 0d08 Tainted: G D (4.1.18-WR8.0.0.3_standard)
MSR: 0000000080021000 <CE,ME> CR: 22002442 XER: 00000000
SOFTE: 1
GPR00: 00003fffb7fc3d14 00003ffffffff2f0 00003fffb8006300 00003fffb7fff5a8
GPR04: 0000000000000000 0000000082022448 0000000000004000 00003fffb7ff6300
GPR08: 0000000000000000 0000000000000000 00003fffb7fff5d0 0000000000005d04
GPR12: 0000000048002444 00003fffb7ffc750 00003fffb7fe0cf0 00003fffb7fe0cd8
GPR16: 00003fffb7fe0cc8 0000000010010b98 0000000000000001 000000006474e551
GPR20: 00003ffffffff360 00003fffb7fff5d0 00003fffb7ff5750 00000000ffffffff
GPR24: 0000000000000001 00003fffb7ffede8 00000000000069af 00003fffb7ffe450
GPR28: 00003fffb7ffca18 0000000000006c23 00003fffb7fff5d0 00003ffffffff2f0
NIP [c00000000001b1e4] interrupt_base_book3e+0x1e4/0x348
LR [00003fffb7fc3d64] 0x3fffb7fc3d64
Call Trace:
Instruction dump:
00000000 00000000 00000000 60000000 480152d4 00000000 00000000 00000000
00000000 00000000 00000000 60000000 <480154d0> 00000000 00000000 00000000
---[ end trace e5bb9482b6fec05c ]---
note: sort[564] exited with preempt_count 3
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
root@localhost:~# gdb sort
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 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 "powerpc64-wrs-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from sort...done.
(gdb) b main
Breakpoint 1 at 0x100005e4: file sort.c, line 7.
(gdb) r
Starting program: /root/sort
Oops: Exception in kernel mode, sig: 5 [#8]
PREEMPT SMP NR_CPUS=4 CoreNet Generic
Modules linked in: mpc85xx_edac edac_core
CPU: 3 PID: 574 Comm: sort Tainted: G D 4.1.18-WR8.0.0.3_standard #8
task: c0000000f18ed240 ti: c0000000fff74000 task.ti: c00000007e9dc000
NIP: c00000000001b1e4 LR: 00003fffb7fc3d64 CTR: 0000000000000000
REGS: c0000000fff77cf0 TRAP: 0d08 Tainted: G D (4.1.18-WR8.0.0.3_standard)
MSR: 0000000080021000 <CE,ME> CR: 22002442 XER: 00000000
SOFTE: 1
GPR00: 00003fffb7fc3d14 00003ffffffff2f0 00003fffb8006300 00003fffb7fff5a8
GPR04: 0000000000000000 0000000082022448 0000000000004000 00003fffb7ff6300
GPR08: 0000000000000000 0000000000000000 00003fffb7fff5d0 0000000000005cd2
GPR12: 0000000048002444 00003fffb7ffc750 00003fffb7fe0cf0 00003fffb7fe0cd8
GPR16: 00003fffb7fe0cc8 0000000010010b98 0000000000000001 000000006474e551
GPR20: 00003ffffffff360 00003fffb7fff5d0 00003fffb7ff5750 00000000ffffffff
GPR24: 0000000000000001 00003fffb7ffede8 0000000000006966 00003fffb7ffe450
GPR28: 00003fffb7ffca18 0000000000006bfd 00003fffb7fff5d0 00003ffffffff2f0
NIP [c00000000001b1e4] interrupt_base_book3e+0x1e4/0x348
LR [00003fffb7fc3d64] 0x3fffb7fc3d64
Call Trace:
Instruction dump:
00000000 00000000 00000000 60000000 480152d4 00000000 00000000 00000000
00000000 00000000 00000000 60000000 <480154d0> 00000000 00000000 00000000
---[ end trace e5bb9482b6fec05d ]---
note: sort[574] exited with preempt_count 6
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
The program no longer exists.
disable oprofile in kernel config.
1, config project with:
configure --enable-reconfig --enable-board=fsl-t1xxx --enable-kernel=standard
--enable-rootfs=glibc-std+debug+analysis+gdb --enable-build=production --with-package=vsftpd,expect,vlan,xinetd,inetutils-
telnet,inetutils-telnetd,pciutils --with-rcpl-version=auto
2, build project
3, boot a t1041 board with this project's image
4, run the following command to tirgger this gdb issue
# gdb /bin/ls
in gdb shell, run `run` will see this issue.