嵌入式开发者社区
标题:
gdb调试arm程序问题
[打印本页]
作者:
beying
时间:
2019-7-31 18:50
标题:
gdb调试arm程序问题
我自己写的arm程序发生Segmentation fault (core dumped),生成了core文件:
root@AM57xx-Tronlong:/var/lib/systemd/coredump# ls
core.bybox.0.e25701a4f9b4451f9d8ca6c9a0e32e94.1202.1530850044000000000000.xz
将core文件传到编译环境下,并且使用编译环境下的/home/code/bytool/V10R01B01/arm-linux-gnueabihf-gdb来查看core文件,gdb提示找不到linux-vdso.so.1:
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
No linux-vdso.so.1
0xb6f610e0 0xb6f6b674 Yes /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/libpthread.so.0
0xb6e86f40 0xb6f291d8 Yes /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/libc.so.6
0xb6e5c700 0xb6e5eb90 Yes /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/librt.so.1
0xb6da4838 0xb6e3e66c Yes (*) /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libsqlite3.so.0
0xb6f81800 0xb6f947b8 Yes /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/ld-linux-armhf.so.3
0xb6d8b93c 0xb6d8c268 Yes /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/lib/libdl.so.2
(*): Shared library is missing debugging information.
查到编译环境,没有找到这个库文件
root@ubuntu:/home/code/bytool/V10R01B01_dsp/arm# find / -name linux-vdso.so.1
root@ubuntu:/home/code/bytool/V10R01B01_dsp/arm#
请问这个问题该怎么解决呢?
(注:查看core文件,能快速找到代码发生core的位置。)
作者:
梁淑怡-Tronlong
时间:
2019-8-6 13:51
您好,
排查建议:可能是因为linux-vdso.so.1这个链接库文件是动态链接。
希望以下链接对您有帮助。
http://sourceware-org.1504.n7.na ... -so-1-td408719.html
http://www.it1352.com/785437.html
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4