Last active
August 29, 2015 14:16
-
-
Save sshao/ad9d5f6105cb58fe72fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| An exception occurred running /Users/Sophia/devel/rbx-1.8.7/test.rb: | |
| dump format error (unlinked) (ArgumentError) | |
| Backtrace: | |
| Marshal::State(Marshal::StringState)#construct at kernel/common/marshal.rb:530 | |
| { } in Marshal::State(Marshal::StringState)#construct_hash at kernel/common | |
| /marshal.rb:675 | |
| Integer(Fixnum)#times at kernel/common/integer.rb:196 | |
| Marshal::State(Marshal::StringState)#construct_hash at kernel/common/marshal.rb:673 | |
| Marshal::State(Marshal::StringState)#construct at kernel/common/marshal.rb:513 | |
| Marshal.load at kernel/common/marshal.rb:1207 | |
| Object#__script__ at /Users/Sophia/devel/rbx-1.8.7/test.rb:15 | |
| Rubinius::CodeLoader#load_script at kernel/delta/code_loader.rb:66 | |
| Rubinius::CodeLoader.load_script at kernel/delta/code_loader.rb:152 | |
| Rubinius::Loader#script at kernel/loader.rb:656 | |
| Rubinius::Loader#main at kernel/loader.rb:810 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User | |
| def _dump(level) | |
| "" | |
| end | |
| def self._load(*args) | |
| nil | |
| end | |
| end | |
| obj = User.new | |
| hash = {:a => obj, :b => obj} | |
| hash_dump = Marshal.dump(hash) | |
| Marshal.load(hash_dump) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment