Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the crash of Linux kernel code in coredump file

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

How to analyze the problem of Linux kernel code crash in coredump file? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

First, analyze Core files

1.1 find the core file directory and start mycrash:mycrash

1.2 View the stack information of a crash: bt

1.3 disassemble the code for the collapse point, 10 lines: dis-l extract_http_info+73 10

Second, analyze the source file hinfo.ko

2.1View source file information: objdump-S hinfo.ko > tmp

2.2 look in the tmp file for the contents of movb $0x0, (% r12instruction% raxpai1) to determine the location of the code crash.

Third, another method of analysis

3.1 bt View Stack

3.2 mod View Module

3.3 mod-s loading module

3.4 sym address (the address in the blue box in 3.1) View the location of the crash code

This is the answer to the question about how to analyze the Linux kernel code crash in the coredump file. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report