Skip to content

fix(obs-c-oracle): give the service bench a real stand-in output - #3898

Merged
zackees merged 1 commit into
masterfrom
agent/bug-3886
Nov 8, 2026
Merged

zackees merged 1 commit into
masterfrom
agent/bug-3886

Conversation

@zackees

@zackees zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member

Fixes #3886

The #1920 live-service fixture in benches/port_comparison/service.rs linked its service to ptr::without_provenance_mut(0x07). Since #3850, deactivate calls obs_service_detach_from_output(), which writes the output's service field, so the bench aborted (misaligned pointer dereference ... 0x44f).

The oracle now exports oracle_service_output_new/free (a zeroed struct obs_output); the bench uses it and frees it with the other fixtures.

RED (before): soldr cargo test -p obs-c-oracle --locked --bench port_comparison → SIGABRT at service_state.rs:75.
GREEN (after): same command exits 0; ./lint passes.

🤖 Generated with Claude Code

The #1920 live-service fixture linked its service to 0x07. Since #3850
deactivate detaches the service through obs_service_detach_from_output(),
which writes the output's service field and aborted the bench with a
misaligned pointer dereference. Allocate a zeroed struct obs_output from
the oracle and free it with the other fixtures.

Fixes #3886

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@rdoupe rdoupe mentioned this pull request Nov 8, 2026
5 of 7 tasks
Merged via the queue into master with commit 9860702 Nov 8, 2026
38 of 40 checks passed
@zackees
zackees deleted the agent/bug-3886 branch November 8, 2026 23:38
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-c-oracle: port_comparison service bench dereferences its stand-in output

1 participant