[ruby-core:116804] [Ruby master Bug#19395] Process forking within non-main Ractor hits rb_bug()
From:
"luke-gru (Luke Gruber) via ruby-core" <ruby-core@...>
Date:
2024-02-16 19:19:49 UTC
List:
ruby-core #116804
Issue #19395 has been updated by luke-gru (Luke Gruber).
I can no longer reproduce this issue, I probably had some changes in my tree that were causing the issues. Sorry! Please close.
----------------------------------------
Bug #19395: Process forking within non-main Ractor hits rb_bug()
https://bugs.ruby-lang.org/issues/19395#change-106827
* Author: luke-gru (Luke Gruber)
* Status: Feedback
* Priority: Normal
* ruby -v: 3.2.0
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
```ruby
def test_fork_in_ractor
r2 = Ractor.new do
pid = fork do
exit Ractor.count
end
pid
end
pid = r2.take
puts "Process #{Process.pid} waiting for #{pid}"
_pid, status = Process.waitpid2(pid) # stuck forever
if status.exitstatus != 1
raise "status is #{status.exitstatus}"
end
end
test_fork_in_ractor()
```
$ top # shows CPU usage is high for child process
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/