Analyse a QNX crash
get_crashFetch and verify a crashed run's core file against the deployed binary, then open it with gdb MI to return structured backtraces, faulting/user frames, thread stacks, and signal details.
Instructions
Fetch the core file of a crashed run (size and SHA-256 verified), check that it belongs to the exact binary that was deployed (GNU build ID or the content-addressed path in the core's notes; error core_mismatch otherwise), open it with the SDP's gdb in MI mode and return a structured backtrace: faulting_frame (where the signal happened) and user_frame (innermost frame in your sources), frames with function, file, line, address, library, locals and source lines, every thread's stack, signal, si_code, fault address (0x0 = NULL dereference), the faulting instruction and a one-line summary. Default: the newest crashed run on the target; or pass run_id, or core_path plus binary for any other core. For a run of a program that was already on the target (remote_binary), pass run_id plus binary, the host path of its unstripped build (accepted when its build ID matches the core's, or when it is the same file).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "get_crash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binary | No | Host path of the unstripped executable matching core_path, or the build of a remote_binary run's program | |
| run_id | No | run_id returned by deploy_and_run or run_start | |
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| core_path | No | Core file on the target, for a core not produced through qnx-mcp | |
| max_frames | No | ||
| max_core_mb | No | Refuse larger cores (also applies after decompression) | |
| locals_frames | No | Collect local variables for this many innermost frames |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||