From: 01wsmith@... Date: 2021-01-23T00:12:16+00:00 Subject: [ruby-core:102207] [Ruby master Bug#17574] Hash#inspect segfault Issue #17574 has been reported by 01wsmith (w smith). ---------------------------------------- Bug #17574: Hash#inspect segfault https://bugs.ruby-lang.org/issues/17574 * Author: 01wsmith (w smith) * Status: Open * Priority: Normal * ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- While working in irb, I encountered an issue: ``` ruby x = {1 => {2 => 5}, 3 => {4 => 6}} y = x[1] y[11] = 3 x.transform_values!(&:clone) y[11] = nil x ``` `x.inspect` causes irb to segfault. I was not able to test this on ruby 3.0.0. While experimenting with this I found that `x[1]` may change. However, it seems to work fine in ruby itself. irb -v: `irb 1.2.1 (2019-12-24)` -- https://bugs.ruby-lang.org/ Unsubscribe: