From: jean.boussier@... Date: 2021-01-23T08:38:05+00:00 Subject: [ruby-core:102213] [Ruby master Bug#17574] Hash#inspect segfault Issue #17574 has been updated by byroot (Jean Boussier). It very much look like a duplicate of https://bugs.ruby-lang.org/issues/16689 @01wsmith you should try Ruby 2.7.2, this bug as been fixed in 2.7.1. ---------------------------------------- Bug #17574: Hash#inspect segfault https://bugs.ruby-lang.org/issues/17574#change-90060 * Author: 01wsmith (w smith) * Status: Feedback * 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: