[#40917] テスト対象を 2 つ指定すると落ちる — "KISHIMOTO, Makoto" <ksmakoto@...4u.or.jp>
きしもとです
[#40951] [Bug #3123] uninitialized constant Object::C (NameError) — Kazuhiro NISHIYAMA <redmine@...>
Bug #3123: uninitialized constant Object::C (NameError)
[#40959] [Bug #3136] reuse of singleton method definition causes SEGV — Yusuke Endoh <redmine@...>
Bug #3136: reuse of singleton method definition causes SEGV
[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>
Bug #3137: complex.rb changes exceptions of Math
けいじゅ@いしつかです.
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
遠藤です。
[#40973] [BUG: trunk]arm-linux向けクロスコンパイル時のエラー — Satoshi Shiba <shiba@...>
芝と申します.
[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>
こんにちは!アーロンです。
こんにちは、なかむら(う)です。
成瀬です。
2010/4/21 NARUSE, Yui <naruse@airemix.jp>:
2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:
2010/4/26 Yugui <yugui@yugui.jp>:
Sorry for replying so late.
こんにちは、なかむら(う)です。
2010/5/5 U.Nakamura <usa@garbagecollect.jp>:
[#41054] [Bug #3198] O_APPEND for redirect fd is ignored on windows — _ wanabe <redmine@...>
Bug #3198: O_APPEND for redirect fd is ignored on windows
[#41061] why did #rationalize removed? — Yusuke ENDOH <mame@...>
ふなばさん
[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>
Feature #3203: LazySweepGC patch
遠藤です。
成瀬です。
nariです。
nariです。
2010年5月28日5:15 Narihiro Nakamura <authornari@gmail.com>:
2010年5月29日18:28 Tanaka Akira <akr@fsij.org>:
[#41092] Re: [ruby-core:29863] [Bug #3216] #join in thwait.rb only waits for first thread — keiju@... (keiju ISHITSUKA)
けいじゅ@いしつかです.
なかだです。
[#41100] Re: [ruby-cvs:34762] Ruby:r27549 (trunk): * test/test_open3.rb (test_commandline): use dump instead of — Tanaka Akira <akr@...>
2010/4/29 <nobu@ruby-lang.org>:
[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
xibbarこと藤岡です。
Yukihiro Matsumoto =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=
まつもと ゆきひろです
小川と言います。
MjAxMC80LzMwIFl1a2loaXJvIE1hdHN1bW90byA8bWF0ekBydWJ5LWxhbmcub3JnPjoKPiAbJEIw
[ruby-dev:41021] [Bug #2777] Invalid read of size 4 by redefining load
チケット #2777 が更新されました。 (by Yusuke Endoh)
担当者 Koichi Sasadaにセット
優先度 LowからNormalに変更
Target version 1.9.2にセット
ruby -v -にセット
遠藤です。
> % cat tst.rb
> module Kernel
> def load(*args)
> end
> end
> raise
> % valgrind ./ruby -ve 'load "tst.rb"'
*snip*
というオリジナルの問題は r27393 で巧妙に回避されましたが、本質的には
解決しておらず、以下で SEGV します。
class C
define_method(:foo) do
C.class_eval { remove_method(:foo) }
super()
end
end
C.new.foo
あと、r27393 だと rb_method_definition_t の参照を減らしていないので
メモリリークするような気がします。
diff --git a/vm_method.c b/vm_method.c
index 04b62f2..c9d99db 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -215,6 +215,14 @@ rb_add_method_def(VALUE klass, ID mid, rb_method_type_t type, rb_method_definiti
* another problem when the usage is changed.
*/
me = old_me;
+
+ if (me->def) {
+ if (me->def->alias_count == 0)
+ xfree(me->def);
+ else if (me->def->alias_count > 0)
+ me->def->alias_count--;
+ me->def = 0;
+ }
}
else {
me = ALLOC(rb_method_entry_t);
--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2777
----------------------------------------
http://redmine.ruby-lang.org