From: Kelvin Liu <redmine@...> Date: 2010-09-23T02:52:52+09:00 Subject: [ruby-core:32501] [Ruby 1.9-Bug#3860][Open] VM aborts when calling instance_eval on a Method converted to a proc --mimepart_4c9a426fe3099_ef3cf00b3e118d7 Content-Type: text/plain Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Bug #3860: VM aborts when calling instance_eval on a Method converted to = a proc http://redmine.ruby-lang.org/issues/show/3860 Author: Kelvin Liu Status: Open, Priority: Low Category: core, Target version: 1.9.2 ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin9.8.0] When I run the attached script with 1.9.2: > ruby-1.9.2-p0 inst_eval_1.9.2.rb ["foo.get", 1] ["foo_pr[]", 1] inst_eval_1.9.2.rb:19: [BUG] vm_get_cref: unreachable ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin9.8.0] -- control frame ---------- c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :instance_eval c:0003 p:0126 s:0008 b:0008 l:0026c4 d:000b5c EVAL inst_eval_1.9.2.rb:1= 9 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:0026c4 d:0026c4 TOP = --------------------------- -- Ruby level backtrace information -------------------------------------= --- inst_eval_1.9.2.rb:19:in `<main>' inst_eval_1.9.2.rb:19:in `instance_eval' -- C level backtrace information ----------------------------------------= --- 0 libruby.1.9.1.dylib 0x0041ab24 rb_vm_bugreport + 196 1 libruby.1.9.1.dylib 0x002c41bc rb_compile_warn + 508 2 libruby.1.9.1.dylib 0x002c426b rb_bug + 43 3 libruby.1.9.1.dylib 0x003fce43 rb_vm_cref + 547 4 libruby.1.9.1.dylib 0x0041919a rb_yield + 1290 5 libruby.1.9.1.dylib 0x0041976d rb_mod_module_exec + 1= 09 6 libruby.1.9.1.dylib 0x003f9415 rb_iseq_build_for_ruby= 2cext + 7141 7 libruby.1.9.1.dylib 0x00416075 rb_raise_method_missin= g + 1669 8 libruby.1.9.1.dylib 0x00401cfe rb_method_basic_defini= tion_p + 16254 9 libruby.1.9.1.dylib 0x004092ed rb_method_basic_defini= tion_p + 46445 10 libruby.1.9.1.dylib 0x0040988c rb_iseq_eval_main + 33= 2 11 libruby.1.9.1.dylib 0x002c61c9 rb_mark_end_proc + 345= 12 libruby.1.9.1.dylib 0x002c8d36 ruby_run_node + 102 13 ruby 0x00001fef main + 95 14 ruby 0x00001f56 start + 54 [NOTE] You may have encountered a bug in the Ruby interpreter or extension libra= ries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Abort This does not happen with 1.8.7 or 1.9.1. ---------------------------------------- http://redmine.ruby-lang.org --mimepart_4c9a426fe3099_ef3cf00b3e118d7 Content-Type: application/x-shoes; name=inst_eval_1.9.2.rb Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename=inst_eval_1.9.2.rb IyBydWJ5LTEuOS4yLXAwCmNsYXNzIEZvbwogIGRlZiBpbml0aWFsaXplKGEp OwogICAgQGE9YQogIGVuZAogICMgYWNjZXB0IGFueSBudW1iZXIgb2YgYXJn cwogIGRlZiBnZXQoKmFyZ3MpCiAgICBAYQogIGVuZAplbmQKCmZvbyA9IEZv by5uZXcgMQpwIFsnZm9vLmdldCcsIGZvby5nZXRdCmZvb19wciA9IGZvby5t ZXRob2QoOmdldCkudG9fcHJvYwpwIFsnZm9vX3ByW10nLCBmb29fcHJbXV0K IyBubyBlcnJvcgpbMF0uZWFjaCAmZm9vX3ByCiMgYWJvcnRzIG9uIHJ1Ynkt MS45LjIgYnV0IG5vdCAxLjguNyBvciAxLjkuMQpmb28uaW5zdGFuY2VfZXZh bCAmZm9vX3ByCg== --mimepart_4c9a426fe3099_ef3cf00b3e118d7--