Actions
Bug #19338
closedRuby hangs when ouputting warnings inside ractor with VM lock held
Bug #19338:
Ruby hangs when ouputting warnings inside ractor with VM lock held
Description
This code causes Ruby to hang:
There is a problem when the warning is being outputted with multiple ractors. A thread is calling RB_VM_LOCK() while holding the VM lock in ractor.c (ractor_check_blocking())
If the code is changed to RB_VM_LOCK_ENTER() and RB_VM_LOCK_LEAVE() then it fixes it, but I don't know if there's a better way.
Thanks!
Updated by luke-gru (Luke Gruber) over 3 years ago
- Subject changed from Ruby hangs when defining new constant in ractor to Ruby hangs when ouputting warnings inside ractor
Updated by luke-gru (Luke Gruber) over 3 years ago
Updated by luke-gru (Luke Gruber) over 3 years ago
- Subject changed from Ruby hangs when ouputting warnings inside ractor to Ruby hangs when ouputting warnings inside ractor with VM lock held
Updated by hsbt (Hiroshi SHIBATA) over 3 years ago
- Status changed from Open to Assigned
- Assignee set to ko1 (Koichi Sasada)
Updated by jhawthorn (John Hawthorn) over 1 year ago
- Assignee changed from ko1 (Koichi Sasada) to ractor
Updated by byroot (Jean Boussier) over 1 year ago
- Status changed from Assigned to Closed
I was able to reproduce this on 3.3, but not on 3.4 not master. So I'll assume it was fixed and close.
Actions