[bug] gauntlet panics when a preset has more players than the 6-entry roster #151

Closed
opened 2026-10-02 19:38:51 +00:00 by Winnie · 0 comments
Owner

Found while running the suite for #149; reproduces on clean master (ba9395d): TestTinyBenchWritesIterationLog panics with "slice bounds out of range [:8] with capacity 6" at bench.go:300 — the specialist gauntlet builds roster = [spec, spec, mains...] (2 + 4 = 6 entries) and then slices roster[:cfg.Players], so any preset with Players > 6 panics. The roster should be padded (e.g. cycle the mains) up to cfg.Players before the slice.

Found while running the suite for #149; reproduces on clean master (ba9395d): TestTinyBenchWritesIterationLog panics with "slice bounds out of range [:8] with capacity 6" at bench.go:300 — the specialist gauntlet builds roster = [spec, spec, mains...] (2 + 4 = 6 entries) and then slices roster[:cfg.Players], so any preset with Players > 6 panics. The roster should be padded (e.g. cycle the mains) up to cfg.Players before the slice.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars#151
No description provided.