yarv-dev:831
From: sheepman <sheepman sheepman.sakura.ne.jp>
Date: Thu, 9 Feb 2006 21:18:21 +0900
Subject: [yarv-dev:831] open> the definition of constants dumps core
こんばんは、sheepman です。 [yarv-dev:758] に関連して、getconstant だけでなく、 setconstant の時にもチェックが必要ですね。 以下のようにすると core を吐きます。 $ cat t.rb 1::A = 1 $ ./miniruby -v t.rb ruby 1.9.0 (2005-11-18) [i686-linux] YARVCore 0.3.3 (rev: 372) [opts: ] t.rb:1: -- stack frame ------------ 0x402b1008 (0000): 00000001 0x402b100c (0001): 00000004 0x402b1010 (0002): 40297ab4 0x402b1014 (0003): 00000003 <- bp -- control frame ---------- c:0003 p:0007 s:0004 b:0003 l:-905 d:-905 TOP i:<main> s: - c:0002 p:-001 s:0001 b:0001 l:0000 d:0000 FINISH i:- s: - c:0001 p:-001 s:0000 b:-001 l:0000 d:0000 ------ i:- s: - --------------------------- [BUG] Segmentation fault ruby 1.9.0 (2005-11-18) [i686-linux] zsh: abort ./miniruby -v t.rb -- sheepman / TAMURA Takashi sheepman sheepman.sakura.ne.jp http://sheepman.parfait.ne.jp/ -- ML: yarv-dev quickml.atdot.net 使い方: http://www.atdot.net/~ko1/quickml
-> 831 2006-02-09 21:18 [sheepman sheepman.sa] open> the definition of constants dumps core 837 2006-02-11 20:22 ┗[ko1 atdot.net ] fixed> Re: open> the definition of constants dumps core 842 2006-02-12 15:01 ┗[sheepman sheepman.sa] close> the definition of constants dumps core