【问题标题】:How to gather information/debug when we have only the core file当我们只有核心文件时如何收集信息/调试
【发布时间】:2015-03-22 06:46:25
【问题描述】:

我遇到了一种情况,我们只有核心文件(没有可执行文件)。 如何将核心文件与 gdb 或任何其他工具一起使用来收集尽可能多的信息。

gdb core
GNU gdb (GDB) SUSE (7.1-8.9.1)
Copyright (C) 2010 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 "x86_64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/core": not in executable format: File format not recognized

【问题讨论】:

    标签: linux gdb core


    【解决方案1】:

    我遇到了一种情况,我们只有核心文件(没有可执行文件)。

    你确定有可执行文件某处吗?如果可以,请获取它的副本。

    如何将核心文件与 gdb 或任何其他工具一起使用来收集尽可能多的信息。

    除非您将主机配置为转储文件支持的共享映射(请参阅coredump_filterdocumentation),否则您根本无法从核心中提取很多有意义的信息。

    gdb core

    不要那样做。改为这样做:gdb -c core。然后whereinfo registers 和可能的print $_siginfo 可能会提供一些东西,但不会太多。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-25
      • 2016-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多