Project

General

Profile

Actions

Bug #22090

open

Enabling Ruby::Box breaks Marshal.load

Bug #22090: Enabling Ruby::Box breaks Marshal.load

Added by joker1007 (Tomohiro Hashidate) 12 days ago. Updated 6 days ago.

Status:
Assigned
Target version:
-
ruby -v:
ruby 4.1.0dev (2026-05-31T10:35:05Z master 12c8599ffa) +PRISM [x86_64-linux]
[ruby-core:125609]

Description

This is very simple.

class Foo
end

f = Marshal.dump(Foo.new)
Marshal.load(f)

No Ruby::Box

This code returns #<Foo:0x00007fdb9c744da0>.


Ruby::Box enabled

This code returns "undefined class/module Foo".

marshal_main.rb:5:in 'Marshal.load': undefined class/module Foo (ArgumentError)

p Marshal.load(f)
               ^
        from marshal_main.rb:5:in '<main>'

Updated by joker1007 (Tomohiro Hashidate) 12 days ago Actions #1

  • Subject changed from Enabling Ruby::Box breaks Marshal.load. to Enabling Ruby::Box breaks Marshal.load

Updated by mame (Yusuke Endoh) 6 days ago Actions #2

  • Status changed from Open to Assigned
  • Assignee set to tagomoris (Satoshi Tagomori)
Actions

Also available in: PDF Atom