[MacRuby] #1191: Assertion failed with define_method.
MacRuby
ruby-noreply at macosforge.org
Sat Mar 12 15:42:14 PST 2011
#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/>
More information about the macruby-tickets
mailing list