Project

General

Profile

Actions

Bug #22548

closed

Segfault after calling String#rindex repeatedly

Bug #22548: Segfault after calling String#rindex repeatedly

Added by rdil (Reece Dunham) 1 day ago. Updated about 16 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:127478]

Description

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)

Actions

Also available in: PDF Atom