Rate This Document
Findability
Accuracy
Completeness
Readability

Fault Locating

If a server frequently breaks down and cannot run properly, the system breaks down. Figure 1 shows how to locate the fault.

Figure 1 Fault locating for a system crash
  1. Configure kdump so that the system can collect crash information for subsequent debugging.
  2. Enable KASAN and add some memory debugging information to the vmcore file.
  3. Run the program. If the problem does not recur, disable KASAN and run the program again to reproduce the problem.
  4. If the problem recurs, restart the server and confirm that the vmcore file is generated.
  5. Use Crash to debug the vmcore file and locate the fault.
  6. Analyze the cause. Modify the code and perform a verification.
  7. If the verification is successful, the code is integrated and no further action is required.
  8. If the verification fails, add debugging information, recompile the code, and run the code to reproduce the problem.