General

Profile

tomanderson (Thomas Ender)

  • Login: tomanderson
  • Registered on: 02/08/2021
  • Last sign in: 06/02/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

04/09/2021

12:33 PM Ruby Bug #17791 (Third Party's Issue): Ractor exception when using Nokogiri
Parsing xml using nokogiri:
``` ruby
doc = Nokogiri.XML('<foo><bar /></foo>', nil, 'EUC-JP')
```
Suppose I want to parse 4 xmls with 4 ractors, it will raise an unsafe exception:
```
Ractor::UnsafeError: ractor unsafe method call...
tomanderson (Thomas Ender)

02/09/2021

01:05 PM Ruby Bug #17612: ractor crash with some simple codes
@ko1 Here is my error log when running your simpler code:
irb(main):036:0> 2.times.map{ Ractor.new{ loop{ rand.to_s } } }.each(&:take)
<internal:ractor>:267: warning: Ractor is experimental, and the behavior may change in future vers...
tomanderson (Thomas Ender)

02/08/2021

06:56 AM Ruby Bug #17612 (Closed): ractor crash with some simple codes
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(ra...
tomanderson (Thomas Ender)

Also available in: Atom