Skip to content

Instantly share code, notes, and snippets.

@ileitch
Created October 2, 2009 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ileitch/199425 to your computer and use it in GitHub Desktop.
Save ileitch/199425 to your computer and use it in GitHub Desktop.
irb(main):001:0> def me(foo)
irb(main):002:1> if foo
irb(main):003:2> $1
irb(main):004:2> else
irb(main):005:2* nil
irb(main):006:2> end
irb(main):007:1> end
=> #<Rubinius::CompiledMethod me file=(irb)>
irb(main):008:0> exit
An exception occurred running IRB
A thrown value from Kernel#throw (Rubinius::ThrownValue)
Backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001001037a4 in rubinius::ObjectHeader::type_id (this=0x0) at oop.hpp:352
352 return obj_type_;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment