ZZZ Digital Lab

Back to WaitLens

examples/synthetic-cycle.json

{
  "schema_version": 1,
  "label": "cycle.txt",
  "provenance": "synthetic",
  "authenticity": "Input provenance is supplied by the caller, not independently verified.",
  "input_sha256": "8190d7910f301bc00fa4530afc783521d46bd951fef7902414b3775a9bc58b76",
  "qnx_reference": "https://www.qnx.com/developers/docs/8.0/com.qnx.doc.neutrino.utilities/topic/p/pidin.html",
  "caution": "pidin queries processes sequentially; this is not an atomic snapshot. Process-level cycle candidates do not prove deadlock. Destination threads and timing guarantees cannot be inferred. PID/TID reuse can affect comparisons.",
  "summary": {
    "processes": 3,
    "threads": 4,
    "ipc_waits": 2,
    "zombies": 0,
    "states": {
      "RECEIVE": 2,
      "REPLY": 1,
      "SEND": 1
    }
  },
  "threads": [
    {
      "pid": 200,
      "tid": 1,
      "name": "demo_client",
      "priority": 10,
      "policy": "r",
      "state": "SEND",
      "blocked": "300",
      "line": 2
    },
    {
      "pid": 300,
      "tid": 1,
      "name": "demo_service",
      "priority": 10,
      "policy": "r",
      "state": "REPLY",
      "blocked": "200",
      "line": 3
    },
    {
      "pid": 300,
      "tid": 2,
      "name": "demo_service",
      "priority": 10,
      "policy": "r",
      "state": "RECEIVE",
      "blocked": "1",
      "line": 4
    },
    {
      "pid": 400,
      "tid": 1,
      "name": "idle_service",
      "priority": 10,
      "policy": "r",
      "state": "RECEIVE",
      "blocked": "200",
      "line": 5
    }
  ],
  "edges": [
    {
      "source_pid": 200,
      "source_tid": 1,
      "destination_pid": 300,
      "state": "SEND",
      "destination_observed": true,
      "line": 2
    },
    {
      "source_pid": 300,
      "source_tid": 1,
      "destination_pid": 200,
      "state": "REPLY",
      "destination_observed": true,
      "line": 3
    }
  ],
  "cycle_candidates": [
    [
      200,
      300
    ]
  ],
  "zombie_pids": [],
  "warnings": []
}