[MacRuby] #1191: Assertion failed with define_method.
#1191: Assertion failed with define_method. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Assertion failed with MacRuby Latest when use define_method. However, MacRuby r5271 works well in my environment. Test Script: {{{ #!ruby class Foo # crashes with following cases. define_method(:crash_case1) {|a, b = nil|} #define_method(:crash_case2) {|a, *b, &c|} #define_method(:crash_case3) {|a, *b, c|} #define_method(:crash_case4) {|a, *b, c, &d|} #define_method(:crash_case5) {|a, b = nil, *c, d, &e|} end }}} Crash log: {{{ Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"), function init, file Instructions.cpp, line 196. Program received signal SIGABRT, Aborted. 0x00007fff843fdcae in __pthread_kill () (gdb) bt #0 0x00007fff843fdcae in __pthread_kill () #1 0x00007fff843fd5d2 in pthread_kill () #2 0x0000000100010762 in LLVMLinkInJIT () #3 0x00000001009a92a5 in rb_str_NSCoder_decode () #4 0x000000010013a604 in rb_vm_get_opaque_data () #5 0x000000010011b496 in rb_vm_get_opaque_data () #6 0x000000010011d182 in rb_vm_get_opaque_data () #7 0x000000010015a721 in rb_vm_define_method3 () #8 0x0000000100048c60 in rb_block_proc_imp () #9 0x000000010014a721 in rb_vm_dispatch () #10 0x0000000103200544 in ?? () #11 0x000000010320018b in ?? () #12 0x0000000103200075 in ?? () #13 0x00000001001606e3 in rb_vm_run () #14 0x000000010003d460 in ruby_run_node () #15 0x0000000100000d28 in main () }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1191> MacRuby <http://macruby.org/>
#1191: Assertion failed with define_method. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I'm using llvm-2.9 (followed the README.rdoc steps). -- Ticket URL: <http://www.macruby.org/trac/ticket/1191#comment:1> MacRuby <http://macruby.org/>
#1191: Assertion failed with define_method. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.10 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.10 Comment: Thanks, should be fixed in r5277. (I wish rubyspec included that use case.) -- Ticket URL: <http://www.macruby.org/trac/ticket/1191#comment:2> MacRuby <http://macruby.org/>
#1191: Assertion failed with define_method. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.10 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Comment(by watson1978@…): Latest RubySpec crashed with same assertion failed. I guess it is including above test cases :) -- Ticket URL: <http://www.macruby.org/trac/ticket/1191#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby