[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...
Issue #17664 has been reported by ciconia (Sharon Rosner).
23 messages
2021/02/28
[ruby-core:102416] [Ruby master Bug#17612] ractor crash with some simple codes
From:
908709778@...
Date:
2021-02-08 06:56:45 UTC
List:
ruby-core #102416
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>