Actions
Bug #17622
closedSegfault in new Rails app
Bug #17622:
Segfault in new Rails app
Description
There is a segfault in Ruby master and Ruby 3.0.0, but not present in Ruby 2.7.2. A bisect shows that it's present since commit a53e2850c572135ed657144bc14e47b29c64fa94.
Reproduction¶
-
Use Ruby 3.0.0 or Ruby master.
-
Create a new Rails app (
rails new repro). -
Add the following
script.rb: -
Run the script with
DISABLE_BOOTSNAP=1 ruby script.rb
Expected output¶
The script should print ok.
Actual output¶
Crashes with a segfault (check file crash.log for full crash log).
Files
Actions