[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <naruse@airemix.jp>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto さんは書きました:

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:40927] [Bug #3108] locationが初期化前に参照されて落ちます。

From: masaya tarui <redmine@...>
Date: 2010-04-07 10:34:04 UTC
List: ruby-dev #40927
Bug #3108: locationが初期化前に参照されて落ちます。
http://redmine.ruby-lang.org/issues/show/3108

起票者: masaya tarui
ステータス: Open, 優先度: Normal
担当者: _ wanabe, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-04-07 trunk 27249) [i386-mswin32_90]

method情報のlocationが初期化されないまま参照されて落ちる事があります。

C:/usr/lib/ruby/1.9.1/optparse.rb:513: [BUG] rb_gc_mark(): unknown data type 0x1
0(00F1382C) non object
ruby 1.9.2dev (2010-04-07 trunk 27244) [i386-mswin32_90]

-- control frame ----------
c:0010 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC  :attr_reader
c:0009 p:0013 s:0029 b:0029 l:000028 d:000028 CLASS  C:/usr/lib/ruby/1.9.1/optpa
rse.rb:513
c:0008 p:0312 s:0027 b:0027 l:000026 d:000026 CLASS  C:/usr/lib/ruby/1.9.1/optpa
rse.rb:511
c:0007 p:0009 s:0016 b:0016 l:000015 d:000015 TOP    C:/usr/lib/ruby/1.9.1/optpa
rse.rb:204
c:0006 p:---- s:0014 b:0014 l:000013 d:000013 FINISH
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC  :require
c:0004 p:0023 s:0008 b:0008 l:000007 d:000007 TOP    C:/usr/lib/ruby/1.9.1/un.rb
:28
c:0003 p:---- s:0006 b:0006 l:000005 d:000005 FINISH
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 CFUNC  :require
c:0001 p:0000 s:0002 b:0002 l:000dc4 d:000dc4 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
C:\usr\bin\ruby:0:in `require'
C:/usr/lib/ruby/1.9.1/un.rb:28:in `<top (required)>'
C:/usr/lib/ruby/1.9.1/un.rb:28:in `require'
C:/usr/lib/ruby/1.9.1/optparse.rb:204:in `<top (required)>'
C:/usr/lib/ruby/1.9.1/optparse.rb:511:in `<class:OptionParser>'
C:/usr/lib/ruby/1.9.1/optparse.rb:513:in `<class:List>'
C:/usr/lib/ruby/1.9.1/optparse.rb:513:in `attr_reader'

原因はvm_method.c:286でlocationに値を入れる前にrb_ary_new3経由でGCが呼ばれる事があるためです。

Patchは多分こんなものでしょうか。
>svn diff
Index: vm_method.c
===================================================================
--- vm_method.c (リビジョン 27249)
+++ vm_method.c (作業コピー)
@@ -280,6 +280,7 @@
       case VM_METHOD_TYPE_ATTRSET:
       case VM_METHOD_TYPE_IVAR:
        def->body.attr.id = (ID)opts;
+       def->body.attr.location = Qfalse;
        th = GET_THREAD();
        cfp = rb_vm_get_ruby_level_next_cfp(th, th->cfp);
        if (cfp && (line = rb_vm_get_sourceline(cfp))) {


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next