[#35789] [Ruby 1.9 - Bug #407] (Open) String#<< — Shyouhei Urabe <redmine@...>

チケット #407 が報告されました。 (by Shyouhei Urabe)

13 messages 2008/08/06

[#35845] [Bug #437] test_strftime(TestTime) fails on Solaris — Shugo Maeda <redmine@...>

Bug #437: test_strftime(TestTime) fails on Solaris

24 messages 2008/08/13
[#35855] Re: [Bug #437] test_strftime(TestTime) fails on Solaris — "Shugo Maeda" <shugo@...> 2008/08/15

前田です。

[#35856] Re: [Bug #437] test_strftime(TestTime) fails on Solaris — SATOH Fumiyasu <fumiyas@...> 2008/08/15

さとうふみやす @ OSS テクノロジです。

[#35857] Re: [Bug #437] test_strftime(TestTime) fails on Solaris — Yukihiro Matsumoto <matz@...> 2008/08/15

まつもと ゆきひろです

[#35870] Re: [Bug #437] test_strftime(TestTime) fails on Solaris — "Shugo Maeda" <shugo@...> 2008/08/18

前田です。

[#35863] Refactoring of enumerating prime numbers — "Yugui (Yuki Sonoda)" <yugui@...>

Yuguiです。

20 messages 2008/08/16
[#35865] Re: Refactoring of enumerating prime numbers — keiju@... (keiju ISHITSUKA) 2008/08/17

けいじゅ@いしつかです.

[#35867] Re: Refactoring of enumerating prime numbers — "Yugui (Yuki Sonoda)" <yugui@...> 2008/08/17

Yuguiです。

[#35875] Re: Refactoring of enumerating prime numbers — keiju@... (keiju ISHITSUKA) 2008/08/19

けいじゅ@いしつかです.

[#35877] Re: Refactoring of enumerating prime numbers — Nobuyoshi Nakada <nobu@...> 2008/08/19

なかだです。

[#35882] Re: Refactoring of enumerating prime numbers — keiju@... (石塚圭樹) 2008/08/20

けいじゅ@いしつかです.

[#35904] [Feature:1.9] pack format 'm' based on RFC 4648 — "Yusuke ENDOH" <mame@...>

遠藤です。

14 messages 2008/08/21

[#35906] %N for Time#strftime — "Shugo Maeda" <shugo@...>

前田です。

13 messages 2008/08/21

[#35986] 1.9と1.8で、delegateのインスタンスのクラス名の違う — Fujioka <fuj@...>

xibbarこと藤岡です。

17 messages 2008/08/26
[#35987] Re: 1.9と1.8で、delegateのインスタンスのクラス名の違う — Yukihiro Matsumoto <matz@...> 2008/08/26

まつもと ゆきひろです

[#35991] Re: 1.9と1.8で、delegateのインスタンスのクラス名の違う — keiju@... (石塚圭樹) 2008/08/26

けいじゅ@いしつかです.

[#35994] Re: 1.9と1.8で、delegateのインスタンスのクラス名の違う — Fujioka <fuj@...> 2008/08/27

藤岡です。

[#35998] Re: 1.9と1.8で、delegateのインスタンスのクラス名の違う — keiju@... (石塚圭樹) 2008/08/27

けいじゅ@いしつかです.

[#36066] Numeric#scalar? — Tadayoshi Funaba <tadf@...>

1.9 の Numeric#scalar? について、適当でないのでは (real? などのほうがい

24 messages 2008/08/31
[#36069] Re: Numeric#scalar? — Shin-ichiro HARA <sinara@...> 2008/08/31

原です。

[#36104] Re: Numeric#scalar? — Tadayoshi Funaba <tadf@...> 2008/09/02

> やはり、scalar? はずれているんじゃないかな。real? の方がいい

[#36122] Re: Numeric#scalar? — Shin-ichiro HARA <sinara@...> 2008/09/03

原です。

[#36133] Re: Numeric#scalar? — Tadayoshi Funaba <tadf@...> 2008/09/03

> ここで、scalar? を疑問視する理由を復習すると、たとえば、「複

[#36173] Re: Numeric#scalar? — Tadayoshi Funaba <tadf@...> 2008/09/05

1.9.1 までに時間がないので scalar? だけ何とかしたいと思っていましたが、

[#36183] Re: Numeric#scalar? — "Shugo Maeda" <shugo@...> 2008/09/06

前田です。

[#36186] Re: Numeric#scalar? — Shin-ichiro HARA <sinara@...> 2008/09/06

原です。

[ruby-dev:36029] Re: [Bug #513] Tempfile yields [BUG] Stack consistency error

From: "Yusuke ENDOH" <mame@...>
Date: 2008-08-28 11:52:05 UTC
List: ruby-dev #36029
遠藤です。

2008/08/28 11:18 Shyouhei Urabe <[email protected]>:
> zsh % gdb --args ~/target/trunk/bin/ruby -rtempfile -ve
>  Tempfile.open("") do |f|
>   f.write "\n";
>   f.rewind;
>   g = Tempfile.new "";
>   f.each {break};
>   g.rewind;
>  end
>  '
(snip)
>  -e:1: [BUG] Stack consistency error (sp: 16, bp: 15)
(snip)


簡単にできました。

$ ./ruby -e '
class Foo
  define_method(:foo) do |&b|
    b.call
  end
end

Foo.new.foo do
  break
end
'
-e:8: [BUG] Stack consistency error (sp: 7, bp: 6)
ruby 1.9.0 (2008-08-28 revision 18895) [i686-linux]

-- control frame ----------
c:0003 p:0032 s:0007 b:0006 l:001084 d:001084 TOP    -e:8
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :private_class_method
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP    <dummy toplevel>:17
---------------------------
DBG> : "-e:8:in `<main>'"
-- backtrace of native function call (Use addr2line) --
0x8112df4
0x813e18e
0x813e1d8
0x810bc5f
0x810c3a4
0x810c58c
0x805aa3f
0x805bd46
0x8058e70
0xb7e21ea8
0x8058d51
-------------------------------------------------------
Aborted


BMETHOD 中で throw する可能性があるので、BMETHOD を呼び出す前に
スタックを縮めるべきかと思います。

Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 18895)
+++ vm_insnhelper.c	(working copy)
@@ -519,8 +519,8 @@
 	      }
 	      case NODE_BMETHOD:{
 		VALUE *argv = cfp->sp - num;
+		cfp->sp += - num - 1;
 		val = vm_call_bmethod(th, id, node->nd_cval, recv, klass, num,
argv, blockptr);
-		cfp->sp += - num - 1;
 		break;
 	      }
 	      case NODE_ZSUPER:{

-- 
Yusuke ENDOH <[email protected]>

In This Thread