Ray's Knowledge Base
Unlock

Rebuild plugins after changing fingerprinted ABI headers

PitfallVerified 5 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

Even a comment or whitespace edit to a fingerprinted dftracer-utils ABI header changes the plugin ABI fingerprint. Plugins built earlier are then rejected at load although the binary interface did not change.

Cause#

The fingerprint is a SHA-256 over raw bytes of plugins/abi.h, plugins/abi/*.h, and dataframe/abi.h, cut to 32 bits. It is computed in both cmake/scripts/plugin_abi_version.cmake and _plugin_build.py, and the two calculations must agree.

Fix#

After touching one of these headers, rebuild so the fingerprint regenerates, then rebuild any plugins. Never edit the fingerprint by hand.

Evidence#

Observed in dftracer-utils. The inbox note also says a new function appended to a host service struct is safe for old plugins but unsafe for a new plugin on an old host; a new plugin-side struct slot is unsafe for an old plugin on a new host; and a new function in dataframe/abi.h fails load cleanly when missing. Signature, layout, order, enum-value changes, and removals are breaking. A hash-based check treats all of these as a mismatch.

Also found by searching

  • plugin ABI fingerprint changes after a comment or whitespace edit
  • old plugin rejected after editing an ABI header
  • how do I regenerate the dftracer-utils plugin fingerprint
  • cmake and Python plugin ABI hashes disagree