From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2026-09-24T08:50:45+00:00 Subject: [ruby-core:126848] [Ruby Bug#22380] Ruby::Box: a GC while copying a class into a box crashes Issue #22380 has been reported by hsbt (Hiroshi SHIBATA). ---------------------------------------- Bug #22380: Ruby::Box: a GC while copying a class into a box crashes https://bugs.ruby-lang.org/issues/22380 * Author: hsbt (Hiroshi SHIBATA) * Status: Open * Assignee: tagomoris (Satoshi Tagomori) * ruby -v: ruby 4.0.7 (2026-09-22 revision 9aea6bb2f1) +YJIT +MN +PRISM [arm64-darwin27] * Backport: 3.3: DONTNEED, 3.4: DONTNEED, 4.0: REQUIRED ---------------------------------------- This is a backport request for the following crash: ``` $ RUBY_BOX=1 ruby --disable-gems -W:no-experimental -e 'GC.stress = true; module Enumerable; def m; end; end' -e:1: [BUG] try to mark T_NONE object (obj: 0x00000001042efe28 T_NONE/, parent: 0x000000010416dc08 T_MODULE/Module Enumerable) ``` Fixed on master by 44fff96b0bc and 18b6bfdb67e (https://github.com/ruby/ruby/pull/18842). Ruby 4.0.7 still crashes. -- 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/