Oops debugging experience

Source: Internet
Author: User

After the oops Kernel panic appears, you need to calm down and analyze it. Based on the oops prompt information, you can guess the cause and type of the code error, and locate the specific one. C or. h file. One of the effective methods is to combine the program disassembly to jump to the error.

Decompile the generated uncompressed kernel image and objdump-D vmlinx to decompile your Kernel

Objdump-D vmlinux> vmlinux. Dis

 
Then you can use the following registers to determine:
1. Which function does the EPC stick?
2. Return address of the RA function,
3. Cause can use this register to analyze what type of exceptions are.

Process ID with error

The value of each register when an error occurs. CPU: 0 indicates the number of the wrong CPU. For a single processor system, the number is 0.

Stack call in case of an error. The bottom is the top-level call.

Machine code of the command near the wrong command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.