Project

General

Profile

Activity

From 08/31/2011 to 09/06/2011

09/06/2011

11:59 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
2011年9月6日19:14 Shota Fukumori (sora_h) <sorah@tubusu.net>:
> sora_h です。
>
> On Sep 6, 2011 7:12 PM, "Kazuhiko" <kazuhiko@fdiary.net> wrote:
>> r33201 で修正されましたが、これは1.9.3ブランチにバックポートされますか?
>
> されるべきだと思います。まだBackport93プロジェクトはないの...
kosaki (Motohiro KOSAKI)
07:23 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
sora_h $B$G$9!#(B

On Sep 6, 2011 7:12 PM, "Kazuhiko" <kazuhiko@fdiary.net> wrote:
> r33201 $B$G=$@5$5$l$^$7$?$,!"$3$l$O(B1.9.3$B%V%i%s%A$K%P%C%/%]!<%H$5$l$^$9$+!)(B

$B$5$l$k$Y$-$@$H;W$$$^$9!#$^$@(BBackport93$B%W%m%8...
sorah (Sorah Fukumori)
07:23 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
On 06/09/2011 06:10, Shota Fukumori (sora_h) wrote:
> じゃぁ,大丈夫かな.
>
> P.S.: このバグについてのテストケースは今書いています.
>
> 2011/9/6 NARUSE, Yui <naruse@airemix.jp>:
>> なので、安全だと考えています。
>> (もちろん C API たたいて横から割り込んだ時はこの限りではない)

r33201 で修正さ...
kazuhiko (Kazuhiko Shiozaki)
01:23 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
じゃぁ,大丈夫かな.

P.S.: このバグについてのテストケースは今書いています.

2011/9/6 NARUSE, Yui <naruse@airemix.jp>:
> なので、安全だと考えています。
> (もちろん C API たたいて横から割り込んだ時はこの限りではない)


--
Shota Fukumori a.k.a. @sora_h - http://sorah.jp/
sorah (Sorah Fukumori)
01:15 PM Bug #5279 (Closed): $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
This issue was solved with changeset r33201.
Shota, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* encoding.c (load_encoding): predefined encoding names are safe...
nobu (Nobuyoshi Nakada)
11:53 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
2011年9月6日11:02 Shota Fukumori <sorah@tubusu.net>:
> 懸念しているのはrequireのpathにスクリプトサイドから自分でパスを流す事ができるかできないかで,
> 自分の認識ではできないと思っているのですが,もし可能だとするとrb_require_safeの第二引数に0を
> 渡すのは危険なのでこの修正方法じゃダメだと思っています.

見れば分かる通りこの path は transcoder_ent...
naruse (Yui NARUSE)
11:02 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
中身的にはそういう事ですね. < transcoder の中で一時的に safe level を 0
#ruby-ja で議論したところ,autoloadはautoloadを定義した場所のSAFEで読み込むので,
$SAFE=0のときにあらかじめautoloadを仕掛けておいたというような解釈(仕組みな全然違いますが)
をすれば別に問題ないのではないか,という感じでした.
懸念しているのはrequireのpathにスクリプトサイドから自分でパスを流す事が...
sorah (Sorah Fukumori)
10:51 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
「rb_require_safe の第2引数に0を渡して良いかどうか」が問題なのではなく、
「transcoder の中で一時的に safe level を0に戻して良いかどうか」が問題なのではないでしょうか。
mrkn (Kenta Murata)
09:39 AM Bug #5279 (Closed): $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
sora_hです.
twitter
で @hsbt さんがこのような事を言っていたので調査してみました:
http://twitter.com/#!/hsbt/status/110700488667832320
調査したところ,どうやらString#encodeは内部的にrequireしていて,
セーフレベル3から全てのオブジェクトが汚染されるので,rb_require_safeに渡るStringが汚染されるため,
rb_requireでSecuri...
sorah (Sorah Fukumori)
11:53 PM Bug #5285 (Rejected): Ruby 1.9.2 throws exception on sort of array containing true AND false values
Sort uses <=>.
true <=> true and false <=> false work, but true <=> false.
Simply because of this.
naruse (Yui NARUSE)
11:17 PM Bug #5285 (Rejected): Ruby 1.9.2 throws exception on sort of array containing true AND false values
I encountered a very weird bug.
Sorting of arrays containing identical boolean values (ALL true or ALL false) works fine.
As soon as 1 value differs however #sort throws an exception.
ruby-1.9.2-p290 :001 > [true, true].sort
=...
mcorino (Martin Corino)
10:50 PM Revision 5a883a2c (git): * 2011-09-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:50 PM Revision 031c06b3 (git): eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:05 PM Bug #5283 (Closed): クラスオブジェクトの clone に関する質問
=begin
芝と申します。
クラスオブジェクトを clone したときの挙動について質問させてください。
+ サンプルコード
String.class_eval do
def self.singleton_method_added(mid)
puts("singleton_method_added: self = #{self}, mid = #{mid}")
end
end

puts("start clone"...
shiba (satoshi shiba)
09:37 PM Bug #5172 (Closed): [PATCH] bigdecimal: RB_GC_GUARD rb_inspect() output
This issue was solved with changeset r32997.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Merge commit r32996 from trunk:
* ext/bigdecimal/bigdecimal.c...
mrkn (Kenta Murata)
09:37 PM Bug #5135 (Closed): Ruby 1.9.3-preview1 tests fails in Fedora Rawhide
This issue was solved with changeset r32848.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/io/console/test_io_console.rb (test_noctty): daemon() on
...
nobu (Nobuyoshi Nakada)
09:37 PM Bug #5076 (Closed): Mac OS X Lion Support
This issue was solved with changeset r32629.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
merge revision(s) 32628:
* vm_insnhelper.c (vm_call_cfunc): adde...
kosaki (Motohiro KOSAKI)
05:27 PM Bug #5076: Mac OS X Lion Support
下記の通り Github にてコミットへのコメントとして、Xcode 4.2 Developer Preview 7 において、
付録の LLVM/clang が更新され、trunk の test-all が通るようになっています。
同時に gcc-4.2 の添付が終了しているようなんですが(こっちはすでに入ってたので未確認)どうしましょうか。
https://github.com/ruby/ruby/commit/ddcb133aa22bf0be31baeea0...
naruse (Yui NARUSE)
09:37 PM Bug #3781 (Closed): FIBER_USE_NATIVE が有効だと落ちるスクリプトがある
This issue was solved with changeset r32438.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: change water_mark value value that may call
gc_mark(l...
Anonymous
09:37 PM Feature #4481 (Closed): Add client_ca method to OpenSSL::SSLSocket
This issue was solved with changeset r32337.
Ippei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl.c/.h: Added ossl_x509_name_sk2ary.
* ext/open...
Anonymous
09:37 PM Feature #1291 (Closed): O_CLOEXEC flag missing for Kernel::open
This issue was solved with changeset r31430.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (Init_IO): Added File::CLOEXEC constant. [ruby-core:22893...
kosaki (Motohiro KOSAKI)
09:20 PM Feature #5282 (Closed): test-all 結果の順序
This issue was solved with changeset r33205.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit.rb (_run_suites): Now reports are written the
fo...
sorah (Sorah Fukumori)
08:21 PM Feature #5282 (Closed): test-all 結果の順序
現在 Failure と Error と Skip が混ざって結果が出てくるので、ソートして欲しい。
具体的な順番は、一瞬 Skip を最後にしたくなるのだが、通常 EF は数個でかつ末尾から見る訳なので、
Skip Failure Error の順がよいのではなかろうか。
ついでに、一番最後に ruby -v を出力してくれるとうれしいです。
naruse (Yui NARUSE)
09:16 PM Feature #5128 (Closed): 日本語ドキュメントをUTF-8に
This issue was solved with changeset r33204.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/Makefile.sub (INSNS): change command line option -Ks ...
tarui (Masaya Tarui)
08:06 AM Feature #5128: 日本語ドキュメントをUTF-8に
4件だった
>nagachika:r33195 2011-09-05 21:02:30 +0900
> ...
kosaki (Motohiro KOSAKI)
08:05 AM Feature #5128 (Open): 日本語ドキュメントをUTF-8に
記録のために書きますが、r33181のために発生した障害が3件
http://d.hatena.ne.jp/nagachika/20110905/ruby_trunk_changes_33181_33195
>shyouhei:r33187 2011-09-05 10:06:25 +0900
> ...
最初の2つはまだ情状酌量の余地があるけど、insns.defを機械的に置換してしまうのはなしでしょう。もうすこし注意深く作業願います > AIZAWAさん...
kosaki (Motohiro KOSAKI)
08:50 PM Bug #5244: Continuation causes Bus Error on Debian sparc
You can find a full build log at https://buildd.debian.org/status/fetch.php?pkg=ruby1.9.1&arch=sparc&ver=1.9.3~preview1%2Bsvn33077-3&stamp=1314689360
Kernel: Linux lebrun 2.6.32-5-sparc64-smp #1 SMP Tue Jun 14 12:44:14 UTC 2011 sparc ...
lucas (Lucas Nussbaum)
05:38 PM Bug #5244 (Feedback): Continuation causes Bus Error on Debian sparc
This cannot be reproduced on Solaris10 on sparc, with both Sun cc and gcc 4.4.3.
(using svn ruby_1_9_3 branch r33165)
The bug might depend on OS (kernel), gcc and/or libc.
Which version of OS (kernel), gcc, and libc do you use?
Cou...
ngoto (Naohisa Goto)
10:15 AM Bug #5244 (Assigned): Continuation causes Bus Error on Debian sparc
naruse (Yui NARUSE)
05:46 AM Bug #5244: Continuation causes Bus Error on Debian sparc
I poked at it a bit. While I don't understand fully what's going on, it looks like it's using _setjmp/longjmp, and one thing in setjmp page caught my eye: "setjmp() saves the stack context/environment in env for later use by longjmp(3).... jurij (Jurij Smakov)
06:45 PM Feature #5281 (Closed): Support for custom sitearch and vendorarch directories
For FHS system, it might be beneficial to allow to specify not only custom site and vendor directories, but also architecture specific site and vendor directories. Please apply the attached patch which implements these new "--with-sitear... vo.x (Vit Ondruch)
12:20 PM Revision 7e04b19d (git): * lib/test/unit.rb (_run_suites): Now reports are written the
following order: Skip, Failure, Error. [Feature #5282]
* test_sorting.rb: test for above.
* test4test_sorting.rb: Ditto.
* lib/test/unit.rb (run): Put RUBY_DESCIPTION before quitting.
[Feature #5282]
git-svn-id: svn+ssh://ci.ruby-l...
sorah (Sorah Fukumori)
12:16 PM Revision e2b74696 (git): * win32/Makefile.sub (INSNS): change command line option -Ks to -Ku
for generate *.inc. because insns.def encoding has been changed SJIS
to UTF-8. if $BASERUBY is 1.9, -Ks cause an error. [Feature #5128]
(same as r33194)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33204 b2dd03...
Masaya Tarui
10:37 AM Bug #5278 (Assigned): REXML -- Malformed comment
naruse (Yui NARUSE)
07:07 AM Bug #5278 (Closed): REXML -- Malformed comment
Hi Ruby-Team,
I use lib rexml for XML parsing. Kanjidic2 XML-File: http://www.csse.monash.edu.au/~jwb/kanjidic2/  (I do not attach file because it it too large)
It works with version 1.8.7 but PaseException ("Malformed comment" is ra...
tbf (Thomas Fritzsche)
09:58 AM Bug #5277 (Third Party's Issue): Problem with libsvn-ruby.
> I guess that version libsvn-ruby1.8 don't work with ruby1.9, obviously. What can be done for this support?
You're right. Recompile it.
nobu (Nobuyoshi Nakada)
01:58 AM Bug #5277 (Third Party's Issue): Problem with libsvn-ruby.
Hello everybody,
I have problem with libsvn-ruby, I'm using rvm, see my Debian environment:
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ rvm -v
rvm 1.6.32 by Wayne E. Seguin (wayneeseguin@gmail.com) [h...
marcello (Marcello Henrique Dias de Moura)
08:11 AM Revision 90c33c21 (git): Use assert_operator to show clear message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:53 AM Bug #3422: Object.const_get(:A, false) can access BasicObject::A
>> > Why is this issue closed? Is the current behaviour acceptable?
>>
>> Can you still reproduce this issue?
>>
>
> Not the original issue. But it seemed to me that this issue was left
> open because it introduced other pro...
kosaki (Motohiro KOSAKI)
01:03 AM Bug #3422: Object.const_get(:A, false) can access BasicObject::A
nobu lazily closed this ticket without the revision reference: r33163. naruse (Yui NARUSE)
12:23 AM Bug #3422: Object.const_get(:A, false) can access BasicObject::A
> > Why is this issue closed? Is the current behaviour acceptable?
>
> Can you still reproduce this issue?
>

Not the original issue. But it seemed to me that this issue was left
open because it introduced other problems (di...
judofyr (Magnus Holm)
06:55 AM Revision e240f490 (git): * transcode.c (load_transcoder_entry): concatenate paths directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:15 AM Revision 3a6c3a67 (git): * encoding.c (load_encoding): predefined encoding names are safe.
[ruby-dev:44469] [Bug #5279]
* transcode.c (load_transcoder_entry): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:07 AM Revision a1c5ebe7 (git): * transcode.c: enabled econv newline option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

09/05/2011

09:45 PM Revision 80f54e68 (git): * numeric.c (dbl2ival): Fix Float#divmod and #round for 32 bit platform
part 1 of [bug #5276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
09:44 PM Revision 3dc28710 (git): * numeric.c (flo_round): Fix criteria for 32 bits platform
part 2 of [bug #5276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
08:39 PM Revision 73bb2a29 (git): * 2011-09-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:39 PM Revision 31953152 (git): * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures
[ruby-dev:44430] [Ruby 1.9 - Bug #372]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masatoshi SEKI
06:14 PM Bug #5208 (Rejected): \b and \B don't match properly
Ken Takata wrote:
> > Ruby では \w とは別に \p{Word} というものを用意しているので、「\b は \p{Word} に従う」でよいかと思っています。
> ...
考えたんですが 1.9 では現状のままとします。
/u /a が将来取り込まれたらその時に改めて考えましょう。
> > (?(cond)yes|no) とかも欲しいなぁと思っていたのと、最適化も欲しいので、
> ...
あぁ、確かに不正なバイト列対策とか結構違...
naruse (Yui NARUSE)
06:05 PM Bug #5275 (Closed): Typo in ext/json/generator/generator.c
This issue was solved with changeset r33192.
Ayumu, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix typo: U+0456->U+0069. [Bug #5275]
naruse (Yui NARUSE)
06:00 PM Bug #5275 (Closed): Typo in ext/json/generator/generator.c
ext/json/generator/generator.c に一ヶ所いわゆる全角文字が使われているので修正パッチを書きました。
ayumin (Ayumu AIZAWA)
12:02 PM Revision 4117048c (git): * insns.def: change encoding pragma for emacs (shift_jis to utf-8).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:36 AM Revision 1cd56023 (git): * Makefile.in (INSNS): change command line option -Ks to -Ku for
generate *.inc. because insns.def encoding has been changed SJIS to
UTF-8. if $BASERUBY is 1.9, -Ks cause an error. [Feature #5128]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
09:10 AM Revision bc17dba0 (git): * transcode.c (rb_econv_binmode): newline decorators are
exclusive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:05 AM Revision 179cf473 (git): Fix typo: U+0456->U+0069. [Bug #5275]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:46 AM Revision ff2c5c16 (git): * test/ruby/test_float.rb (TestFloat#test_round): show the number in question.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:15 AM Bug #5274 (Closed): [ruby-dev:44460] Class の clone と Class の生成を組み合わせたときのバグ
[ruby-dev:44460] をチケット化します。
----
芝と申します。
次のサンプルコードを実行すると segv を吐きます。
確認した Ruby 処理系は ruby 1.9.3dev (2011-09-04 revision 33179)
[i686-linux] です。
#サンプルコード(#
StrClone = String.clone
Class.new(StrClone)
Marshal.dump(StrClone.ne...
mrkn (Kenta Murata)
06:07 AM Revision f37162c0 (git): merge revision(s) 33189:
* test/rubygems/test_gem_security.rb
(test_class_build_self_signed_cert): reset opt[:trust_dir] to apply
temporary Gem.user_home.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33190 b2dd03c8-39d4-4...
naruse (Yui NARUSE)
06:06 AM Revision 522c16e8 (git): * test/rubygems/test_gem_security.rb
(test_class_build_self_signed_cert): reset opt[:trust_dir] to apply
temporary Gem.user_home.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:05 AM Revision 818ebcc5 (git): * doc/rake/CHANGES: reverted. this file is not written in Japanese.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:43 AM Bug #5273 (Closed): Float#round returns the wrong floats for higher precision
Float#round returns the wrong floats for higher precision.
Rounding can be off:
2.5e-22.round(22) # => 2.0e-22
It can also return values that have extra decimals:
2.5e-31.round(31) # => 3.0000000000000003e-31
2.5e-36...
marcandre (Marc-Andre Lafortune)
03:53 AM Bug #5227: Float#round fails on corner cases
Hi,

On Tue, Aug 30, 2011 at 9:19 PM, NARUSE, Yui <naruse@airemix.jp> wrote:
>> RubySpec is part of CRuby's implementation test.
>> Do you have arguments against having tests in RubySpec instead of test/ruby?
>
> Because I d...
Anonymous
01:53 AM Feature #5128: 日本語ドキュメントをUTF-8に
$B$"$$$6$o$G$9!#(B

$B$9$_$^$;$s!"(Brebase $B$7$?$H$-$N%3%s%U%j%/%H$,$A$c$s$H2r7h$5$l$F$$$J$+$C$?$h$&$G(B
$B%3%s%U%j%/%H$,$G$?$^$^$K$J$C$F$$$^$7$?!#(B
$B=$@5%Q%C%A$rE:IU$7$^$9!#(B
ayumin (Ayumu AIZAWA)
01:06 AM Revision 48cd6cb1 (git): README.ja, README.EXT.ja: resolve conflicts. [ruby-dev:44459]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
12:53 AM Bug #3422: Object.const_get(:A, false) can access BasicObject::A
> Why is this issue closed? Is the current behaviour acceptable?

Can you still reproduce this issue?
kosaki (Motohiro KOSAKI)

09/04/2011

11:44 PM Bug #3231 (Rejected): Digest Does Not Build
Thanks for the confirmation. Closing this ticket as 'Works for me'. nahi (Hiroshi Nakamura)
10:01 AM Bug #3231: Digest Does Not Build
This can be closed, it no longer happens. cfis (Charlie Savage)
10:33 PM Feature #5198 (Closed): IMAP -- would like fucntions that return the default ports
This issue was solved with changeset r33182.
art , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb (default_port, default_imap_port,
default_tls...
shugo (Shugo Maeda)
10:17 PM Bug #4318 (Closed): Legacy bug in net/imap in Ruby 1.9.x
Hi,
Shugo Maeda wrote:
> This bug has been fixed in r30543.
> ...
There has been no feedback for a long time, so I close this ticket.
Please reopen it if necessary.
shugo (Shugo Maeda)
10:15 PM Bug #5162 (Rejected): IMAP error formatting string
Hello,
art lussos wrote:
> > I don't know why the back quote is not good. Ruby uses back quotes in many other cases.
> ...
So I'll close this ticket. Thanks.
shugo (Shugo Maeda)
09:22 PM Feature #5128 (Closed): 日本語ドキュメントをUTF-8に
This issue was solved with changeset r33181.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Change encoding from EUC-JP to UTF-8. [Feature #5128]
shyouhei (Shyouhei Urabe)
08:14 PM Revision 75c42535 (git): * numeric.c (flo_round): Make Float#round round big values [bug #5272]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
08:14 PM Revision 269de36c (git): * numeric.c: Extract integer rounding into int_round_0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
07:28 PM Revision dc20068d (git): * 2011-09-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:28 PM Revision 9d2f5dff (git): * numeric.c (int_round): Integer#round always returns an Integer [Bug #5271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
01:33 PM Revision 26f73a51 (git): * lib/net/imap.rb (default_port, default_imap_port,
default_tls_port, default_ssl_port, default_imaps_port):
added methods for consistency with Net::POP.
based on the patch by art lussos. [ruby-core:38997] [Bug #5198]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33182 b2dd03c8-...
shugo (Shugo Maeda)
12:22 PM Revision 60c84552 (git): Change encoding from EUC-JP to UTF-8. [Feature #5128]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:18 AM Revision a17fd731 (git): * ChangeLog: style fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
12:23 AM Bug #3422: Object.const_get(:A, false) can access BasicObject::A
On Sat, Sep 3, 2011 at 04:57, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:

>
> Issue #3422 has been updated by Nobuyoshi Nakada.
>
> Status changed from Assigned to Closed
>

Why is this issue closed? Is the current beh...
judofyr (Magnus Holm)

09/03/2011

11:52 PM Bug #5268 (Closed): [i386-mingw] `make test` failures with 1.9.3dev@33165
This issue was solved with changeset r33171.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (argf_next_argv): open in default text mode.
[ruby-core:3...
nobu (Nobuyoshi Nakada)
12:07 AM Bug #5268 (Closed): [i386-mingw] `make test` failures with 1.9.3dev@33165
After building on Win7 32bit with a MinGW toolchain I get the following failures during `make test`:
sh-3.1$ gcc --version
gcc.exe (tdm-1) 4.5.2
sh-3.1$ ruby --version
ruby 1.9.3dev (2011-09-02 revision 33165) [i386-mingw32]
s...
jonforums (Jon Forums)
10:01 PM Bug #5193: ruby_thread_data_type linker errors fixed with RUBY_EXTERN
Doesn't https://github.com/mark-moseley/ruby-debug/pull/14 work? nobu (Nobuyoshi Nakada)
08:08 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
別件の修正中にパッチを書いていたのですが、このチケットと同じ問題だと気がつきました。
#5195 のぶんも同じですがパッチを添付します。
wakeup や例外で抜けた時に @waiting に残ってしまうと次の Queue#push の時に意図せず Thread#wakeup が呼ばれてしまったり、実際に待っている Thread に wakeup が呼ばれなくなったりするので、残さないようにしたほうが良いと思います。
nagachika (Tomoyuki Chikanaga)
06:46 PM Bug #5259 (Closed): SizedQueue#max=で正でない数を指定できてしまう
This issue was solved with changeset r33170.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/thread.rb (SizedQueue#max=) raise ArgumentError if max is...
nagachika (Tomoyuki Chikanaga)
09:09 AM Bug #5259 (Assigned): SizedQueue#max=で正でない数を指定できてしまう
おっしゃる通りだと思いますので、テストを追加してコミットしておきます。
報告ありがとうございました。
nagachika (Tomoyuki Chikanaga)
04:02 PM Revision 107fd826 (git): * 2011-09-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:02 PM Revision 85ead55c (git): * backport r33177 from trunk.
* test/ruby/test_fiber.rb (TestFiber#test_no_valid_cfp):
add a test. Unlike TestThread#test_no_valid_cfp,
this test succeeds even if win32ole is required (see r33153).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@...
ktsj (Kazuki Tsujimoto)
03:54 PM Revision 7c9b9977 (git): * test/ruby/test_fiber.rb (TestFiber#test_no_valid_cfp):
add a test. Unlike TestThread#test_no_valid_cfp,
this test succeeds even if win32ole is required (see r33153).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
03:29 PM Feature #5128: 日本語ドキュメントをUTF-8に
(2011/09/01 19:32), NARUSE, Yui wrote:
> 2011年9月1日15:30 Ayumu Aizawa <ayumu.aizawa@gmail.com>:
>>> 他のファイルもやる必要があるという話なので、自分でコミットしてもらったほうが
>>> あとあとよいのではないでしょうか。
>>
>> 文句がでないのであれば、マイペースに作業できるので(あと卜部さんの負担も減るし)
>> そうしてもらえるとたすかりま...
Anonymous
03:11 PM Revision aa6ebbe3 (git): * 2011-09-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision bc2a1f2a (git): * variable.c (rb_const_set): show the previous definition
location. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:56 PM Revision 3e0819c6 (git): * configure.in (sizeof_struct_dirent_too_small): check if struct
dirent.d_name is too small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:55 PM Revision 90a10297 (git): * configure.in (RUBY_MINGW32): take tool prefix from CC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:54 PM Revision 4ac51126 (git): * ext/io/console/console.c (console_set_winsize): remove
unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:52 PM Revision 74f724de (git): * io.c (argf_next_argv): open in default text mode.
[ruby-core:39234] [Bug #5268]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:57 AM Bug #3422 (Closed): Object.const_get(:A, false) can access BasicObject::A
nobu (Nobuyoshi Nakada)
11:54 AM Bug #5154 (Closed): method_missing and module scope, regression in 1.9.3
nobu (Nobuyoshi Nakada)
11:52 AM Bug #5143 (Closed): include not properly registering modular methods
nobu (Nobuyoshi Nakada)
11:24 AM Bug #5269 (Closed): All ThreadError in PStore transaction will be caught and replaced with PStore::Error
=begin
I noticed all ThreadError in PStore transaction will be caught and replaced with PStore::Error.
Here is an example:
require 'pstore'

ps = PStore.new("hoge")
ps.transaction do
 raise ThreadError
end
The Thread...
Glass_saga (Masaki Matsushita)
09:46 AM Revision a46d29bb (git): * lib/thread.rb (SizedQueue#max=) raise ArgumentError if max is not
positive number. patch by Masaki Matsushita.
[ruby-dev:44449] [Bug #5259]
* test/thread/test_queue.rb (test_sized_queue_initialize,
test_sized_queue_assign_max): add tests for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3...
nagachika (Tomoyuki Chikanaga)
04:49 AM Revision 8e1b2f66 (git): * test/ruby/test_encoding.rb (test_find): mingw is not Unix, of course.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:49 AM Revision b31c8177 (git): * test/ruby/test_encoding.rb (test_find): mingw is not Unix, of course.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:11 AM Bug #5261 (Rejected): Symbol#to_proc memory leak in 1.9.x
Closed on OP request. No memory leak found. luislavena (Luis Lavena)
03:06 AM Bug #5261: Symbol#to_proc memory leak in 1.9.x
Indeed you're right, the references certainly take longer to get collected but don't increase considerably over time. It certainly caused some issues with our production code, but we need to accept a high degree of memory usage with the... ninkendo (Ken Simon)

09/02/2011

11:47 PM Bug #5164: Line endings, bug/regression or feature of 1.9.3?
Thank you Nakada-san, works perfectly! luislavena (Luis Lavena)
09:11 PM Bug #5164 (Closed): Line endings, bug/regression or feature of 1.9.3?
This issue was solved with changeset r33165.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (validate_enc_binmode, prep_stdio): default to text mode o...
nobu (Nobuyoshi Nakada)
09:29 PM Bug #5242 (Closed): ] C
Duplicated. kosaki (Motohiro KOSAKI)
09:26 PM Bug #5258 (Assigned): SizedQueueにBug #5195と同様のバグ
kosaki (Motohiro KOSAKI)
09:23 PM Revision 69c3434c (git): * 2011-09-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:23 PM Revision a1b8cacd (git): * 2011-09-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:23 PM Revision 012ddb6d (git): * win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:23 PM Revision 69dff899 (git): * win32/win32.c (rb_w32_fd_copy): cast explicitly to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:57 PM Bug #921 (Closed): autoload is not thread-safe
Closing. Please reopen this ticket if you find any regression. nahi (Hiroshi Nakamura)
05:46 PM Bug #5267 (Closed): BigDecimal#sqrt の rdoc で、引数は必須
ソース中の rdoc の記述では、BigDecimal#sqrt の引数は必須でないように
読めるが、必須なのでそのように。
diff --git ext/bigdecimal/bigdecimal.c ext/bigdecimal/bigdecimal.c
index 86070af..e70406a 100644
--- ext/bigdecimal/bigdecimal.c
+++ ext/bigdecimal/bigdecimal.c
@@ -1...
metanest (Makoto Kishimoto)
02:36 PM Bug #5264 (Closed): Commit 33157
This issue was solved with changeset r33163.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_insnhelper.c (vm_search_const_defined_class): search
an...
nobu (Nobuyoshi Nakada)
01:16 PM Bug #5264: Commit 33157
Ok, can reproduce like this:
```ruby
require 'rubygems'
require 'redis-namespace'
require 'redis-store'
```
Which when you go look at the gems source ends up like this:
```ruby
# from redis-namespace (lib/redis/namespace.rb)
class Red...
cfis (Charlie Savage)
10:05 AM Bug #5264 (Feedback): Commit 33157
Simplified code doesn't reproduce it.
class Redis; class Store < self; module Namespace; end; end; end
Is "Namespace" constant defined elsewhere at that point?
nobu (Nobuyoshi Nakada)
07:15 AM Bug #5264 (Closed): Commit 33157
It appears this commit:
https://github.com/ruby/ruby/commit/43284b6bf8324a762808537d5cd2c0774b662a84
Breaks our test suite, with this error from the redis namespace gem. Here is a trackeback from our Rails app:
Namespace is not...
cfis (Charlie Savage)
12:11 PM Revision 8403b23f (git): * io.c (validate_enc_binmode, prep_stdio): default to text mode on
dosish platforms. [ruby-core:38822] [Bug #5164]
* transcode.c (rb_econv_prepare_options): keep default ecflags
unchanged if no options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33165 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
12:11 PM Revision 7dc7da3d (git): * io.c (validate_enc_binmode, prep_stdio): default to text mode on
dosish platforms. [ruby-core:38822] [Bug #5164]
* transcode.c (rb_econv_prepare_options): keep default ecflags
unchanged if no options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:04 PM Bug #5266 (Closed): BigDecimal#sqrt で、大きな数の平方根の、要求する精度が低いある範囲のとき、結果がおかしい
BigDecimal#sqrt で、大きい数(10**n でだいたい n > 100 あたり
から顕著)の平方根を求める時、sqrt の引数(桁数で要求する、精度の下限)
がだいたい 20 ~ 0.55 * n の時、期待するような結果が出ません。
以下具体例を示して説明します。
$ irb19
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 1.9.4dev (2011-07-18 trunk 32577) [...
metanest (Makoto Kishimoto)
09:58 AM Bug #5262 (Closed): invalid multibyte escapes should raise a clearer error
This issue was solved with changeset r33161.
Larry, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (parser_tokadd_string, parser_yylex): ignore a backsla...
nobu (Nobuyoshi Nakada)
03:04 AM Bug #5262 (Closed): invalid multibyte escapes should raise a clearer error
Here's an irb example of the issue using 'curly-quotes':

ruby-1.9.2-p290 :001 > "“"
=> "“"
ruby-1.9.2-p290 :002 > "“".encoding
=> #<Encoding:UTF-8>
ruby-1.9.2-p290 :003 > "\“"
SyntaxError: (irb):3: invalid multibyte char...
coldnebo (Larry Kyrala)
08:09 AM Revision 45fffaea (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:36 AM Revision c526a584 (git): * vm_insnhelper.c (vm_search_const_defined_class): search
ancestors only when global scope. [ruby-core:39227] [Bug #5264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:36 AM Revision 7dddaf68 (git): * vm_insnhelper.c (vm_search_const_defined_class): search
ancestors only when global scope. [ruby-core:39227] [Bug #5264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:53 AM Bug #5261: Symbol#to_proc memory leak in 1.9.x
Ken Simon <ninkendo@gmail.com> wrote:
> It appears that running an array through .map(&:foo) leaks the array's
> contents, and they don't get picked up by the Garbage Collector.
>
> Given a simple class:
>
> class C
> ...
normalperson (Eric Wong)
12:47 AM Bug #5261 (Rejected): Symbol#to_proc memory leak in 1.9.x
=begin
It appears that running an array through .map(&:foo) leaks the array's contents, and they don't get picked up by the Garbage Collector.
Given a simple class:
class C
def foo
"foo"
end
end
The following ap...
ninkendo (Ken Simon)
03:31 AM Bug #5263 (Closed): Ruby crash when installing yard-0.7.2 installation
$ sudo gem install yard
Successfully installed yard-0.7.2
1 gem installed
/usr/local/lib/ruby/gems/1.9.1/gems/yard-0.7.2/lib/yard.rb:38: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
-- control f...
Ghassan (Ghassan Ayesh)
12:58 AM Revision f56f03b7 (git): * 2011-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:58 AM Revision 5e14b979 (git): * parse.y (parser_tokadd_string, parser_yylex): ignore a backslash
which prefixes an non-ascii character, which has no escape
syntax. [ruby-core:39222] [Ruby 1.9 - Bug #5262]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:58 AM Revision fcc41855 (git): * parse.y (parser_tokadd_string, parser_yylex): ignore a backslash
which prefixes an non-ascii character, which has no escape
syntax. [ruby-core:39222] [Ruby 1.9 - Bug #5262]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/01/2011

10:56 PM Bug #5259 (Closed): SizedQueue#max=で正でない数を指定できてしまう
=begin
SizedQueue#max=で正でない数を指定できてしまいます。
require 'thread'

sq = SizedQueue.new(1)
sq.max = -1
p sq.max #=> -1
sq.push(nil) #=> deadlock detected
SizedQueue.newでは引数が正の数であるかどうかチェックが行われていますが、SizedQueue#max=ではそのようなチェックが行われて...
Glass_saga (Masaki Matsushita)
10:23 PM Bug #5258 (Closed): SizedQueueにBug #5195と同様のバグ
=begin
[Bug #5195][ruby-dev:44400]と同様ですが、SizedQueue#pushでsleepしているthreadをwakeupさせると、SizedQueueの@queue_waitにそのthreadがpushされてしまいます。
require 'thread'

sq = SizedQueue.new(1)
sq.push(0)

t1 = Thread.start { sq.push(1) ; sleep ...
Glass_saga (Masaki Matsushita)
07:53 PM Feature #5128: 日本語ドキュメントをUTF-8に
2011年9月1日15:30 Ayumu Aizawa <ayumu.aizawa@gmail.com>:
>> 他のファイルもやる必要があるという話なので、自分でコミットしてもらったほうが
>> あとあとよいのではないでしょうか。
>
> 文句がでないのであれば、マイペースに作業できるので(あと卜部さんの負担も減るし)
> そうしてもらえるとたすかります。

コミット権がありませんから。

--
NARUSE, Yui <...
naruse (Yui NARUSE)
03:53 PM Feature #5128: 日本語ドキュメントをUTF-8に
> 他のファイルもやる必要があるという話なので、自分でコミットしてもらったほうが
> あとあとよいのではないでしょうか。

文句がでないのであれば、マイペースに作業できるので(あと卜部さんの負担も減るし)
そうしてもらえるとたすかります。
ayumin (Ayumu AIZAWA)
02:23 PM Feature #5128: 日本語ドキュメントをUTF-8に
> 誰からも文句が出ないのを見届けて今週中くらいを目安に卜部がpullします。

他のファイルもやる必要があるという話なので、自分でコミットしてもらったほうが
あとあとよいのではないでしょうか。
Anonymous
01:59 PM Feature #5128: 日本語ドキュメントをUTF-8に
誰からも文句が出ないのを見届けて今週中くらいを目安に卜部がpullします。 shyouhei (Shyouhei Urabe)
12:53 PM Feature #5128: 日本語ドキュメントをUTF-8に
あいざわです

文字コードが混在するパッチはうまくあたらないみたいなので、最新のtrunk でrebase したものを
pull request しました -> https://github.com/ruby/ruby/pull/45
ayumin (Ayumu AIZAWA)
07:07 PM Revision 8659de2e (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as
ascii-8bit as binary in YAML.
* test/psych/test_string.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
04:07 PM Revision 6e6feaf8 (git): * 2011-09-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:07 PM Revision c4eb2983 (git): * numeric.c (flo_round): substitute machine dependent magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:26 PM Bug #5256 (Third Party's Issue): My ruby crashed
Run configure with --with-gcc=gcc-4.2. naruse (Yui NARUSE)
03:04 PM Bug #5256 (Third Party's Issue): My ruby crashed
Hey
I am on a Mac Osx platform and running ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
The ruby on my machine keeps crashing. I have attached a crash log from my machine.
Please have a look at it.
ck_gagan (Gagan Shrestha)
10:36 AM Bug #921: autoload is not thread-safe
Eric Wong wrote:
> I got the following with r33147 on gcc (Debian 4.6.1-4) 4.6.1:
> ...
[snip]
NARUSE-san applied this at r33151. Thank, guys!
nahi (Hiroshi Nakamura)
06:23 AM Bug #921: autoload is not thread-safe
Hiroshi Nakamura <nakahiro@gmail.com> wrote:
> I re-apply r33078 and additional fixes at r33147. I tested it against
> Rails 3.1.0 and confirmed that it passes all of full tests except
> PG/MySQL/SQLite things which I don't instal...
normalperson (Eric Wong)
09:19 AM Bug #5255 (Closed): C の Proc の比較のバグ
すいません。 #5249ですでにチケット化ずみでした。closeします kosaki (Motohiro KOSAKI)
09:17 AM Bug #5255: C の Proc の比較のバグ
[ruby-dev:44435] をチケット化 kosaki (Motohiro KOSAKI)
09:15 AM Bug #5255 (Closed): C の Proc の比較のバグ
芝と申します。
Proc#eq(C の関数は proc.c 内の proc_eq)で、C で定義した Proc
(rb_proc_new などを用いて定義)の比較を行う箇所に不具合があります。
C で定義した Proc に対しても iseq を見て比較を行っているため、メモリの状
況如何で segv を吐いたり false のはずが true になったりします。
問題となる proc_eq は以下のようになっていて、Proc の種類にかかわらず、
p...
Anonymous
09:15 AM Bug #5254 (Assigned): class オブジェクトの開放時に segv
チケット化 kosaki (Motohiro KOSAKI)
09:14 AM Bug #5254 (Closed): class オブジェクトの開放時に segv
芝と申します。

次のようなコードを実行すると、gc の sweep フェーズで segv します。

# 再現コード
####################################
class BasicObject
def singleton_method_added(mid)
raise
end
end

b = proc {}
class << b; end
b.clone
...
Anonymous
08:31 AM Revision 0f0db416 (git): * insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see
also inherited constants for classes without superclass and
modules. [ruby-core:37698] [Bug #3423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Revision 43284b6b (git): * insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see
also inherited constants for classes without superclass and
modules. [ruby-core:37698] [Bug #3423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:16 AM Revision 00e2e039 (git): properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:16 AM Revision d9acd196 (git): properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:42 AM Revision d3507e3e (git): * Release GVL while OpenSSL's public key generation.
t = Thread.new { print "."; sleep 0.1 }
key = OpenSSL::PKey::RSA.new(2048)
#=> Thread t works in parallel with public key generation if
OS/machine allows it.
This works with OpenSSL >= 0.9.8. From this version, it has ...
Hiroshi Nakamura
05:12 AM Revision e0cde13a (git): backported r33153 from trunk.
* test/ruby/test_thread.rb (TestThread#test_no_valid_cfp): skip when
win32ole is required. in such case, win32ole redefines
Thread#initialize, and the block argument becomes to be not the top
of the thread, then this testcase alwa...
U.Nakamura
05:09 AM Revision ca3b4133 (git): * test/ruby/test_thread.rb (TestThread#test_no_valid_cfp): skip when
win32ole is required. in such case, win32ole redefines
Thread#initialize, and the block argument becomes to be not the top
of the thread, then this testcase always fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33153 b2d...
U.Nakamura
04:23 AM Bug #5237: IO.copy_stream calls #read on an object infinitely many times
Hi,

On Tue, Aug 30, 2011 at 8:48 PM, Motohiro KOSAKI
<kosaki.motohiro@gmail.com> wrote:
>
> Issue #5237 has been updated by Motohiro KOSAKI.
>
>
> If you are reading following paragraph,
>
>> *  At end of file, it returns
brixen (Brian Shirai)
01:22 AM Revision 9cdc7f9d (git): * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{default_mode_on_dosish,
default_mode_on_unix,text_mode,binary_mode}): sorry for wrong test
committed in r33144. I'd misunderstood the spec of ruby's universal
newline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33152 b2dd03c8-39d4-4d8f-98ff-823fe6...
U.Nakamura
01:22 AM Bug #5252: Segmentation Fault
Actually the code is like this
begin
cloader_obj = CassandraLoader.new
cloader_obj.load_data1(settings_hash)
GC.start
rescue LoaderException
...
end

begin
cloader_obj = CassandraLoader.new
cloader_obj.load_dat...
chaitanyav (NagaChaitanya Vellanki)
01:12 AM Bug #5252: Segmentation Fault
I will let the developers know about this issue. For now, i have added GC.start after each of the methods inside the rake task which pull around 100K+ rows of data each. I am not getting segmentation fault anymore.
begin
cloader_obj...
chaitanyav (NagaChaitanya Vellanki)
12:31 AM Revision d163179c (git): * variable.c (rb_autoloading_value) Fix the order of definitions.
It is used by autoload_defined_p.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:25 AM Revision b40ff978 (git): merge revision(s) 33148:
------------------------------------------------------------------------
r33148 | naruse | 2011-09-01 09:23:20 +0900 (Thu, 01 Sep 2011) | 1 line
Remove tests of json/add/{complex, rational}.
---------------------------------------------...
naruse (Yui NARUSE)
12:23 AM Revision 6240b52c (git): * 2011-09-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:23 AM Revision 91e4b4f6 (git): Remove tests of json/add/{complex, rational}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

08/31/2011

05:51 PM Bug #921: autoload is not thread-safe
I re-apply r33078 and additional fixes at r33147. I tested it against Rails 3.1.0 and confirmed that it passes all of full tests except PG/MySQL/SQLite things which I don't installed properly.
Please evaluate it!
P.S. It won't incl...
nahi (Hiroshi Nakamura)
02:55 PM Bug #5252: Segmentation Fault
Then you should check your proprietary extension for potentially missing GC guard: http://timetobleed.com/the-broken-promises-of-mrireeyarv antares (Michael Klishin)
02:44 PM Bug #5252: Segmentation Fault
I am using two C extensions, one is a proprietary one to query a oracle database and the other is thrift which is used by cassandra. Can you please explain more about the GC guard?. chaitanyav (NagaChaitanya Vellanki)
01:01 PM Bug #5252: Segmentation Fault
Are you using any C extensions or libraries that may depend on C extensions? This looks like a well-know type of problems with missing GC guard. antares (Michael Klishin)
07:23 AM Bug #5252 (Closed): Segmentation Fault
I am running a rake task to query data from a oracle database using C extension, I am seeing segmentation fault happening randomly.
ruby -v ...
chaitanyav (NagaChaitanya Vellanki)
02:29 PM Bug #5227: Float#round fails on corner cases
"So what's the test going to achieve? What's that test for?" said my
teacher another day. A test has a perspective. No test can be suitable
for everything.

It seems to me RubySpec is meant to be a written behavioral descript...
shyouhei (Shyouhei Urabe)
01:13 PM Bug #5227 (Closed): Float#round fails on corner cases
This issue was solved with changeset r33140.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c (flo_round): Avoid overflow by optimizing for t...
marcandre (Marc-Andre Lafortune)
10:23 AM Bug #5227: Float#round fails on corner cases
2011/8/31 Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca>:
> Hi,
>
> On Sun, Aug 28, 2011 at 8:53 PM, NARUSE, Yui <naruse@airemix.jp> wrote:
>>>> Adding tests to RubySpec is not enough.
>>>> You should also add tests to...
naruse (Yui NARUSE)
09:53 AM Bug #5227: Float#round fails on corner cases
Hi,

On Sun, Aug 28, 2011 at 8:53 PM, NARUSE, Yui <naruse@airemix.jp> wrote:
>>> Adding tests to RubySpec is not enough.
>>> You should also add tests to CRuby's test-all.
>>
>> I respectfully disagree.
>
> RubySpec is n...
Anonymous
12:48 PM Bug #5237: IO.copy_stream calls #read on an object infinitely many times
If you are reading following paragraph,
> * At end of file, it returns
kosaki (Motohiro KOSAKI)
08:35 AM Revision 0d475da8 (git): * variable.c (rb_autoload): There was a chance to run GC (from
rb_str_new2()) before finishing autoload_data_i construction. It
caused SEGV at rb_gc_mark() at autoload_i_mark.
* variable.c (rb_autoload_load): Move RB_GC_GUARD() to proper
position based on suggestion by CHIKANAGA Tomoyuki at
h...
Hiroshi Nakamura
08:28 AM Revision cfe8ed5c (git): * Re-apply r33078, thread-safe autoload which is reverted at r33093.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Hiroshi Nakamura
07:55 AM Revision f653519c (git): * ChangeLog: wrong ticket number and ML number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:29 AM Revision 8b74d0c3 (git): * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{default_mode_on_dosish,
default_mode_on_unix,text_mode,binary_mode}): tests for [Bug # 5164].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:02 AM Revision c9de2578 (git): merge revision(s) 33142:
* ext/json: Merge json gem v1.5.4 (3dab4c5a6a97fac03dac).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:56 AM Revision c06658fe (git): * ext/json: Merge json gem v1.5.4 (3dab4c5a6a97fac03dac).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:23 AM Bug #5251: Thread Change Breaks Windows Builds
Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> This regression was caused by Bug#5229(rb_thread_select() rewritten)
> and fixed by r33128, r33130, r33131, r33132, r33133.

Oops, sorry all, I'm a klutz :x
normalperson (Eric Wong)
05:33 AM Bug #5251 (Closed): Thread Change Breaks Windows Builds
This regression was caused by Bug#5229(rb_thread_select() rewritten) and fixed by r33128, r33130, r33131, r33132, r33133.
Thank you, Usa-san!
kosaki (Motohiro KOSAKI)
04:20 AM Revision cc6407f8 (git): * backport r33140 from trunk
* numeric.c (flo_round): Avoid overflow by optimizing for trivial cases
[Bug #5227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:13 AM Revision 64e0cae2 (git): * numeric.c (flo_round): Avoid overflow by optimizing for trivial cases
[Bug #5227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
 

Also available in: Atom