* [ruby-core:124901] [Ruby Bug#21931] GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)
@ 2026-03-03 9:14 byroot (Jean Boussier) via ruby-core
2026-03-03 9:20 ` [ruby-core:124903] " byroot (Jean Boussier) via ruby-core
0 siblings, 1 reply; 2+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2026-03-03 9:14 UTC (permalink / raw)
To: ruby-core; +Cc: byroot (Jean Boussier)
Issue #21931 has been reported by byroot (Jean Boussier).
----------------------------------------
Bug #21931: GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)
https://bugs.ruby-lang.org/issues/21931
* Author: byroot (Jean Boussier)
* Status: Open
* Backport: 3.2: WONTFIX, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED
----------------------------------------
Reproduction
```ruby
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
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-core:124903] [Ruby Bug#21931] GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)
2026-03-03 9:14 [ruby-core:124901] [Ruby Bug#21931] GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1) byroot (Jean Boussier) via ruby-core
@ 2026-03-03 9:20 ` byroot (Jean Boussier) via ruby-core
0 siblings, 0 replies; 2+ messages in thread
From: byroot (Jean Boussier) via ruby-core @ 2026-03-03 9:20 UTC (permalink / raw)
To: ruby-core; +Cc: byroot (Jean Boussier)
Issue #21931 has been updated by byroot (Jean Boussier).
- 3.3 backport PR: https://github.com/ruby/ruby/pull/16288
- 3.4 backport PR: https://github.com/ruby/ruby/pull/16287
- 4.0 backport PR: https://github.com/ruby/ruby/pull/16286
----------------------------------------
Bug #21931: GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1)
https://bugs.ruby-lang.org/issues/21931#change-116565
* Author: byroot (Jean Boussier)
* Status: Open
* Backport: 3.2: WONTFIX, 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED
----------------------------------------
Reproduction
```ruby
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
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-03 9:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 9:14 [ruby-core:124901] [Ruby Bug#21931] GC Crash in `String#%` (backport 726205b354d1068147719fb42e1de743f1838ef1) byroot (Jean Boussier) via ruby-core
2026-03-03 9:20 ` [ruby-core:124903] " byroot (Jean Boussier) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).