文档章节

crash tool cannot resolve the aliased-symbol in kernel

认真即可
 认真即可
发布于 2017/06/05 13:33
字数 185
阅读 61
收藏 0

Moths ago, I posted a an email upstream to report a problem when I analyzed kernel coredump on DM code using crash tool. Here is the question:

[dm-devel] [Report] crash tool cannot resolve struct dm_table properly

which is archived here:

https://www.redhat.com/archives/dm-devel/2017-April/msg00197.html

Shortly, Steffen Maier replied with the following workaround:

As workaround for eppic scripts in crash, we currently re-define struct dm_table in eppic scripts, because "set scope dm_table_create" has not always worked as we liked. Sometimes "whatis dm_table_create" and again "set scope dm_table_create" worked and we put this in .crashrc, but eventually gave up and kept our struct re-define. 

A workaround for this problem:

Before we wrote above posting, we tried this; maybe it helps in your case:

crash> set gdb on
gdb: on
gdb> ptype struct dm_table
type = struct dm_table {
    int undefined__;
}
gdb> ptype 'drivers/md/dm-table.c'::dm_table
No symbol "dm_table" in specified context.
gdb: gdb request failed: ptype 'drivers/md/dm-table.c'::dm_table
gdb> ptype struct dm_table
type = struct dm_table {
    uint64_t features;
    struct mapped_device *md;
    unsigned int type;
... 

© 著作权归作者所有

共有 人打赏支持
认真即可
粉丝 5
博文 86
码字总数 46278
作品 0
朝阳
程序员
Kexec and Kdump

Contents 18.1. Introduction 18.2. Required Packages 18.3. Kexec Internals 18.4. Basic Kexec Usage 18.5. How to Configure Kexec for Routine Reboots 18.6. Basic Kdump Configuratio......

认真即可
2015/09/28
11
0
用WinDbg分析Debug Diagnostic Tool生成的Userdump文件

1、下载WinDbg(Debugging Tools for Windows):http://www.microsoft.com/whdc/devtools/debugging/default.mspx 2、安装WinDbg 3、运行WinDbg 4、配置Symbol文件路径: File>Symbol File P......

nothingfinal
03/07
0
0
IOS反汇编工具Hopper分析Crash Log

在Mac OS下分析Crash Log有很多种方法,这里不是要说明如何分析的Crash Log, 主要是展示下Hopper的使用。 强大的IDA大家可能已经知道,但它的Mac OS版本又让人回到了DOS时代。幸运的是Mac O...

北方人在上海
2016/11/22
56
0
GCC _attribute__ weak weakref

#include <stdio.h> /void test(){printf("the test for weak refrence!n");}/ static attribute ((weakref("test"))) void foo(); int main(){if(foo) foo();} 如果test函数有定义,执行mai......

j_m
2012/09/13
0
0
[Debug].NET Debugging and C++ Debugging Resources

The following is a summary of tools and resources that you might be interested in after taking the .NET Debugging and/or C++ Debugging courses we offer at Sela. [Shameless plug:......

吞吞吐吐的
2017/01/11
0
0

没有更多内容

加载失败,请刷新页面

加载更多

Docker Compose 原理

Docker 的优势非常明显,尤其是对于开发者来说,它提供了一种全新的软件发布机制。也就是说使用 docker 镜像作为软件产品的载体,使用 docker 容器提供独立的软件运行上下文环境,使用 dock...

Java干货分享
20分钟前
0
0
解决过滤器中设置cookie无效的问题

解决过滤器中设置cookie无效的问题 代码现场 filterChain.doFilter(sessionSyncRequestWrapper, response);Cookie emailCook = WebServletUtil.getSelectedCookie(request.getCookies(), ......

黄威
31分钟前
0
0
Hbase Schema 设计注意事项及最佳实践总结

一个列族的所有列在硬盘上存放在一起,使用这个特性可以把不同访问模式的列放在不同列族,以便隔离它们。这也是HBase被称为面向列族的存储(column-family-oriented store)的原因。 1、RowKe...

PeakFang-BOK
43分钟前
1
0
t-io给群组成员内置排序

1、实现比较器Comparator<ChannelContext> package xxx;import java.util.Comparator;import java.util.Objects;import java.util.Set;import java.util.TreeSet;import or......

talent-tan
47分钟前
2
0
px、em、rem 区别及作用

原文 起因: 一开始是为了解决页面放大时,字体不跟着放大的 bug。现在多用用于统一规范。 概念: 任意浏览器的默认字体高都是16px。所有未经调整的浏览器都符合: 1em=16px。那么12px=0.75em...

lemos
56分钟前
5
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部