ILD

openwrt gdb coredump rootfs
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2024-7-8 站点:Inside Linux Development

openwrt进程异常崩溃,产生coredump,使用gdb分析,应该使用带调试的rootfs,而不是build_dir下的:

 build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-ipq53xx/


应该使用:

staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-ipq53xx/


前者看不到异常调用栈。

arm-openwrt-linux-gdb bin/isp-dp /work/tftproot/isp-dp.21773.4.1720181268.core

GNU gdb (GDB) 8.1.1

Copyright (C) 2018 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 "--host=x86_64-pc-linux-gnu --target=arm-openwrt-linux-muslgnueabi".

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 bin/isp-dp...done.

[New LWP 21773]


warning: Can't read pathname for load map: Unknown error -1.


warning: Could not load shared library symbols for ./hookheap.so.

Do you need "set solib-search-path" or "set sysroot"?

Core was generated by `isp-dp -v'.

Program terminated with signal SIGILL, Illegal instruction.

#0  a_crash () at src/env/__stack_chk_fail.c:16

16      {

(gdb)

(gdb) bt

#0  a_crash () at src/env/__stack_chk_fail.c:16

#1  __stack_chk_fail () at src/env/__stack_chk_fail.c:17

#2  0x000172d4 in popen_get_strdup ()

#3  0x00017150 in platform_init ()

#4  0x00012c1c in main ()



Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.