summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/array_spec.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-03-11 13:14:13 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-03-12 15:00:26 -0400
commit9b9661883b1e2cc85b1341d804b106885432d2bd (patch)
tree5467d9601a17927d235702136f38d2477e984795 /spec/ruby/core/array/array_spec.rb
parenta8d63ecdb82c33744c0d1fcfa362b0c7247e83c9 (diff)
Have `ast` live longer in ISeq.compile_file to fix GC stress crash
Previously, live range of `ast_value` ended on the call right before rb_ast_dispose(), which led to premature collection and use-after-free. We observed this crashing on -O3, -DVM_CHECK_MODE, with GCC 11.4.0 on Ubuntu. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12898
Diffstat (limited to 'spec/ruby/core/array/array_spec.rb')
0 files changed, 0 insertions, 0 deletions