13 Nov
2026
13 Nov
'26
11:17 p.m.
Issue #22548 has been reported by rdil (Reece Dunham). ---------------------------------------- Bug #22548: Segfault after calling String#rindex repeatedly https://bugs.ruby-lang.org/issues/22548 * Author: rdil (Reece Dunham) * Status: Open * ruby -v: 4.0.5 * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- Not sure what's going on, but this seems to be crashing our production application's Ruby instances in certain cases. I've managed to cut it down to just this minimum reproduction: ``` k = []; 3000.times { s = 'a' * 55; k << s; s.rindex('😀' * 4) } ``` I've reproduced on Ruby 3.3.13 and 4.0.5. (On macOS) -- https://bugs.ruby-lang.org/