内核 空指针 panic

 

 

 

 可以看到 段错误导致 内核崩溃, 同时通过NULL point 指针 取成员变量其 偏移地址为0x14 也即是20

使用 add2line  -e vmllinx  0xffffffff814ff388  可以看看到出现问题时 代码在哪一行

 

 

对比代码 确认为 某个指针变量为空导致

 

 https://sourceware.org/gdb/onlinedocs/gdb/Machine-Code.html 介绍了gdb 中disassembler的用法  :

核心为反汇编指定函数

 

posted @ 2020-11-16 14:17  codestacklinuxer  阅读(198)  评论(0编辑  收藏  举报