Skip to content
AnshPatel2007Public

About

Fault injection and timing verification for QNX 8.0 message passing (MsgSend/TimerTimeout). QNX Global Hackathon 2026.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🧪 FaultLab for QNX

Inject a failure. Measure the response. Keep the proof.

A fault-injection workbench for QNX 8 services. FaultLab stalls, slows and crashes real QNX processes at exact message-passing boundaries, measures what happens on the target's own clock, and turns every run into a PASS / FAIL / INCONCLUSIVE report you can replay, compare and export to CI.


QNX 8.0 Language C Python 3.12+ License MIT

▶ Watch the demo  •  🌐 Open the recorded replay (no install)  •  ⚡ Install  •  🧭 Five-minute judge guide  •  📘 Codelab

Solo entry by Ansh Patel · Category: Developer Tooling & Host Tools


Baseline and hardened runs replayed side by side from the same recorded fault

📑 Contents


⏱ The result in 30 seconds

At 5 seconds a sensor service receives a request and stops replying. Both runs use the same QNX binaries and configuration; the only difference is whether the controller bounds its MsgSend with TimerTimeout.

Measured on QNX 8 🔴 Unbounded IPC (baseline) 🟢 Bounded at 2 ms (hardened) Contract
Fault → brake applied 206.6 ms · FAIL 11.6 ms · PASS ≤ 50 ms
Fault → conveyor stationary 316.4 ms · FAIL 111.8 ms · PASS ≤ 250 ms
Worst controller cycle gap 2990.4 ms · FAIL 11.4 ms · PASS ≤ 40 ms

Note

The baseline stops only because the plant's own 200 ms command lease expires. "It eventually stopped" is not a pass, so FaultLab keeps the FAIL. Across three repeats the bounded controller braked in 6.3–13.8 ms and the unbounded one in 204.2–206.6 ms. Featured runs: qual-20261125T011246Z-02-after-baseline and qual-20261125T011246Z-02-after-hardened.


✨ What FaultLab does

🎯 Deterministic faults, not random chaos

The runner stops the sensor either before MsgReceive (the client is SEND-blocked) or after it, before MsgReply (REPLY-blocked), and confirms with waitpid(WUNTRACED) that the fault has taken hold before anything is measured.

🧩 Test your own service with two files

Write one C function and a JSON contract of expected answers. FaultLab wraps it in a native QNX request/reply server and runs five IPC fault cases against it.

🛰 Knows when the platform failed

A probe thread on every CPU at SCHED_FIFO 60 measures how late the platform itself ran. A hypervisor hiccup becomes INCONCLUSIVE (testbed), never blamed on your code, and never turned into a PASS.

🔒 Evidence you can trust

Sequence-numbered, fixed-size records from every process. A dropped record, transfer failure, abort or watchdog kill can never produce a PASS. Reports export to HTML, JSON and JUnit.

🎛 Control a live run from any QNX shell

The runner is a QNX resource manager: cat /dev/faultlab/status, echo rearm > /dev/faultlab/control (or abort).

🔬 Kernel-level confirmation

A diagnostic build emits TraceEvent markers; FaultLab captures a tracelogger window and joins kernel thread states to application events by exact identity.

Scenarios

Scenario What FaultLab does on the target What it checks
⏸ Stall: request not received Stops the sensor before MsgReceive Brake ≤ 50 ms, stationary ≤ 250 ms, cycle gap ≤ 40 ms
⏸ Stall: reply withheld Stops the sensor after receive, before MsgReply Same contracts; recovery never re-enables motion
💥 Sensor crash SIGKILLs the sensor mid-request, then restarts it: at most 3 attempts, 100/250/500 ms backoff New PID, channel and generation; ten fresh samples within 2 s; motion only after explicit rearm
🐢 Slow reply Holds every sensor request for a chosen delay (1–1000 ms) Either tolerated, or stopped within the same brake contracts
🔥 CPU pressure One priority-5 worker per vCPU, pinned with a verified runmask ≥ 2.5 s CPU per worker; the conveyor keeps its cycle budget
✅ No-fault control Same pipeline, nothing injected Normal motion through the 15 s window

Each run declares its fault plan: when the fault starts (1–12 s) and how long it lasts.

Your own service, two files

Write one C function in examples/<name>/service.c and its expected answers in contracts/services/<name>-v1.json. CMake, the evaluator, the CLI and the workbench all discover the pair, and FaultLab runs normal reply, SEND-blocked timeout, REPLY-blocked timeout, server crash and a fresh endpoint. A contract can also require a rejection: {"request": "151000", "error": "ERANGE"} must come back as that QNX errno. python host/new_service.py <name> scaffolds both files.

#include "service_adapter.h"

/* Temperature alarm: alarm at or above 80 C (input in milli-degrees). */
int faultlab_service_handle(uint64_t request, uint64_t *reply)
{
    if (request > UINT64_C(150000)) { return ERANGE; }
    *reply = request >= UINT64_C(80000) ? 1 : 0;
    return 0;
}

It catches real defects. Change >= to > and FaultLab reports FAIL with exactly two failures, both at 80 °C: the normal reply and the reply after a fresh endpoint. The timeout and crash cases still pass, which isolates the bug to application logic rather than IPC handling.

💥 Sensor crash and recovery 🐞 Off-by-one bug caught at 80 °C
Crash scenario: replacement sensor generation 2 validated, belt held stopped awaiting explicit rearm Deliberate temperature-alarm boundary bug caught: normal reply and fresh endpoint FAIL at 80 C
The replacement sensor (new PID, generation 2) is validated, but the belt stays stopped until an explicit rearm. Exactly two cases fail, both at 80 °C; the timeout and crash cases still pass.

It knows when the platform failed

When the VM was frozen from Windows mid-run, three would-be FAILs became INCONCLUSIVE with the measured 594 ms stall on both CPUs, while every deliberately unbounded baseline still FAILs. A failed timing check becomes INCONCLUSIVE only when measured stalls cover its whole excess. See the testbed probe.

Control-cycle chart of the VM-freeze run: a violet testbed-stall band covers the controller's 603 ms cycle gap

Explain a run with Claude (optional)

Explain with Claude sends one saved report's checks and metrics to claude-opus-5-5. FaultLab inserts every number and verdict word from the report; answers that state numbers or verdicts of their own are rejected, and the verdict never changes. Nothing is sent until you press the button.


🧠 How it uses QNX

Every experiment runs as native QNX processes. The host only builds, deploys and evaluates.

QNX capability Where Why it matters here
MsgSend / MsgReceive / MsgReply / MsgError src/conveyor_common.c, src/sensor.c, src/plant.c, src/ipc_server.c All control traffic is synchronous native message passing
TimerTimeout on SEND + REPLY states, immediately before MsgSend src/conveyor_common.c, src/ipc_check.c Bounded vs unbounded IPC is the experiment's independent variable
ChannelCreate(_NTO_CHF_FIXED_PRIORITY), ConnectAttach(..., _NTO_SIDE_CHANNEL) sensor, plant, service server Predictable priorities; generation-checked reconnection after a crash
SCHED_FIFO priorities 5 / 20 / 30 / 40 / 50 / 60, verified at startup every target process A process that is not granted its priority exits, and the run cannot pass
ThreadCtl(_NTO_TCTL_RUNMASK_GET_AND_SET), ClockCycles() src/load.c, src/probe.c CPU workers and probe threads are pinned per CPU
SIGSTOP + waitpid(..., WUNTRACED) src/runner.c, src/ipc_check.c Each fault is observed taking effect before FaultLab measures the response
Resource manager: resmgr_attach, dispatch_*, iofunc_*_verify, resmgr_msgget src/runner_resmgr.c /dev/faultlab/status and /dev/faultlab/control
clock_nanosleep(TIMER_ABSTIME) at FIFO 60, one thread per CPU src/probe.c The platform's own real-time service is measured in every run
TraceEvent, tracelogger, traceprinter src/conveyor_trace.c, host/trace_correlate.py The kernel confirms which blocking state the controller was in
CLOCK_MONOTONIC everywhere Deadlines are measured on the guest clock, never the host
flowchart TB
  subgraph Host["Windows host"]
    UI["Browser workbench (loopback only)"] <--> WB["host/workbench.py"]
    WB --> BUILD["scripts/*.ps1: qcc, CMake, Ninja"]
    WB --> EVAL["host/evaluate.py + testbed.py: contracts to verdicts"]
  end
  subgraph Target["QNX 8 target"]
    WD["watchdog: 23 s outer deadline"] --> RUN["runner FIFO 20: faults, restarts, cleanup"]
    RUN --> PROBE["testbed probe FIFO 60, one thread per CPU"]
    RUN --> SENSOR["sensor FIFO 30"]
    RUN --> CTRL["controller FIFO 40"]
    RUN --> PLANT["plant FIFO 50"]
    CTRL -- "MsgSend, 2 ms bound when hardened" --> SENSOR
    CTRL -- "MsgSend, always bounded" --> PLANT
  end
  BUILD -- "SCP deploy, SSH launch" --> WD
  RUN -- "events.jsonl retrieved over SCP" --> EVAL
Loading

The QNX side owns fault timing, supervision and cleanup. Closing the browser or losing SSH does not extend a run: a separate watchdog owns the process group and enforces the outer deadline.


⚡ Installation

Pick the path that matches what you want to do:

Path What you get Time Works on
🌐 A. Hosted replay The real workbench UI replaying 21 recorded QNX runs 0 min Any browser
💻 B. Local replay and evidence check Re-check the committed evidence, run the replay and the test suites locally ~5 min Windows · macOS · Linux
🧪 C. Full QNX setup Build the native binaries, boot a QNX 8 VM and run live experiments ~1 h the first time Windows 11 host

Important

Live experiments need a Windows 11 host: the build-and-deploy automation is Windows PowerShell and the recorded target is a VMware Workstation VM. On macOS and Linux you can use paths A and B today. A Linux host path is future work.

🌐 Path A — Hosted replay (nothing to install)

Open the recorded replay. It is the real workbench UI serving the 21 featured runs in evidence/featured, built by host/export_static.py in CI. Four Start here steps walk through the headline results, every run states what happened in one sentence built from its own report, and every view has a shareable link (?run=<run ID>, ?compare=<baseline>,<hardened>).

💻 Path B — Local replay and evidence check

You need Git, Python 3.12 or newer and, for the browser tests, Node.js 18 or newer. Nothing else: FaultLab uses only Python's standard library and plain JavaScript, so there is no pip install or npm install step.

🪟 Windows

1. Install the tools (PowerShell; skip any you already have):

winget install --id Git.Git -e
winget install --id Python.Python.3.13 -e
winget install --id OpenJS.NodeJS.LTS -e

Close and reopen PowerShell so the new tools are on your PATH, then check them:

git --version; python --version; node --version

2. Get the source (use a path without spaces):

git clone https://github.com/AnshPatel2007/FaultLab.git "$env:USERPROFILE\QNXProjects\FaultLab"
cd "$env:USERPROFILE\QNXProjects\FaultLab"

3. Re-check the recorded QNX evidence with the same evaluator that produced it:

python host\reevaluate.py --artifacts evidence\featured

4. Build and open the replay locally:

python host\export_static.py --evidence evidence\featured --output site
python -m http.server 8000 --directory site

Open http://127.0.0.1:8000 in your browser. Press Ctrl+C to stop the server.

5. (Optional) Run the test suites:

python -m unittest discover -s tests
node --test "tests/ui-*.test.cjs"
🍎 macOS

1. Install the tools. With Homebrew:

brew install git python node

Or install Python from python.org and Node.js from nodejs.org. Check them:

git --version && python3 --version && node --version

2. Get the source:

git clone https://github.com/AnshPatel2007/FaultLab.git ~/FaultLab
cd ~/FaultLab

3. Re-check the recorded QNX evidence:

python3 host/reevaluate.py --artifacts evidence/featured

4. Build and open the replay locally:

python3 host/export_static.py --evidence evidence/featured --output site
python3 -m http.server 8000 --directory site

Open http://127.0.0.1:8000. Press Ctrl+C to stop the server.

5. (Optional) Run the browser-model tests:

node --test tests/ui-*.test.cjs

[!NOTE] On macOS you can explore every recorded run, re-evaluate it and read every report, but you cannot launch new QNX experiments from a Mac: FaultLab's build-and-deploy scripts are Windows PowerShell.

🐧 Linux

1. Install the tools. Ubuntu 24.04 / Debian 13 or newer ship Python 3.12+:

sudo apt update && sudo apt install -y git python3 nodejs

Fedora: sudo dnf install -y git python3 nodejs. On an older distribution whose python3 --version is below 3.12, install a newer Python first (for example with pyenv).

2. Get the source:

git clone https://github.com/AnshPatel2007/FaultLab.git ~/FaultLab
cd ~/FaultLab

3. Re-check the evidence and open the replay (this is exactly what CI runs on Ubuntu):

python3 host/reevaluate.py --artifacts evidence/featured
python3 host/export_static.py --evidence evidence/featured --output site
python3 -m http.server 8000 --directory site

Open http://127.0.0.1:8000. Press Ctrl+C to stop the server.

4. (Optional) Run the browser-model tests:

node --test tests/ui-*.test.cjs

🧪 Path C — Full setup on Windows (run live QNX experiments)

This is the exact path used for every result in this repository. It was re-run end to end on November 24–25, 2026 after a complete reinstall of Windows, the QNX SDK and VMware.

What you will install
Tool Tested version Needed for Get it
QNX SDP 8.0.5 (qcc / GCC 12.2.0) Cross-compiling and building the QNX VM image QNX Software Center (free non-commercial license)
VMware Workstation 26.0.1 Running the QNX 8 virtual machine VMware Workstation (free for personal use)
CMake 4.4.5 (at least 3.24) Build configuration Portable ZIP
Ninja 1.13.2 (at least 1.10) Build execution Portable ZIP
Python 3.13 (at least 3.12) Workbench, evaluator, tests winget install Python.Python.3.13
Node.js 24 (at least 18) Browser tests only winget install OpenJS.NodeJS.LTS
Git any recent Getting the source winget install Git.Git
OpenSSH Client built into Windows 11 Deploying to and talking to the VM Settings → System → Optional features
Windows PowerShell 5.1 (built in) Build and deployment scripts —

SHA-256 checksums of the tested CMake and Ninja downloads are in docs/environment.json.

Warning

Use paths without spaces for the source, the QNX SDK and the build tools, for example C:\Users\you\QNXProjects\FaultLab and C:\Users\you\qnx800. The QNX compiler fails on quoted paths containing spaces, so the scripts refuse them. If your Windows user name contains a space, put everything under a folder such as C:\Work and pass the paths explicitly.

Step 1 — Install QNX SDP 8.0

  1. Create a free account at myQNX and request a QNX Everywhere (non-commercial) license.
  2. Install the QNX Software Center, sign in, and install QNX SDP 8.0 to C:\Users\<you>\qnx800 (the scripts look there by default).
  3. Follow QNX's host installation guide if anything is unclear. FaultLab never redistributes or accepts the SDK license for you.

Step 2 — Install VMware Workstation

Install VMware Workstation with its default options (C:\Program Files\VMware\VMware Workstation).

Step 3 — Install Git, Python, Node.js and the SSH client

winget install --id Git.Git -e
winget install --id Python.Python.3.13 -e
winget install --id OpenJS.NodeJS.LTS -e
# In an *Administrator* PowerShell, only if `ssh -V` does not work:
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

Close and reopen PowerShell, then check: git --version; python --version; node --version; ssh -V.

Step 4 — Install CMake and Ninja

Download the two portable ZIPs from the table above and extract them so these files exist (the scripts' default locations):

%USERPROFILE%\QNXProjects\tools\cmake-4.4.5-windows-x86_64\bin\cmake.exe
%USERPROFILE%\QNXProjects\tools\ninja-1.13.2\ninja.exe

Optionally verify each download first: Get-FileHash .\cmake-4.4.5-windows-x86_64.zip -Algorithm SHA256 and compare with docs/environment.json. Somewhere else is fine too; then pass -CMakePath and -NinjaPath to the scripts.

Step 5 — Get the source and allow the scripts to run

git clone https://github.com/AnshPatel2007/FaultLab.git "$env:USERPROFILE\QNXProjects\FaultLab"
cd "$env:USERPROFILE\QNXProjects\FaultLab"
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Tip

If you downloaded the source as a ZIP instead of cloning, also run Get-ChildItem -Recurse | Unblock-File once inside the folder, or Windows will refuse the scripts.

Step 6 — Create an SSH key for the VM

Do not overwrite an existing key; this one is dedicated to FaultLab:

ssh-keygen -t ed25519 -f "$env:USERPROFILE\.ssh\faultlab_qnx_ed25519"

Step 7 — Build the QNX 8 VM with the key already authorized

One mkqnximage command builds a VMware image whose root account already trusts your key, with a larger /data partition for evidence. Replace <you> with your Windows user name:

. .\scripts\common.ps1
Import-QnxEnvironment "$env:USERPROFILE\qnx800"
$targetFolder = "$env:USERPROFILE\QNXProjects\targets\vmware-qnx800-x86_64"
New-Item -ItemType Directory -Path $targetFolder -ErrorAction Stop
Push-Location $targetFolder
mkqnximage --type=vmware --arch=x86_64 --policy=none --hostname=vmware-qnx800-x86_64 `
    --data-size=1024 --data-inodes=30000 `
    --ssh-ident="C:/Users/<you>/.ssh/faultlab_qnx_ed25519.pub" --build
Pop-Location

This is a policy-free development image (2 vCPUs, 1 GiB RAM, NAT networking): FaultLab's native processes need root for FIFO scheduling, IPC and fault injection. It is a test fixture, not a production configuration.

Step 8 — Trim the VM's virtual hardware (before the first boot)

Open %USERPROFILE%\QNXProjects\targets\vmware-qnx800-x86_64\local\vmware_files\vmware.vmx in a text editor and:

  • set mks.enable3d = "FALSE"
  • set sound.present = "FALSE"
  • delete the line vhv.enable = "TRUE"

The guest has no desktop, so this removes graphics and audio it never uses.

Step 9 — Start the VM

$vmx = "$env:USERPROFILE\QNXProjects\targets\vmware-qnx800-x86_64\local\vmware_files\vmware.vmx"
& "C:\Program Files\VMware\VMware Workstation\vmrun.exe" -T ws start $vmx nogui

Give it one to four minutes to boot. You don't need to find its IP address: the FaultLab scripts read it from VMware's DHCP lease. The guest's host keys in local\ssh-ident are used for strict host-key checking.

Step 10 — Check the whole setup

python .\host\setup_check.py --with-tests --target <vm-address>

To see the VM's address, run mkqnximage --getip in the target folder or ifconfig in the VM console. The checker uses the default locations from the steps above (pass --sdp, --cmake, --ninja, --key or --known-hosts if yours differ), installs nothing, makes only read-only SSH calls and reports anything missing. Leave out --target ... for a host-only check.

Step 11 — Build and run your first experiment

.\scripts\build.ps1
.\scripts\run-service.ps1 -NoBuild -Service temperature-alarm-v2 -Iterations 4

Expected: 20 measured native cases, a PASS report, and no leftover service processes. Then the headline experiment, a matched baseline/hardened pair (about one minute):

.\scripts\compare-stall.ps1

Step 12 — Open the workbench 🎉

.\scripts\start-workbench.ps1

Open http://127.0.0.1:8765, pick a scenario and press Run on QNX. Keep the PowerShell window open; Ctrl+C stops the workbench.

Tip

For the cleanest timings, plug the laptop in, choose the Best performance power mode and keep the host idle during runs. Platform stalls that remain are measured by the testbed probe in every run rather than hidden.

Shut the VM down safely with ssh + sync, then vmrun -T ws stop $vmx hard (the guest has no VMware Tools, so a soft stop waits forever).

The full reference, including source packaging and fresh-source rehearsal, is in docs/FRESH_SETUP.md.


🕹 Using FaultLab

I want to… Command
Open the workbench UI .\scripts\start-workbench.ps1 → http://127.0.0.1:8765
Run one conveyor scenario .\scripts\run-conveyor.ps1 -Profile hardened -Hook after
Compare bounded vs unbounded IPC .\scripts\compare-stall.ps1
Compare under CPU pressure .\scripts\compare-cpu.ps1
Test a C service against its contract .\scripts\run-service.ps1 -Service temperature-alarm-v2 -Iterations 4
Scaffold a new service python host\new_service.py <name>
List or describe services python host\service.py --list / --describe <name>
Rearm or abort a live run .\scripts\control-conveyor.ps1 -RunId <id> -Action rearm (or on QNX: echo rearm > /dev/faultlab/control)
Run all 13 scenarios against expected outcomes python host\qualify.py --target <vm-address>
Capture a kernel trace .\scripts\trace-smoke.ps1
Re-check every saved report python host\reevaluate.py --artifacts evidence\featured
Free space on the VM before new runs .\scripts\retain-evidence.ps1 -Apply
Build for Raspberry Pi 4/5 (aarch64le) .\scripts\build.ps1 -Architecture aarch64le (build-tested only)

Every run gets its own ID and HTML / JSON / JUnit reports plus the original events.jsonl. See the operator guide for every option.


🩺 Troubleshooting

Symptom Fix
"running scripts is disabled on this system" Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned; for a ZIP download also Get-ChildItem -Recurse | Unblock-File
The build refuses a path with spaces Move the source / SDK / tools to a path without spaces (for example C:\Work\...)
"Failed to find address" The VM is still booting, or Windows forgot it. Wait a minute, or pass -TargetAddress <ip> (see ifconfig in the VM console)
SSH host key verification failed You rebuilt the VM: use the new target folder's local\ssh-ident. Never disable host-key checking
"python" is not recognized, or it opens the Microsoft Store Reopen PowerShell after installing, or use the launcher py instead of python. The scripts find Python themselves; to choose one, pass -PythonPath C:\path\to\python.exe (or set FAULTLAB_PYTHON)
Workbench says the port is busy Another workbench is running: .\scripts\start-workbench.ps1 -Port 8766
A run refuses to start for lack of space /data needs 8 MiB and 32 free file entries: .\scripts\retain-evidence.ps1 -Apply
Runs come back INCONCLUSIVE (testbed) The host stalled the VM. Close heavy programs, plug in, use Best performance, and rerun
vmrun stop ... soft hangs Expected (no VMware Tools): sync over SSH, then vmrun -T ws stop <vmx> hard

🗂 Project layout

FaultLab/
├── src/                 Native QNX C: runner, sensor, controller, plant, probe, load, resource manager
├── examples/            Services under test (one C function each)
├── contracts/           JSON contracts: expected answers, errnos and timing bounds
├── cmake/               QNX toolchain files (x86_64, aarch64le) and service discovery
├── host/                Python: workbench server, evaluator, testbed attribution, reports, exporter
├── ui/                  Browser workbench (plain HTML, CSS and JavaScript, no build step)
├── scripts/             PowerShell: build, deploy, run, compare, control, retain evidence
├── tests/               Python + Node test suites and on-target checks
├── evidence/            Recorded QNX runs behind every number in this README
├── docs/                Guides, architecture, codelab, images and development history
└── .github/workflows/   CI tests and the GitHub Pages replay

📊 Qualification

All results below are on QNX 8.0.0 x86_64 in a 2-vCPU VMware guest, using one build, after the development PC was completely reinstalled and the setup was redone from the documentation. The batch reports behind every number are in evidence/qualification.

  • ✅ 91 of 91 expected outcomes in one uninterrupted 32-minute session: seven repeats of the 13-scenario matrix (session-20261125T051736Z). Every hardened scenario PASS (bounded brakes 4.9–14.3 ms). The deliberately unbounded baselines FAIL exactly their intended checks after a stalled sensor (198.6–207.9 ms) or a 60 ms slow reply (63.3–70.2 ms), and pass with a 5 ms delay, as expected. The probe recorded 7,891 short platform stalls, the worst 16.2 ms; none affected a contract.
  • ✅ 39 of 39 in an earlier three-repeat qualification (qual-20261125T011246Z, source of the featured matrix runs) and 20 no-fault runs, 30,013 bounded sensor calls, zero false stops (gate2-20261125T010419Z). Across all five sessions on this one build, 174 of 175 runs met their expected outcome; the exception is the host-induced VM freeze described below.
  • ✅ Services: increment, temperature alarm v2 (20 cases including the ERANGE rejection) and the deliberate boundary defect, plus a workbench-launched run and native cleanup checks: 11 of 11.
  • ⚠️ Platform failures are attributed, not hidden. A VM paused from Windows gave INCONCLUSIVE (testbed). In one attempted long session, heavy work on the host froze the VM for about 15 s; the controller stopped safely, the guest watchdog bounded the run, and its damaged evidence was refused as INCONCLUSIVE rather than counted (details).
  • 🔁 History is re-checked. host/reevaluate.py re-evaluates every saved report after each evaluator change: 1,241 saved runs (622 with saved reports), zero verdict or check changes. Earlier failures stay in docs/history.

Build and run configuration used for every result:

QNX version QNX SDP 8.0 (QNX Everywhere, non-commercial); target runtime QNX 8.0.0
Target x86_64 QNX 8.0 virtual machine on VMware Workstation, built with mkqnximage --type=vmware; aarch64le (Raspberry Pi 4/5) is build-tested only
Toolchain qcc (GCC 12.2.0) from QNX SDP 8.0 with CMake 4.4.5 and Ninja 1.13.2, driven by scripts\build.ps1 on Windows 11 (PowerShell 5.1); host tools need Python 3.12+

Kernel trace report: application events joined to tracelogger records; controller observed in THREPLY state


🚧 Scope and limits

  • The conveyor plant and sensor are software simulations; no physical hardware is attached.
  • Timings are observations on one Windows 11 laptop's VMware guest (running under Hyper-V), not worst-case bounds or a safety certification. The testbed probe makes the platform's quality visible in every run; it cannot make a VM real-time.
  • The host tooling is Windows PowerShell; the evaluator, exporter and UI are portable Python and JavaScript. A Linux host path is future work.
  • The service adapter takes one unsigned 64-bit request per case and expects a reply value or a QNX errno, with up to 20 contract vectors per service.

📚 Documentation

If you want to… Read
Review the project in five minutes Judge guide
See how the pieces fit, with diagrams Architecture
Understand how platform stalls are measured and attributed Testbed probe
Set up a new Windows host and QNX VM (full reference) Fresh setup
Test your own C service Service integration tutorial
Learn bounded QNX message passing from scratch Codelab
Use FaultLab in CI CI
Run every scenario and read the evidence Operator guide
See how it was built, including failures Development history

🤖 AI assistance

Codex helped with architecture proposals, implementation, testing, debugging and documentation. Claude Code reviewed the project, built the /dev/faultlab resource manager, the optional explainer, the codelab, the testbed probe, the hosted replay and the qualification tools, rewrote the documentation, and produced the demo video: it recorded the real workbench in a scripted browser, synthesized the narration offline with Kokoro TTS and assembled the video with Remotion. Ansh chose the direction, installed and operated the QNX environment, reviewed the behavior and shaped the visualization. Every reported result comes from a recorded QNX execution; AI plays no part in the runtime controller, its timing or any verdict. Both tools' terms assign their output to the user: FaultLab belongs to Ansh and is released under the MIT license.

📄 License

Original FaultLab source is MIT licensed. The QNX SDK, QNX runtime images and third-party build tools are obtained separately under their own licenses and are not included.

Built for QNX 8 · Every number above comes from a recorded run in evidence/

About

Fault injection and timing verification for QNX 8.0 message passing (MsgSend/TimerTimeout). QNX Global Hackathon 2026.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages