What it does. BlockScope is a host tool for Linux, macOS and Windows. It captures pidin, pidin threads, pidin info, hogs and slog2info from a QNX 8.0 target over one SSH session, reconstructs the system-wide message-passing wait-for graph from pidin's SEND/REPLY/MUTEX Blocked column, and runs QNX-specific diagnosis rules on it:
- send/reply deadlocks, with the victims queued behind them
- send-hierarchy violations
- servers with no thread in
MsgReceive() - priority inversion through
_NTO_CHF_FIXED_PRIORITYchannels or non-inheriting mutexes - SCHED_FIFO CPU starvation
- slog2 error correlation and log storms
Every finding comes with a blame chain, the evidence rows, a fix in QNX terms, and links to the QNX 8.0 docs. Output is available as a terminal report, JSON, Markdown, Graphviz, a self-contained HTML dashboard, or a live dashboard. It also includes a --fail-on CI gate, watch mode, why <pid-tid> and diff (before/after a fix).
How it uses QNX (where reviewers can verify it):
blockscope/parsers.py: parsers for the QNX 8.0pidindefault format (%a %b %28n %p %J %B), policy lettersf/r/o/s, Blocked-column semantics per state,pidin threads,pidin info,hogs, andslog2info(-S,-s,-f).tests/test_parsers.pyruns them against the verbatim examples from the QNX 8.0 reference pages.blockscope/analysis.py: the wait-for graph (SEND means not yet received, so any busy server thread helps; REPLY means held by a busy server thread, or a held reply), fixpoint progress analysis, Tarjan SCC, and the QNX rules (priority inheritance on receive,_NTO_CHF_FIXED_PRIORITY,PTHREAD_PRIO_INHERIT, resmgr thread pools,TimerTimeout).target/ipc-lab/ipc_lab.c: a QNX 8.0 C program built withqccthat usesChannelCreate,ConnectAttach,MsgSend/MsgReceive/MsgReply,_NTO_CHF_FIXED_PRIORITY,ThreadCtl(_NTO_TCTL_RUNMASK),ClockCyclesandSYSPAGE_ENTRY(qtime), andslog2_register/slog2c. It reproduces each fault and its fix.target/blockscope-capture.sh: an on-target capture script for the QNX shell.docs/live-captures/: real captures from a running QNX 8.0.0 target (Quick Start Target Image for QEMU, x86_64, KVM),"synthetic": falsein every manifest: healthy, deadlock, inversion and saturation, each before and after--fix, plus an on-target capture.tests/test_live_qnx.pyreplays them as regression tests (73 tests in total, all passing).scripts/run_qnx_qemu.shandscripts/live_qnx_verify.sh: the exact boot and verification steps.
Why it matters. QNX's microkernel puts drivers, filesystems and networking in separate processes reached by synchronous messages, so a hung control loop in an automotive, robotics or medical system usually traces back to a chain of other processes. Today, following that chain means reading pidin by hand. BlockScope turns it into a single command that also works in CI and on field captures. The real-time rules matter specifically because QNX guarantees when code runs: priority inheritance through message passing is what bounds latency, and BlockScope tells you when it has been switched off.
Built during the submission period (Nov 2 to Dec 15, 2026). All code is new.