From: 908709778@... Date: 2021-02-08T06:56:45+00:00 Subject: [ruby-core:102416] [Ruby master Bug#17612] ractor crash with some simple codes Issue #17612 has been reported by tomanderson (Thomas Ender). ---------------------------------------- Bug #17612: ractor crash with some simple codes https://bugs.ruby-lang.org/issues/17612 * Author: tomanderson (Thomas Ender) * Status: Open * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- I found these codes will crash because of **Ractor** : ``` ruby e = (1..1000).to_a arr = [e,e,e,e] arr.map { |sub_arr| Ractor.new(sub_arr) do |sub_arr| sub_arr.map { Digest::MD5.hexdigest(rand.to_s) } end }.map{|r| r.take}.reduce(:+) ``` If change e to (1..100), no crashes any more. If we don't use Ractor, it's also good. Environment: ruby3.0.0p0 + rails6.1.1. -- https://bugs.ruby-lang.org/ Unsubscribe: