[#37008] [Bug #705] sample/test.rb:1829: [BUG] Segmentation fault — pegacorn jp <redmine@...>
Bug #705: sample/test.rb:1829: [BUG] Segmentation fault
[#37009] add RUNRUBYOPT in mswin32 Makefile.sub — Masaki Suketa <masaki.suketa@...>
助田です。
[#37026] :FOO === "FOO" => true and case/when behavior — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37027] Re: [Feature #711] M17N of irb — keiju@... (keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37028] [Backport #716] Hash#key — "rubikitch ." <redmine@...>
Backport #716: Hash#key
チケット #716 が更新されました。 (by Akinori MUSHA)
[#37050] [Feature #735] Date#inspect — "rubikitch ." <redmine@...>
Feature #735: Date#inspect
> 「inspectは人間に優しい文字列化」という観点から、Date#inspectの出力はふさわしくないと思います。
[#37075] [Feature #747] /\A/u ignores BOM — Shyouhei Urabe <redmine@...>
Feature #747: /\A/u ignores BOM
卜部です。
[#37095] ruby1.9 segmentation fault — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
[#37117] test/webrick/test_server.rb doesn't finish — shinichiro.h <shinichiro.hamaji@...>
浜地といいます。
[#37126] Re: [ruby-cvs:27470] Ruby:r20251 (trunk): * lib/time.rb: according to RFC2822, -0000 means local time, +0000 — Tanaka Akira <akr@...>
In article <200811181512.mAIFC3YP006108@ci.ruby-lang.org>,
[#37142] eval with binding — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
[#37146] Re: [ruby-cvs:27544] Ruby:r20326 (ruby_1_9_1): merges r20298 from trunk into ruby_1_9_1. — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
[#37156] [Bug #780] Time#strftime で、フラグ 0 が幅と解釈される — tadayoshi funaba <redmine@...>
Bug #780: Time#strftime で、フラグ 0 が幅と解釈される
[#37158] [Bug #782] 余分な外部シンボル — Tadashi Saito <redmine@...>
Bug #782: 余分な外部シンボル
[#37161] m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...>
Yuguiです。
けいじゅ@いしつかです.
keiju ISHITSUKA さんは書きました:
まつもと ゆきひろです
Yuguiです。
まつもと ゆきひろです
Yukihiro Matsumoto さんは書きました:
Yuguiです。
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
けいじゅ@いしつかです.
まつもと ゆきひろです
[#37168] [Bug #786] Time#strftime で %s が負である場合に桁を間違える — tadayoshi funaba <redmine@...>
Bug #786: Time#strftime で %s が負である場合に桁を間違える
まつもと ゆきひろです
[#37187] [Bug #793] BigDecimal('Infinity').to_r が零になる — tadayoshi funaba <redmine@...>
Bug #793: BigDecimal('Infinity').to_r が零になる
まつもと ゆきひろです
[#37190] [Bug #795] test_gdbm.rb: tmptest_gdbm_,tmptest_gdbm_rdonlyが残っているとErrorになる — Kazuhiro NISHIYAMA <redmine@...>
Bug #795: test_gdbm.rb: tmptest_gdbm_,tmptest_gdbm_rdonlyが残っているとErrorになる
まつもと ゆきひろです
[#37210] RSS::Maker.create(version) — "Akinori MUSHA" <knu@...>
RSS::Maker で、 "2.0" 等の文字列でフィードのフォーマットを渡す
須藤です。
At Thu, 27 Nov 2008 19:11:01 +0900,
須藤です。
At Sat, 29 Nov 2008 17:18:20 +0900,
須藤です。
At Mon, 1 Dec 2008 21:48:34 +0900,
須藤です。
At Mon, 8 Dec 2008 20:28:44 +0900,
[#37213] Re: [ruby-cvs:27586] Ruby:r20368 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return — Tadayoshi Funaba <tadf@...>
> * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return
まつもと ゆきひろです
まつもと ゆきひろです
斎藤と申します。
まつもと ゆきひろです
斎藤です。
[ruby-dev:37147] Re: super dynamic class definition causes infinite loop
須藤です。
In <20081109.133949.475793127247145680.kou@cozmixng.org>
"[ruby-dev:37045] super dynamic class definition causes infinite loop" on Sun, 9 Nov 2008 13:37:39 +0900,
Kouhei Sutou <kou@cozmixng.org> wrote:
> 以下のスクリプトの2回目のdefined_class.newで無限ループになっ
> てしまいます。
>
> ---
> def define_class(parent=nil)
> Class.new(parent || Object) do
> def initialize
> super
> end
> end
> end
>
> defined_class = define_class
> p defined_class.new
>
> define_class(defined_class)
> p defined_class.new
> ---
>
> % /tmp/local/bin/ruby -v /tmp/a.rb
> ruby 1.9.0 (2008-11-09 revision 20163) [x86_64-linux]
> #<#<Class:0x00000000ef6c30>:0x00000000ef6640>
> /tmp/a.rb:4:in `initialize': stack level too deep (SystemStackError)
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> ... 8716 levels...
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:4:in `initialize'
> from /tmp/a.rb:13:in `new'
> from /tmp/a.rb:13:in `<main>'
テストにしてみました。
Index: test/ruby/test_class.rb
===================================================================
--- test/ruby/test_class.rb (revision 20332)
+++ test/ruby/test_class.rb (working copy)
@@ -144,4 +144,20 @@
assert_raise(TypeError) { Class.allocate.new }
assert_raise(TypeError) { Class.allocate.superclass }
end
+
+ def test_dynamic_defined_initialize
+ define_class = Proc.new do |parent|
+ Class.new(parent) do
+ def initialize
+ super
+ end
+ end
+ end
+
+ defined_class = define_class.call(Object)
+ assert_nothing_raised {defined_class.new}
+
+ define_class.call(defined_class)
+ assert_nothing_raised {defined_class.new}
+ end
end
このように失敗します。
% ./ruby test/runner.rb -ntest_dynamic_defined_initialize test/ruby/test_class.rb
Loaded suite test/runner
Started
F
Finished in 0.046818 seconds.
1) Failure:
test_dynamic_defined_initialize(TestClass) [/home/kou/work/ruby/ruby/test/ruby/test_class.rb:152]:
Exception raised:
<#<SystemStackError: stack level too deep>>.
1 tests, 0 assertions, 1 failures, 0 errors, 0 skips