How to analyze the crash of Linux kernel code in coredump file
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.