[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101797] [Ruby master Bug#17489] Ractor segfaults
From:
shatrov@...
Date:
2020-12-28 21:23:32 UTC
List:
ruby-core #101797
Issue #17489 has been reported by kirs (Kir Shatrov).
----------------------------------------
Bug #17489: Ractor segfaults
https://bugs.ruby-lang.org/issues/17489
* Author: kirs (Kir Shatrov)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I was able to boil it down to this script:
```ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem "sinatra", "~> 2.1"
end
require 'sinatra'
class App < Sinatra::Base
get '/' do
200
end
end
module Sinatra
class Base
class << self
# patch it to avoid hitting other unsafe things
def setup_default_middleware(builder)
builder.use Rack::NullLogger
end
end
end
end
workers = 2.times.map do
Ractor.new { App.new }
end
Ractor.select(*workers)
```
Even though the code doesn't make a lot of sense and Sinatra has other stuff that's not compatible with Ractor, I would not expect user-level Ruby code to segfault.
I have attach the crash report and stderr output.
---Files--------------------------------
segfault.dump (44.8 KB)
ruby_2020-12-29-002108_Kirs-MacBook-Pro-2.crash (27.9 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>