Actions
Bug #22378
open`Ractor::IsolationError` in code not using Ractors
Bug #22378:
`Ractor::IsolationError` in code not using Ractors
ruby -v:
ruby 4.1.0dev (2026-09-23T07:42:54Z master 8cdc7b5957) +PRISM [x86_64-linux]
Description
I expect this code to succeed. dup returns an unfrozen copy, so I should be able to set instance variables on it. However, I get the following error even though the code is ractor-free:
test.rb:2:in 'Kernel#instance_variable_set': can't modify instance variables of a shareable Class (Ractor::IsolationError)
It works on 4.0 but fails on current master. Caused by #22291
Updated by Earlopain (Earlopain _) 1 day ago
- Related to Bug #22291: Instance variables should be forbidden on Ractor-shareable objects added
Updated by Earlopain (Earlopain _) 1 day ago
- Description updated (diff)
Updated by luke-gru (Luke Gruber) 1 day ago
- Assignee set to ractor
Actions