Skip to content

test: port_comparison bench panics at bmem/count (16 vs 0) on a full run #2154

Closed

Description

@rdoupe

Bug

A full soldr cargo bench -p obs-c-oracle --bench port_comparison run panics before it finishes:

benchmark fixture differs: bmem/count
  left: 16
 right: 0

util::benchmarks compares the Rust bnum_allocs() with the C oracle's oracle_bnum_allocs() as a fixture (pair() asserts the two are equal before it measures). By the time util runs, the benches that ran before it have left 16 Rust-side allocations live, or counted. The C oracle's counter is still at 0. One run also logged that service bench_live failed to be created just before the panic, so a fixture that fails to set up and doesn't release what it allocated is a likely cause.

Every port since #2117 has hit this. Each one benched only its own file, with an uncommitted edit to the bench list, so the full comparison table hasn't run end to end.

Plan

  1. Find which earlier bench leaves the 16 Rust allocations live: bisect the module list in comparisons(), check the bench_live service fixture, and print the counter after each module.
  2. Fix the source. That means releasing what the fixture allocates, or making the fixture creation succeed. Only if the allocations are deliberately process-lived should bmem/count compare deltas across a fresh allocate/free instead of absolute counts.
  3. Check that a full run completes and that --test mode passes. Add a cheap check, such as a cargo bench --no-run plus a --test run in an existing lane, if one fits without new CI cost. Otherwise just document the full-run command.

Activity

  1. rdoupe commented on Oct 24, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2154.

  2. added
    claimed
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions