From: ko1@... Date: 2021-02-09T02:31:31+00:00 Subject: [ruby-core:102421] [Ruby master Bug#17612] ractor crash with some simple codes Issue #17612 has been updated by ko1 (Koichi Sasada). Assignee set to ko1 (Koichi Sasada) Status changed from Open to Assigned Could you give me an error log? ```ruby 2.times.map{ Ractor.new{ loop{ rand.to_s } } }.each(&:take) ``` I can find an issue on the simpler example, but I also observed different error on the your original example. I want to confirmed what error you got. ---------------------------------------- Bug #17612: ractor crash with some simple codes https://bugs.ruby-lang.org/issues/17612#change-90293 * Author: tomanderson (Thomas Ender) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * 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: