[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev:865

From: sheepman <sheepman sheepman.sakura.ne.jp>
Date: Tue, 14 Feb 2006 00:27:47 +0900
Subject: [yarv-dev:865] open> redo with exception handling causes stack consistency errors

こんばんは、sheepman です。

On Sun, 12 Feb 2006 15:08:09 +0900
SASADA Koichi <ko1 atdot.net> wrote:

> 
>  よく見つけましたねえ。対応しました。
> 

例によって、redo だとまだ stack consistency error が起こります。

$ cat t.rb
proc do
  begin
    raise StandardError
    redo
  rescue StandardError
  end
end.call

$ ./miniruby -v t.rb
ruby 1.9.0 (2006-02-09) [i686-linux]
YARVCore 0.3.3 (rev: 397) [opts: ]
t.rb:4: DBG> : "t.rb:1:in `call'"
DBG> : "t.rb:1:in `<main>'"
-- stack frame ------------
0x402b1008 (0000): 00000001
0x402b100c (0001): 00000004
0x402b1010 (0002): 4029767c
0x402b1014 (0003): 40297668
0x402b1018 (0004): 00000001
0x402b101c (0005): 00000001
-- control frame ----------
c:0006 p:0019 s:0006 b:0007 l:-873 d:0006 PROC   i:block in <main> s:         -
c:0005 p:-001 s:0006 b:0006 l:0005 d:0005 FINISH i:-        s:         -
c:0004 p:-001 s:0005 b:0005 l:0004 d:0004 CFUNC  i:call     s:         -
c:0003 p:0013 s:0003 b:0003 l:-873 d:-873 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] Stack consistency error (sp: 0x402b1020, bp: 0x402b1024)
ruby 1.9.0 (2006-02-09) [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

[前][次][番号順一覧][スレッド一覧][生データ]

       813 2006-02-05 22:15 [sheepman sheepman.sa] open> break with exception handling causes stack consistency errors
       843 2006-02-12 15:13 ┣[ko1 atdot.net       ]                                       
       849 2006-02-12 15:08 ┗[ko1 atdot.net       ] fixed> Re: open> break with exception handling causes stack consistency errors
       850 2006-02-13 12:02  ┣[ko1 atdot.net       ]                                     
->     865 2006-02-14 00:27  ┣[sheepman sheepman.sa] open> redo with exception handling causes stack consistency errors
       866 2006-02-14 02:15  ┃┗[ko1 atdot.net       ] fixed> Re: open> redo with exception handling causes stack consistency errors
       888 2006-02-14 19:11  ┃ ┗[sheepman sheepman.sa] close> redo with exception handling causes stack consistency errors
       887 2006-02-14 19:10  ┗[sheepman sheepman.sa] close> break with exception handling causes stack consistency errors