Analyze oops

From sebastianbiallas/pearpc · View interactive version

Analyze oops is an AI agent skill from the GitHub repository sebastianbiallas/pearpc. Analyze a kernel Oops from the printk buffer in a PearPC memory dump

How to use this skill

Skill file

Analyze Kernel Oops

Use scripts/debug/memdump.py to extract and analyze the Oops.

Steps

  1. Extract the Oops:

```

python3 scripts/debug/memdump.py oops ${ARGUMENTS:-memdump_jit.bin}

```

  1. Decode pt_regs (use the REGS address from the Oops output):

```

python3 scripts/debug/memdump.py regs DUMP_FILE REGS_ADDRESS

```

  1. Disassemble around NIP and LR (convert VA to PA: PA = VA - 0xC0000000):

```

python3 scripts/debug/disasm_ppc.py DUMP_FILE PA_OF_NIP 16

python3 scripts/debug/disasm_ppc.py DUMP_FILE PA_OF_LR 16

```

  1. Search for the NIP value in both dumps:

```

python3 scripts/debug/memdump.py find memdump_generic.bin NIP_VALUE

python3 scripts/debug/memdump.py find memdump_jit.bin NIP_VALUE

```

  1. Check if NIP is a valid address:

Report: exception type, faulting address, caller, what the code was trying to do.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.