Fault Locating
If a server frequently breaks down and cannot run properly, the system breaks down. Figure 1 shows how to locate the fault.
- Configure kdump so that the system can collect crash information for subsequent debugging.
- Enable KASAN and add some memory debugging information to the vmcore file.
- Run the program. If the problem does not recur, disable KASAN and run the program again to reproduce the problem.
- If the problem recurs, restart the server and confirm that the vmcore file is generated.
- Use Crash to debug the vmcore file and locate the fault.
- Analyze the cause. Modify the code and perform a verification.
- If the verification is successful, the code is integrated and no further action is required.
- If the verification fails, add debugging information, recompile the code, and run the code to reproduce the problem.
Parent topic: System Crash
