From: "peterzhu2118 (Peter Zhu)" Date: 2022-10-05T20:08:15+00:00 Subject: [ruby-core:110187] [Ruby master Bug#19038] Corruption of generic_iv_tbl when compacting Issue #19038 has been reported by peterzhu2118 (Peter Zhu). ---------------------------------------- Bug #19038: Corruption of generic_iv_tbl when compacting https://bugs.ruby-lang.org/issues/19038 * Author: peterzhu2118 (Peter Zhu) * Status: Open * Priority: Normal * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED ---------------------------------------- GitHub PR: https://github.com/ruby/ruby/pull/6494 When the generic_iv_tbl is resized up, rebuild_table performs allocations that can trigger GC. If autocompaction is enabled, then moved objects are removed from and inserted into the generic_iv_tbl. This may cause another call to rebuild_table to resize the generic_iv_tbl. When returning back to the original rebuild_table, some of the data may be stale, causing the generic_iv_tbl to be corrupted. Co-Authored-By: @eightbitraptor -- https://bugs.ruby-lang.org/ Unsubscribe: