Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 3.1] Fix missing write barrier in iseq instruction list #8430

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

peterzhu2118
Copy link
Member

@peterzhu2118 peterzhu2118 commented Sep 13, 2023

[Bug #19880]

There's a missing write barrier for operands in the iseq instruction list, which can cause crashes.

It can be reproduced when Ruby is compiled with -DRUBY_DEBUG_ENV=1. Using the following command:

RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0 RUBY_DEBUG=gc_stress ruby -w --disable=gems -Itool/lib -W0 test.rb

The following script crashes:

require "test/unit"

[Bug #19880]

There's a missing write barrier for operands in the iseq instruction
list, which can cause crashes.

It can be reproduced when Ruby is compiled with `-DRUBY_DEBUG_ENV=1`.
Using the following command:

```
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0 RUBY_DEBUG=gc_stress ruby -w --disable=gems -Itool/lib -W0 test.rb
```

The following script crashes:

```
require "test/unit"
```
Copy link
Member

@unak unak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, LGTM
thx!

@unak unak merged commit e031eff into ruby:ruby_3_1 Oct 10, 2023
79 of 84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants