Skip to content

Commit fa69574

Browse files
Ralph Küpperproggeramlug
authored andcommitted
changelog: #11363
1 parent 6f209d4 commit fa69574

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- **Tests (gc):** fixed an intermittent SIGSEGV in the full `perry-runtime` lib suite (#11362). It surfaced in `gc::tests::barrier::test_dirty_page_map_entry_scan_is_external_range_bounded` and `test_incremental_barrier_marks_external_map_and_set_slots`. The cause was a test fixture, not the collector. The hand-built old-generation Map fixture got its header from `arena_alloc_gc_old` and initialised only `size`, `used`, `capacity` and `entries`. That allocator reuses swept holes without zeroing, so `MapHeader.store` held an earlier test's bytes (`0x7878…`, a `"xxx…"` string). The thread-exit arena drop (`walk_block_maps` → `drop_map_store_at_thread_exit`) then `Box::from_raw`'d that value after the test had passed. The fixture now lives once in `gc/tests/support.rs` and zeroes the whole header first. The Set fixture's residue `meta`/`used` get the same treatment. A new regression test poisons the header with `0x78` before initialising it.

0 commit comments

Comments
 (0)