From: i@... Date: 2021-07-06T14:28:05+00:00 Subject: [ruby-core:104519] [Ruby master Bug#18023] Ractor#make_shareable changes the values of closured shareable objects Issue #18023 has been reported by slowpilot (Ivan Razuvaev). ---------------------------------------- Bug #18023: Ractor#make_shareable changes the values of closured shareable objects https://bugs.ruby-lang.org/issues/18023 * Author: slowpilot (Ivan Razuvaev) * Status: Open * Priority: Normal * ruby -v: 3.0.0, 3.0.1 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Hi. I encountered strange behaviour or shareable procs when every even closured shareable variable becomes the FalseClass instance. ``` ruby [usr@srvr ~]$ irb 3.0.1 :001 > v1, v2, v3, v4 = :a, :b, :c, :d => [:a, :b, :c, :d] 3.0.1 :002 > p = Proc.new { p v1, v2, v3, v4 } => # 3.0.1 :003 > p.() :a :b :c :d => [:a, :b, :c, :d] 3.0.1 :004 > Ractor.make_shareable(p).() :a false :c false => [:a, false, :c, false] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: