You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: port_comparison bench panics at bmem/count (16 vs 0) on a full run #2154
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
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.
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.
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
rdoupe commentedon Oct 24, 2026
Claiming: #2154.
obs-c-oracle: Check each port_comparison module frees its fixtures
obs-c-oracle: Free the source profiler bench's sources
obs-c-oracle: Allocate dstr-libc's conversions with the libobs bmalloc
obs-c-oracle: Free what port_comparison's fixtures allocate (obs-rust…