Skip to content

Instantly share code, notes, and snippets.

@borski
Created March 1, 2015 02:48
Show Gist options
  • Save borski/ff7d4204c57aba1a1c60 to your computer and use it in GitHub Desktop.
Save borski/ff7d4204c57aba1a1c60 to your computer and use it in GitHub Desktop.
rbx-2.5.2 :002 > cf = Rubinius::ToolSets::Runtime::CompiledFile.load(File.open('./trie_harder.rbc'))
=> #<CodeTools::CompiledFile:0x47d0 @version=25 @signature=846485516860436671 @magic="!RBIX" @stream=#<File:0x47d4 path=./trie_harder.rbc> @data=nil>
rbx-2.5.2 :003 > cf.body
TypeError: Tried to use non-reference value 0x1 as type Tuple (77)
from /Users/angelirizarry/.rvm/rubies/rbx-2.5.2/runtime/gems/rubinius-compiler-2.3.1/lib/rubinius/compiler/compiled_file.rbc:191:in `unmarshal_data'
from /Users/angelirizarry/.rvm/rubies/rbx-2.5.2/runtime/gems/rubinius-compiler-2.3.1/lib/rubinius/compiler/compiled_file.rbc:92:in `unmarshal'
from /Users/angelirizarry/.rvm/rubies/rbx-2.5.2/runtime/gems/rubinius-compiler-2.3.1/lib/rubinius/compiler/compiled_file.rbc:69:in `body'
from (irb):3
from kernel/common/block_environment.rb:53:in `call_on_instance'
from kernel/common/eval.rb:176:in `eval'
from kernel/common/kernel.rb:510:in `loop'
from kernel/bootstrap/proc.rb:20:in `call'
from kernel/common/throw_catch.rb:30:in `catch'
from kernel/common/throw_catch.rb:8:in `register'
from kernel/common/throw_catch.rb:29:in `catch'
from kernel/bootstrap/proc.rb:20:in `call'
from kernel/common/throw_catch.rb:30:in `catch'
from kernel/common/throw_catch.rb:8:in `register'
from kernel/common/throw_catch.rb:29:in `catch'
from /Users/angelirizarry/.rvm/gems/rbx-2.5.2@global/gems/rubysl-irb-2.1.1/bin/irb:12:in `__script__'
from kernel/common/kernel.rb:497:in `load'
from /Users/angelirizarry/.rvm/rubies/rbx-2.5.2/gems/bin/irb:23:in `__script__'
from kernel/common/kernel.rb:497:in `load'
from kernel/loader.rb:695:in `repl'
rbx-2.5.2 :004 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment