CARVIEW |
Select Language
HTTP/2 200
x-amz-id-2: mf89YPtIw1CBh5TPD2NI4IcZRRVrRKy8UNYNYY/mf4y6bpZEC8Zx+OEZjbfnnxtzx4pqz0yqqkfYFIA3PuBXhHerOXVU3gBAVqGFztNkjfU=
x-amz-request-id: KTPVVCV9NWWV941V
last-modified: Fri, 23 May 2025 20:02:11 GMT
etag: "7420eb91ae781cd408a45ee1be1b6fed"
x-amz-server-side-encryption: AES256
server: AmazonS3
content-encoding: gzip
via: 1.1 varnish, 1.1 varnish
content-type: text/plain; charset=utf-8
accept-ranges: bytes
age: 0
date: Fri, 25 Jul 2025 10:37:16 GMT
x-served-by: cache-tyo11935-TYO, cache-bom-vanm7210037-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753439836.708801,VS0,VE305
vary: Accept-Encoding
content-length: 596
From: "peterzhu2118 (Peter Zhu) via ruby-core"
Date: 2025-05-23T19:57:36+00:00
Subject: [ruby-core:122261] [Ruby Bug#21368] Moving objects with finalizer between Ractors crashes
Issue #21368 has been reported by peterzhu2118 (Peter Zhu).
----------------------------------------
Bug #21368: Moving objects with finalizer between Ractors crashes
https://bugs.ruby-lang.org/issues/21368
* Author: peterzhu2118 (Peter Zhu)
* Status: Open
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
When an object is moved to a different Ractor, the finalizers are not copied to the new object, so it will have the `FL_FINALIZE` flag set but no entry in the finalizer table.
The following script crashes:
```ruby
r = Ractor.new do
loop { Ractor.receive }
end
1_000.times do
o = Object.new
ObjectSpace.define_finalizer(o, proc { |id| })
r.send(o, move: true)
end
```
--
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/lists/ruby-core.ml.ruby-lang.org/