Project

General

Profile

Actions

Bug #21931

closed

GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)

Bug #21931: GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)

Added by byroot (Jean Boussier) 4 days ago. Updated about 19 hours ago.

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

Description

Reproduction

GC.stress = true

class Args
  def to_ary
    Array.new(64) { "x" * 1024 }
  end
end

fmt = "%s" * 64
100_000.times do
  fmt % Args.new
end

Patch that should be backported https://github.com/ruby/ruby/commit/726205b354d1068147719fb42e1de743f1838ef1

Actions

Also available in: PDF Atom