yarv-dev-en:34
From: SASADA Koichi <ko1 atdot.net>
Date: Wed, 15 Feb 2006 21:56:19 +0900
Subject: [yarv-dev-en:34] Re: [Christian Neukirchen] Various YARV bugs
ML: yarv-dev-en quickml.atdot.net 新メンバー: chneukirchen@g... Hi, Christian Neukirchen wrote: > I failed to mail this to yarv-dev-en, and have not been able to > subscribe there, so I forward this bug report to you directly. Do you add "Cc" (carbon copy) to me? I add you with this mail. > Another bug just found: > > #583<3|>lilith:~/src/yarv$ ./ruby -e 'a = ->(foo){ p foo }' > BUG: unknown node (default): NODE_LAMBDA > :0:in `initialize': compile error (SyntaxError) Matz decided that "->" is obsolete. > first off, thanks for the merge. I'm going over all my released code > and try to make it work with YARV. Mostly it's very easy, however, I > also found some bugs: Thanks a lot. > ruby 1.9.0 (2006-02-14) [powerpc-darwin7.9.0] > YARVCore 0.3.3 (rev: 419) [opts: ] > > * Running YARV on a not-existant file makes it spin in a very deep > loop, doing this in gdb shows what happens: > > (gdb) r foo > Starting program: /Users/chris/src/yarv/ruby foo > Reading symbols for shared libraries ... done > > Program received signal EXC_BAD_ACCESS, Could not access memory. > frame_func_id (cfp=0x485000) at eval.c:1869 > 1869 yarv_iseq_t *iseq = cfp->iseq; > (gdb) bt > #0 frame_func_id (cfp=0x485000) at eval.c:1869 > #1 0x00002e18 in error_pos () at eval_error.h:42 > #2 0x0000309c in error_print () at eval_error.h:108 > #3 0x00003624 in error_handle (ex=823640) at eval_error.h:250 > #4 0x00005a54 in ruby_options (argc=2, argv=0xbffffc38) at eval.c:175 > #5 0x00002c58 in main (argc=2, argv=0xbffffc38, envp=0x20000000) at main.c:45 I can't recreate your bug. > # ./ruby foo.rb > ./ruby: No such file or directory -- foo.rb (LoadError) at my environment (on x86 linux) > > * Doing "make install" will try to run the non-existant rdoc and show > the bug above. I don't support "make install". Please use "make install-nodoc" > * "make test" turns out some errors here, is that intented? These are knwon bugs :) > * Lambdas are passed as YARV::VM::Proc, which breaks code that tries > to check for kind_of?(Proc) (maybe a bad idea wrt ducktyping, > anyway). Ah, .... OK. I'll fix it (remove obsolete "Proc" and rename YARV::VM::Proc to "Proc") > Another thing, but this probably is intented for 1.9, is that [*foo] > doesn't work for arrayification anymore. What's the best way to do it > in 1.9? a = [1, 2] p [*a] #=> [1, 2] a = 1 p [*a] #=> can't convert Fixnum into Array (TypeError) You means second error? It's new specification on Ruby 1.9. ... I have no idea about arrayification (it's first time I see this word) with 1.9. -- // SASADA Koichi at atdot dot net -- ML: yarv-dev-en quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml このMLを退会する方法: - 本文が空のメールを <yarv-dev-en quickml.atdot.net> に送ってください - 本文が空のメールを送れない場合は、 本文に「退会」とだけ書いたメールを <yarv-dev-en quickml.atdot.net> に送ってください (署名やhotmailの広告などがついて空メールを送れない場合など) <yarv-dev-en quickml.atdot.net> のメンバー: ko1@a... nohmad@g... surrender_it@y... tom@i... wilsonb@g... mfp@a... curt.hibbs@g... tsuraan@t... kero@c... why@w... joaopedrosa@g... grahamamacdonald@g... adam.shelly@g... gclryd-yarv-dev-en@m... brixen@g... jeffrey.dik@m... rubyzbibd@u... heidegger101@g... klaus_momberger@y... kashia@v... chneukirchen@g...
-> 34 2006-02-15 21:56 [ko1 atdot.net ] Re: [Christian Neukirchen] Various YARV bugs 36 2006-02-16 02:46 ┗[chneukirchen gmail.c]