Skip to content

sam: fix buffer reuse bug in infer operator#6742

Merged
nwt merged 1 commit intomainfrom
fix-infer
Mar 17, 2026
Merged

sam: fix buffer reuse bug in infer operator#6742
nwt merged 1 commit intomainfrom
fix-infer

Conversation

@nwt
Copy link
Member

@nwt nwt commented Mar 17, 2026

The infer operator accumulates super.Values that may belong to an sbuf.Batch without copying them, which is a bug since batches can be reused. This is the likely cause of panics and incorrect output from the test at line 37 of runtime/ztests/op/infer.yaml that we've seen on Windows in CI. Fix the bug by copying accumulated values.

The infer operator accumulates super.Values that may belong to an
sbuf.Batch without copying them, which is a bug since batches can be
reused.  This is the likely cause of panics and incorrect output from
the test at line 37 of runtime/ztests/op/infer.yaml that we've seen on
Windows in CI.  Fix the bug by copying accumulated values.
@nwt nwt requested a review from a team March 17, 2026 23:23
@nwt nwt merged commit 572db30 into main Mar 17, 2026
2 checks passed
@nwt nwt deleted the fix-infer branch March 17, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants