[ruby-core:112973] [Ruby master Bug#19316] YJIT crash in 3.2.0
From:
"alanwu (Alan Wu) via ruby-core" <ruby-core@...>
Date:
2023-03-21 20:57:04 UTC
List:
ruby-core #112973
Issue #19316 has been updated by alanwu (Alan Wu).
@nagachika You shouldn't need any other code changes. To fix CI, pass `exit: :any` in the test:
```ruby
def test_bug_19316
- omit "skip this test for [Bug #19316] for a while."
n = 2 ** 64
# foo's extra param and the splats are relevant
- assert_compiles(<<~'RUBY', result: [[n, -n], [n, -n]])
+ assert_compiles(<<~'RUBY', result: [[n, -n], [n, -n]], exits: :any)
def foo(_, a, b, c)
[a & b, ~c]
end
```
We only care about getting the correct result in this case so don't mind exiting from YJIT.
Keeping the `omit` is also probably fine.
----------------------------------------
Bug #19316: YJIT crash in 3.2.0
https://bugs.ruby-lang.org/issues/19316#change-102501
* Author: jdashton (J Daniel Ashton)
* Status: Closed
* Priority: Normal
* Assignee: yjit
* ruby -v: ruby 3.2.0 (2022-12-25 revision a528908271) +YJIT [x86_64-darwin22]
* Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED, 3.2: DONE
----------------------------------------
When I check out this commit from GitHub, https://github.com/jdashton/aoc2022-ruby/tree/5702dac483cd6e95f7be35bfebaf9d4a654796d8 , and run the following command, `RUBYOPT="-v --yjit" bin/rspec spec/aoc2022/puzzles/unstable_diffusion_spec.rb`, Ruby crashes.
Crash Report log file attached.
---Files--------------------------------
ruby-2023-01-06-091855.ips (21.6 KB)
--
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/postorius/lists/ruby-core.ml.ruby-lang.org/