Repository navigation
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 intrace-schema/.PROTOCOL-3.mdgains
thetracecapability. Nothing about protocol 2 changed (it getsunknown_commandfortrace_*);
minClientstays1.0.0. hydra-tracecrate (inhydra_native, plus ahydra-trace.exeCLI): 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_*inghidra_session.pyand in the Rusthydra-client;hydra-agenthas a trace
read workload;hydra-etw(new, packaged likehydra-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_querynow answers from one
read snapshot. HydraCpuABI.hydra_nativereports 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)
decompiletakesmaxResultMb(aliasmax_result_mb, 1 to 1024;maxResultKbfor a cap below 1 MB): a hard ceiling on the native decompiler's response buffer. It is notmaxChars, which only cuts the text of an answer that already fit. A response over the cap now answerscompleted:false, truncated:true, bytes_emitted, reason:"response_buffer"instead of failing withResponse buffer size exceeded; a timeout is labelledreason:"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 requesttimeoutstill bounds a runaway decompile. An overflow reply carriesbudgetwith those numbers.offsetpages the text (next_offset). Raise the cap for the whole text; the front of the text is returned aspartial(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:truewith afragmentslist 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.md8.21. - An overflowed response now also carries the C text it began with (issue 6, second step): additive fields
partial:true,c(cut tomaxChars),chars,signatureandcut(kind,c_recovered,c_chars,c_lines,whatis 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);completedstays false andreasonstaysresponse_buffer. A cap that ends before the C markup begins givescut.c_recovered:falseand noc. Java API:DecompInterface.setSalvageOverflow/takeSalvaged. Test:cap_partialinexamples/cc_issues_eng.py. - A decompile response is no longer bounded by the JVM heap (issue 6, third step; additive,
minClientunchanged): the firstspillThresholdMb(default 32; 0 = off) MB of the decompiler's answer stay on the heap and the pages after that are appended to a temporary filehydra-decompiler-spill/spill-<pid>-...binunderjava.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 saysstreamed:trueandspill:{...}(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 againstdiskReserveand a quota; on a trip the answer is the existing structuredcompleted:false, truncated:true, reason:"response_buffer"with the front of the C text, pluslimit(response_cap,free_ram,disk_free,spill_quota,spill_io), never an exception. With nomaxResultMbthe 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.md8.21. DecompInterface.setMaxResultBytesandDecompileProcess.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_queryanswers from one read snapshot. - Foreign-wait attribution and the single-flight open (
4599c62c51,8d6ff2f647): anopen_programthat takes the lock while the program is not open counts as single-flight for its whole hold, and so does every read-onlyopen_programon 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 asforeignBlockedin the window after the program was set.waitsgains the additiveforeignRecent, which names recent foreign waits. In the final 18-run benchforeignBlockedis 0 in every run. ForkIntent.writeretries the rename against handle holders (found as thee2a_kill_forkfailure under load).- Trace performance (lanes
perf-low,perf-high,perf-mid):trace_*reads andtrace_appendtake 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_infois O(1) on a live session (incremental relation and symbol counts,MAX(seq)count; it was O(session size)); readers are pooled; thehydra-etwconsumer 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_leakwaits for a late view release;first_open_attributionand thee9_guarded_threadsbeat detection;chaos_oracleuses 8 readers again; the R1 hello golden masks thetracecapability; newswap_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
-Xmxrun, 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:
fmtdrift inHeadlessSession/rustand 14 clippy errors inFeatures/Decompiler/rust. yield_slots_stressandscript_modesfail 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