crash tool cannot resolve the aliased-symbol in kernel
crash tool cannot resolve the aliased-symbol in kernel
大蜥蜴 发表于5个月前
crash tool cannot resolve the aliased-symbol in kernel
  • 发表于 5个月前
  • 阅读 52
  • 收藏 0
  • 点赞 0
  • 评论 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;
... 
共有 人打赏支持
粉丝 4
博文 61
码字总数 26429
×
大蜥蜴
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: