espressoe5rtprobe

command
v0.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command espressoe5rtprobe reports what the generated private/espresso binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else.

The normal compile, load, bind, and synchronous-dispatch route has been called through generated signatures under a CPU reference. Those 33 signatures carry the manifest's strongest grade, but it was earned from the handwritten e5rt adapter's own call sites: a record that the route is exercised, not independent confirmation of it. The independent evidence is the end-to-end CPU-reference and mutation-control examples, espressoe5rtdispatch and espressoe5rtblock. Resolving the remaining names with dlsym does not establish their calling conventions.

The tool keeps its shape anyway, because the hazard it was built around has not changed. Calling a wrong signature through purego faults in C, where the fault is fatal and unrecoverable — a Go recover cannot see it — and E5RT reports at least one failure by throwing a C++ exception, which a purego caller cannot catch either, so the wrapper returns success and the process dies later in an unrelated frame. Anything that reaches a private entry point belongs in a child process whatever the current confidence.

Commands

The symbols command is the default and is safe: it loads the framework, reports which symbols resolved, and compares that set against the export list in the SDK's Espresso.tbd stub. It calls no e5rt_* function.

The canary command proves the crash harness works, by running a child that jumps to an invalid address and checking that the parent reports CRASHED. A crash report from a harness that has not been shown to be able to report a crash is worth nothing.

The stages command calls the unverified wrappers. Each sequence of calls runs in its own child process and streams one record per step it reaches, so a fault localizes to a named step rather than to "the example", and the parent survives to report it. It is gated behind both -allow-unverified-calls and CONFIRM_E5RT_UNVERIFIED_CALLS=call-guessed-signatures.

Outcomes

No step is ever reported as OK. A step is RESOLVED or MISSING (dlsym, the one verified operation), RETURNED (the call returned, with its status code — evidence about control flow only, not that the call did what its name says), ERROR (the wrapper failed before calling), CRASHED, or UNREACHED. A step that was not run is UNREACHED, never a success.

go run ./examples/ane/espressoe5rtprobe
go run ./examples/ane/espressoe5rtprobe symbols -json
go run ./examples/ane/espressoe5rtprobe canary
CONFIRM_E5RT_UNVERIFIED_CALLS=call-guessed-signatures \
  go run ./examples/ane/e5rtprobe stages -allow-unverified-calls

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL