Actions
Bug #19411
closedGC issue with moved objects
Bug #19411: GC issue with moved objects
Description
This crashes:
class Obj def initialize @obj = 3 end end GC.stress = true r = Ractor.new do obj = receive p obj end obj = Obj.new r.send(obj, move: true) r.take It only crashes with nested objects, if you remove the ivar set in initialize it works fine. Maybe missing RB_GC_GUARD?
Updated by luke-gru (Luke Gruber) almost 3 years ago
The issue is again with shapes (related to https://bugs.ruby-lang.org/issues/19409). Newly moved objects (class MovedObject) need to have their shape reset to root shape. I'll make a PR for this.
Updated by luke-gru (Luke Gruber) almost 2 years ago
This has been fixed in https://github.com/ruby/ruby/commit/32c4b0125f9afe11909d1c10e4133e20180e809e, please close. Thanks!
Updated by jeremyevans0 (Jeremy Evans) almost 2 years ago
- Status changed from Open to Closed
Actions