Project

General

Profile

Actions

Bug #22380

closed

Ruby::Box: a GC while copying a class into a box crashes

Bug #22380: Ruby::Box: a GC while copying a class into a box crashes

Added by hsbt (Hiroshi SHIBATA) 1 day ago. Updated 1 day ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 4.0.7 (2026-09-22 revision 9aea6bb2f1) +YJIT +MN +PRISM [arm64-darwin27]
[ruby-core:126848]

Description

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.


Related issues 1 (1 open — 0 closed)

Related to Ruby - Misc #22275: Ruby::Box support plan for RubyGems and BundlerOpenActions
Actions

Also available in: PDF Atom