Skip to content

Hydra Engine 12.3-hydra.6

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Nov 21:29

Released 2026-11-02. Based on upstream Ghidra master (12.3 DEV) at
commit 1b9e58a915cf867e106495eaa2a4b18eb4971c9d, the same upstream commit as 12.3-hydra.3, 12.3-hydra.4
and 12.3-hydra.5. This release adds the semantic trace: a store of observed runtime events from a
process you own, queried through the same daemon; and it fixes GitHub issues 6 and 7 (decompile
response cap, partial text, fragment-wise decompile, spill to disk). Compatibility: protocol 3 gains the
trace capability and additive decompile fields; protocol 2 is unchanged; minClient stays 1.0.0;
HydraCpu ABI 2. Every gate result, and every gate that was not met or not run, is in
docs/release-notes-12.3-hydra.6.md. Every result is for a
process tree on Windows x64 with JDK 25 on NTFS, from an install assembled locally (not the Gradle/CI
release zip).

Semantic trace

  • Contract. Ghidra/Features/HeadlessSession/TRACE-1.md (envelope, core kinds, resource and state
    identity, generations, clock domains, sources and coverage, relations, interpretations, assertions, the
    raw-segment framing, limitation codes) and the JSON Schemas in trace-schema/. PROTOCOL-3.md gains
    the trace capability. Nothing about protocol 2 changed (it gets unknown_command for trace_*);
    minClient stays 1.0.0.
  • hydra-trace crate (in hydra_native, plus a hydra-trace.exe CLI): a SQLite store with raw
    segments (CRC and hash chain, torn-tail repair, rebuild equals the original), group-commit ingest,
    process/thread/module generations, symbolization against the sealed read plane, bounded queries with
    stable cursors, relations built from correlation and never from timestamps alone, explain, aligned
    diff, three-valued assertions, interpretations (decode revisions), payload artifacts with export
    gating and eviction tombstones, JSONL export, minidump import and the keyed-ID privacy model.
  • Protocol 3 commands trace_open, trace_append, trace_mark, trace_query, trace_explain,
    trace_diff, trace_check, trace_export, trace_close, trace_list, trace_info,
    trace_resymbolize: Java routes, Rust answers. One writer lease per session (owner capability,
    producer generation, takeover after a writer kill); readers never wait for the writer.
  • Clients. trace_* in ghidra_session.py and in the Rust hydra-client; hydra-agent has a trace
    read workload; hydra-etw (new, packaged like hydra-agent) is the ETW consumer and refuses cleanly
    without elevation.
  • Fix found by the release gates. A trace reply took its revision, its pin (MAX(seq)) and its rows
    from three separate statements, each seeing the newest commit. A batch committed between them gave a
    reply labelled revision r with the rows of r+1 (37 of 381 replies in the regression test
    query::tests::a_reply_at_revision_r_holds_exactly_the_events_of_r). trace_query now answers from one
    read snapshot.
  • HydraCpu ABI. hydra_native reports ABI 2; the Java side (HydraCpu.ABI_VERSION) matches. An
    install must carry both (the Utility jar and the library).
  • Privacy tests, benchmarks (--trace-readers, --cpu-profile, --affinity, trace_bench_rounds.py,
    trace_constrained.py) and the README "System requirements" (minimum, reference, recommended, optional
    capabilities, support matrix, constrained behaviour).

decompile: response cap per query and non-contiguous functions (issues 6 and 7)

  • decompile takes maxResultMb (alias max_result_mb, 1 to 1024; maxResultKb for a cap below 1 MB): a hard ceiling on the native decompiler's response buffer. It is not maxChars, which only cuts the text of an answer that already fit. A response over the cap now answers completed:false, truncated:true, bytes_emitted, reason:"response_buffer" instead of failing with Response buffer size exceeded; a timeout is labelled reason:"timeout". Absent, the budget is adaptive (it was a fixed 50 MB): a quarter of the free physical memory above a 4096 MB floor and an eighth of the free heap, divided by the decompiles in flight, 8 to 1024 MB (more once a request spills, below); the buffer fills page by page and the request timeout still bounds a runaway decompile. An overflow reply carries budget with those numbers. offset pages the text (next_offset). Raise the cap for the whole text; the front of the text is returned as partial (below).
  • A function with a non-contiguous (pdata) body that the decompiler cannot flow over (it ran into a pointer table between pieces: Bad instruction count exceeded) now decompiles piece by piece: completed:true, partial:true with a fragments list of {start, end, class: code|data|unknown, decompiled}; data pieces are skipped. Whole-body decompiles that succeed are unchanged. Tests: examples/cc_issues_eng.py. Details: PROTOCOL-3.md 8.21.
  • An overflowed response now also carries the C text it began with (issue 6, second step): additive fields partial:true, c (cut to maxChars), chars, signature and cut (kind, c_recovered, c_chars, c_lines, what is missing). The text is read token by token from the front of the packed answer (PartialMarkup), so it is exactly the first part of the complete text (long comments are not rewrapped, names are not transformed); completed stays false and reason stays response_buffer. A cap that ends before the C markup begins gives cut.c_recovered:false and no c. Java API: DecompInterface.setSalvageOverflow / takeSalvaged. Test: cap_partial in examples/cc_issues_eng.py.
  • A decompile response is no longer bounded by the JVM heap (issue 6, third step; additive, minClient unchanged): the first spillThresholdMb (default 32; 0 = off) MB of the decompiler's answer stay on the heap and the pages after that are appended to a temporary file hydra-decompiler-spill/spill-<pid>-...bin under java.io.tmpdir, deleted when the request ends (delete-on-close, plus a sweep of dead processes' files). A spilled answer that completes is not decoded into a tree: the C text window of the request (offset, maxChars) is read from the file token by token and the reply says streamed:true and spill:{...} (long comments are not rewrapped, names do not go through the name transformer, not cached; a page request decompiles again). While reading, a guard checks about every MB the free physical memory (spillHardFloorRamMb, default 1024 MB), the free disk space against diskReserve and a quota; on a trip the answer is the existing structured completed:false, truncated:true, reason:"response_buffer" with the front of the C text, plus limit (response_cap, free_ram, disk_free, spill_quota, spill_io), never an exception. With no maxResultMb the adaptive budget grows to the threshold plus a quarter of the free disk above the reserve (at most 2000 MB). A request that spills moves from the quick lane to the long lane (Scheduler.Ticket.moveToLong). New Java API: ResponseSpill, PackedDecode.setSpill, DecompInterface.setResponseSpill/takeStreamed, PartialMarkup.read(decoder, keep, skip). Tests: examples/cc_issues_eng.py (spill). Details: PROTOCOL-3.md 8.21.
  • DecompInterface.setMaxResultBytes and DecompileProcess.setMaxResultBytes (Java API): a per-use cap in bytes that wins over the options' payload limit.

Other fixes and changes since the first h6 candidate

  • Revision snapshot (73b3a8380a, listed above): trace_query answers from one read snapshot.
  • Foreign-wait attribution and the single-flight open (4599c62c51, 8d6ff2f647): an open_program that takes the lock while the program is not open counts as single-flight for its whole hold, and so does every read-only open_program on the exclusive path (the swap of a warm program to its upgrade-cache copy was the case missed by the first fix); before, waiters behind them were counted as foreignBlocked in the window after the program was set. waits gains the additive foreignRecent, which names recent foreign waits. In the final 18-run bench foreignBlocked is 0 in every run.
  • ForkIntent.write retries the rename against handle holders (found as the e2a_kill_fork failure under load).
  • Trace performance (lanes perf-low, perf-high, perf-mid): trace_* reads and trace_append take a raw request path (no per-call shared arena, one progress poller), the native cells are recycled, a request is parsed straight into the command's type; ingest is single-pass (clone-free chain and canon, overlapped segment sync, 16K pages): 1,000,000 events at about 92,000 events/s (60,197 in the first run of the same log, _logs/perf-mid-final.log); trace_info is O(1) on a live session (incremental relation and symbol counts, MAX(seq) count; it was O(session size)); readers are pooled; the hydra-etw consumer costs 1.77 us per event against 2.37 (one-pass framing, lock-free callback, cached HMAC state, larger session buffers; 3 interleaved elevated rounds). The ETW kernel PID filter stays opt-in (--kernel-filter): the kernel file and registry providers do not apply it.
  • Tests: the legacy 12.1.4 fixture copies are re-owned for the running user (the three legacy cases no longer fail on a machine whose user is not test); refcount_leak waits for a late view release; first_open_attribution and the e9_guarded_threads beat detection; chaos_oracle uses 8 readers again; the R1 hello golden masks the trace capability; new swap_open_attribution.

Known limits (see the release notes for the runs)

  • Install under test is a local assembly, not a Gradle/CI build of the release zip; the hosted-runner CI was not run.
  • Soak on the final install, an -Xmx run, ReFS and other hardware were not run.
  • Protocol-2 and protocol-3 characterization goldens are stale against hydra.5 (the status reply gained decompileBackend) and were not re-recorded.
  • Pre-existing and untouched: fmt drift in HeadlessSession/rust and 14 clippy errors in Features/Decompiler/rust.
  • yield_slots_stress and script_modes fail only under 16-worker load.

Test runs for this release

See docs/release-notes-12.3-hydra.6.md section 2 and .github/local-test-record.json.

Download and testing

Built by the release workflow from 5a1d8db393a7151463404b5291b36e60a7f5d553, then unzipped and tested there.

File Size Built and tested on Result
hydra-engine-12.3-hydra.6-win_x86_64.zip 366 MiB windows-latest (Windows-2025Server, openjdk version "25.0.5" 2026-10-20 LTS) built; session_smoke.py passed on the unzipped install; daemon_tests.py and contract_tests.py passed locally on 2aad4c6d63 (.github/local-test-record.json; only documents changed since)

SHA-256 (also in SHA256SUMS):

06469b20f84fcbd4691e22bed627fcca78659acef0d14eeb8882b823c7326874  hydra-engine-12.3-hydra.6-win_x86_64.zip
527924842c5f678d5e1f556140fb96044bded1b6970dd9d5bc7d53fb93cc7c81  hydra-client-12.3-hydra.6.zip