Project

General

Profile

Activity

From 09/21/2011 to 09/27/2011

09/27/2011

09:23 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
重要度は確かに微妙です。微妙なので、もはや仕様は完全に凍結するという原則論を優先します。何か現実的なセキュリティーホールに繋がる可能性があったら(DoS以外)また考えます yugui (Yuki Sonoda)
10:29 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
2011年9月27日2:19 Shugo Maeda <[email protected]>:
> 前田です。
>
> 2011年9月26日22:26 KOSAKI Motohiro <kosaki.motohiro...
kosaki (Motohiro KOSAKI)
02:23 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
前田です。

2011年9月26日22:26 KOSAKI Motohiro <[email protected]>:
>> Yuguiさんが1.9.3ブランチにバックポートしてくださって、先ほどめでたく...
shugo (Shugo Maeda)
07:47 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Masahiro Tanaka wrote:
> I think your solution [ruby-core:39612] is acceptable because the
> modification of the ...
naruse (Yui NARUSE)
07:44 PM Revision 2865b450 (git): * test/psych/test_yamlstore.rb: use tmpdir for tmpfile.
* test/syck/test_yamlstore.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33351 b2dd03c8-39d4-4d8f-98f...
ayumin (Ayumu AIZAWA)
07:15 PM Revision fcb2bb8b (git): * ext/bigdecimal/README: update report to.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
07:06 PM Revision 19099f37 (git): * 2011-09-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:06 PM Revision 0e181531 (git): * ext/bigdecimal/bigdecimal_en.html: removed because this file isn't
maintained now.
* ext/bigdecimal/bigdecimal_ja.html: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33348 ...
Kenta Murata
06:18 PM Feature #5372 (Rejected): Promote blank? to a core protocol
I don't think there's been a project I've used that hasn't made use of this pattern:
if thing.nil? || thing.empt...
regularfry (Alex Young)
02:29 PM Bug #5363: OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
2011/9/27 KOSAKI Motohiro <[email protected]>:

>> So I'm afraid I couldn't really backport this to 1.9....
MartinBosslet (Martin Bosslet)
01:23 PM Bug #5363: OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
2011/9/27 Martin Boßlet <[email protected]>:
> 2011/9/26 Hiroshi Yoshida <[email protected]>:
>>
...
kosaki (Motohiro KOSAKI)
01:06 PM Bug #5363 (Closed): OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
This issue was solved with changeset r33347.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby i...
kosaki (Motohiro KOSAKI)
12:53 PM Bug #5363: OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
2011/9/26 Hiroshi Yoshida <[email protected]>:
>
> Issue #5363 has been updated by Hiroshi Yoshida.
>
>
...
MartinBosslet (Martin Bosslet)
02:14 AM Bug #5363: OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
I confirmed that the expected results.
---
# ruby example.rb
ruby 1.9.4dev (2011-09-26 trunk 33339) [x86_64-lin...
Hexa (Hiroshi Yoshida)
11:50 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
See facets/to_hash.rb trans (Thomas Sawyer)
10:04 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
I have implemented these features in this repo:
https://github.com/sunaku/equal_rights_for_hash
And I have rele...
sunaku (Suraj Kurapati)
10:29 AM Feature #5371: add marshalling support for Mutex
> Hello,
>
> Please add marshalling support for the Mutex class:
>
> $ irb
>>> Marshal.dump(Mutex.new)
> TypeE...
kosaki (Motohiro KOSAKI)
04:54 AM Feature #5371 (Rejected): add marshalling support for Mutex
Hello,
Please add marshalling support for the Mutex class:
$ irb
>> Marshal.dump(Mutex.new)
TypeError: no mar...
sunaku (Suraj Kurapati)
08:17 AM Feature #3131: add Kernel#Hash() method like Kernel#Array()
Thanks for the pointer. I'll just wait for Ruby 1.9.4 then. sunaku (Suraj Kurapati)
06:36 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Do we *really* need new syntax to support a basic metaprogramming feature?
If Ruby metaprogramming is first-class, n...
kstephens (Kurt Stephens)
03:59 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
On Monday, September 26, 2011 at 2:37 AM, Joey Zhou wrote:
> Joshua Ballanco and Yusuke Endoh san remind me the de...
jballanc (Joshua Ballanco)
04:06 AM Revision 4bd17e7c (git): merge revision(s) 33333:
* ext/openssl/ossl_asn1.c: fix int_ossl_asn1_decode0_cons when being
fed arbitrary string values.
...
kosaki (Motohiro KOSAKI)
03:37 AM Bug #5370 (Closed): [psych] test_yamldbm.rb failures/warnings on Win7/Arch
This issue was solved with changeset r33340.
Jon, thank you for reporting this issue.
Your contribution to Ruby is gr...
ayumin (Ayumu AIZAWA)
01:12 AM Bug #5370: [psych] test_yamldbm.rb failures/warnings on Win7/Arch
Another Win7 snippet indicating it could be a test code/setup specific problem:
C:\Users\Jon\Documents>ripl
>> RU...
jonforums (Jon Forums)
12:48 AM Bug #5370 (Closed): [psych] test_yamldbm.rb failures/warnings on Win7/Arch
After building trunk@33339 on 32bit Win7 and Arch and running `make test-all TESTS=psych` I get the following.
Win...
jonforums (Jon Forums)
12:59 AM Revision 1bdf1a5c (git): * thread_pthread.c: make native_fd_select().
* thread.c (do_select): remove #ifdef _WIN32. Instead, use
native_fd_select() always.
git-svn-id: svn+ssh://ci.r...
kosaki (Motohiro KOSAKI)
12:50 AM Revision 2cc5eeaf (git): * thread.c (do_select): remove cygwin specific hack. It's layer
violation and too large hack.
* thread.c (cmp_tv, subtract_tv): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
kosaki (Motohiro KOSAKI)

09/26/2011

11:53 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
(2011/09/26 7:03), m_takao wrote:
> これは「ensure節の実行中に止めるのはNG」ということですよね?
> いまの実装 (rev.33339) では、ensure節の実行中であっても、t...
ko1 (Koichi Sasada)
11:23 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
高尾と申します。

>  (2) については仕様です.ご提案の修正方法では,とにかく生きていたら殺
> す,ということをしていますが,例えば他のスレッドで何か時間のかかる終了処
> 理をしていた場合(例えば,終了時に...
Anonymous
10:53 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
kosaki (Motohiro KOSAKI)
02:29 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
(2011/09/25 21:51), Masaki Matsushita wrote:
> 次のコードを実行するとCPU使用率が跳ね上がった状態になりインタプリタが終了しません。
>
> Thread.new do...
ko1 (Koichi Sasada)
01:51 PM Bug #5368 (Closed): ensure節でsleepするようなThreadがあるとインタプリタが終了しない
=begin
次のコードを実行するとCPU使用率が跳ね上がった状態になりインタプリタが終了しません。
Thread.new do
begin
sleep
ensure
sleep
...
Glass_saga (Masaki Matsushita)
10:29 PM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
> かずひこです。
>
> On 06/09/2011 12:10, Kazuhiko wrote:
>> On 06/09/2011 06:10, Shota Fukumori (sora_h) wrote:
>>...
kosaki (Motohiro KOSAKI)
07:01 PM Revision 38fe7da8 (git): Oops! fix psych -> syck
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
06:52 PM Revision 379d519f (git): * test/rexml/test_sax.rb: add require 'rexml/document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
06:52 PM Revision 81ed2fda (git): Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
06:37 PM Revision 23b4b59a (git): * 2011-09-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:37 PM Revision 375d9f91 (git): * test/psych/test_yamldbm.rb (require): fix #setup and #terdown.
[Bug #5370] [ruby-core:39730]
* test/syck/test_yamldbm.rb (require): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
ayumin (Ayumu AIZAWA)
04:53 PM Bug #5353: TLS v1.0 and less - Attack on CBC mode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/24/2011 08:44 PM, Martin Bosslet wrote:
> http://www.ed...
nahi (Hiroshi Nakamura)
03:37 PM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Well, Proc instances and Method instances are both closures. To obtain a closure, the Ruby idiom is almost from a blo... yimutang (Joey Zhou)
12:38 PM Feature #5364 (Open): How about new syntax: "object.\method" returns a Method instance?
Hello,
To prevent `bikeshed' discussion, we should focus use case first
about this ticket, I think. Why don't yo...
mame (Yusuke Endoh)
12:16 PM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
It's just a convenience thing, so I think it's not possible to prove a "real use case" as such. And as only a static ... trans (Thomas Sawyer)
11:19 AM Feature #5364 (Feedback): How about new syntax: "object.\method" returns a Method instance?
We need a needs fot this syntax. I don't reject it right now, because there's a
room for someone to find a real use...
shyouhei (Shyouhei Urabe)
10:53 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Joshua Ballanco <[email protected]> wrote:
> On Sun, Sep 25, 2011 at 10:36 AM, Joey Zhou <[email protected]> wro...
normalperson (Eric Wong)
09:29 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
On Sun, Sep 25, 2011 at 10:36 AM, Joey Zhou <[email protected]> wrote:

>
> 1. It makes people happy, writing...
jballanc (Joshua Ballanco)
07:23 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
On Sun, Sep 25, 2011 at 8:34 PM, Juan Wajnerman <[email protected]> wrote:
>
> Issue #5364 has been update...
yeban (Anurag Priyam)
05:53 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
Of note, there is already a working patch (for a very similar feature) for the 1.9 branch at the ruby-patches github... Anonymous
05:13 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
=begin
I find myself rarely needing to call #method and I don't often see code where other people call #method, so I...
drbrain (Eric Hodel)
01:23 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
What about object:method ? The \ version doesn't seem very appealing. aprescott (Adam Prescott)
12:04 AM Feature #5364: How about new syntax: "object.\method" returns a Method instance?
How about "object.:method" ? Looks more Ruby style for me. waj (Juan Wajnerman)
12:49 PM Bug #5365: WEBrick lacks the application/javascript and image/svg+xml MIME types.
On 2011/09/26 9:52, Yui NARUSE wrote:
>
> Issue #5365 has been updated by Yui NARUSE.
>
>
> RFC3203 says S...
duerst (Martin Dürst)
11:28 AM Bug #5365 (Closed): WEBrick lacks the application/javascript and image/svg+xml MIME types.
This issue was solved with changeset r33339.
Hal, thank you for reporting this issue.
Your contribution to Ruby is gr...
naruse (Yui NARUSE)
11:22 AM Bug #5365: WEBrick lacks the application/javascript and image/svg+xml MIME types.
Oops, you are correct. Patch re-uploaded. postmodern (Hal Brodigan)
09:52 AM Bug #5365: WEBrick lacks the application/javascript and image/svg+xml MIME types.
RFC3203 says SVG's MIME Type is image/svg+xml, isn't it?
http://www.ietf.org/rfc/rfc3023.txt
naruse (Yui NARUSE)
05:12 AM Bug #5365 (Closed): WEBrick lacks the application/javascript and image/svg+xml MIME types.
WEBrick::HTTPUtils::DefaultMimeTypes (webrick/httputils.rb) does not define MIME types for the file extensions 'js' a... postmodern (Hal Brodigan)
11:53 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
2011/9/22 Kurt Stephens <[email protected]>:
> A basis that sums to unity reduces error, due to convex hull prope...
naruse (Yui NARUSE)
10:10 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
+1 I use #to_h often and always have to implement myself when needed. It's annoying. trans (Thomas Sawyer)
05:45 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Any chance of this getting into Ruby 1.9.3? Thanks. sunaku (Suraj Kurapati)
07:31 AM Bug #5345: error running make for 1.9.2-p290: Generating RI => 'marshal data too short'
Also have the same problem with ruby_1_9_3_rc1 stepheneb (Stephen Bannasch)
07:12 AM Bug #5345: error running make for 1.9.2-p290: Generating RI => 'marshal data too short'
I'm now getting the same error when building 1.9.2-p302 (which worked last week):
When using miniruby to generate ...
stepheneb (Stephen Bannasch)
06:59 AM Feature #3131: add Kernel#Hash() method like Kernel#Array()
On Mon, Sep 26, 2011 at 1:52 AM, Suraj Kurapati <[email protected]> wrote:
>
> Issue #3131 has been updated by Sura...
yeban (Anurag Priyam)
05:22 AM Feature #3131: add Kernel#Hash() method like Kernel#Array()
Any chance of this getting into Ruby 1.9.3? Thanks. sunaku (Suraj Kurapati)
02:28 AM Revision 7b6677f1 (git): * lib/webrick/httputils.rb: Add MIME Type definition of .js and .svg.
patched by Hal Brodigan. [ruby-core:39704] [Bug #5365]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33339 b2dd0...
naruse (Yui NARUSE)
12:21 AM Revision 36a1e760 (git): * configure.in: remove DJGPP support. It's not longer supported
since ruby 1.9.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
12:19 AM Revision 20ae79b0 (git): * include/ruby/defines.h: remove NextStep, OpenStep, Rhapsody
support. Last activity of their OSs are 7 years ago.
* configure.in: ditto.
* dir.c: ditto.
* ext/tk/extconf.rb: ditt...
kosaki (Motohiro KOSAKI)
12:06 AM Feature #5352: How about using <> to represent Here Document?
Nobuyoshi Nakada wrote:
> I'm somewhat negative.
> It looks like Perl's "<>" but is pretty different, so I'm afraid...
yimutang (Joey Zhou)
12:05 AM Revision 6823334c (git): * configure.in: remove a code for human68k. it's no longer
supported since r19677.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
12:02 AM Bug #5363 (Feedback): OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
Yui NARUSE wrote:
> Chikanaga says this is a regression from 1.9.3 and https://gist.github.com/1239801 fixes this.
Y...
MartinBosslet (Martin Bosslet)

09/25/2011

11:51 PM Bug #5363 (Closed): OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
This issue was solved with changeset r33333.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby i...
Anonymous
07:22 PM Bug #5363 (Assigned): OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
Chikanaga says this is a regression from 1.9.3 and https://gist.github.com/1239801 fixes this. naruse (Yui NARUSE)
12:00 PM Bug #5363: OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
ruby 1.9.4dev (2011-09-23 trunk 33318) [x86_64-darwin10.8.0] および
ruby 1.9.3dev (2011-09-24 revision 33322) [x86_64-d...
nagachika (Tomoyuki Chikanaga)
10:52 AM Bug #5363 (Closed): OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生する
Ruby 1.9.3 rc1 で OpenSSL::ASN1.decode_all の引数に PEM 形式の証明書を指定すると Segmentation fault が発生します。
== 環境
Ubuntu 11.04 6...
Hexa (Hiroshi Yoshida)
11:36 PM Feature #5364 (Rejected): How about new syntax: "object.\method" returns a Method instance?
I'm afraid the normal way of creating a Method instance is circuitous and a bit hard to write:
a_method = obje...
yimutang (Joey Zhou)
09:05 PM Bug #5305 (Closed): YAML::DBM#update、#replace のコメントの間違いを修正する
This issue was solved with changeset r33329.
Sho, thank you for reporting this issue.
Your contribution to Ruby is gr...
ayumin (Ayumu AIZAWA)
03:10 PM Revision 69bebb05 (git): * 2011-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision 9643aa94 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:51 PM Revision 8b7e1087 (git): * ext/openssl/ossl_asn1.c: fix int_ossl_asn1_decode0_cons when being
fed arbitrary string values.
Clearly distinguish between the cases "universal, infinite and
not a SEQUENCE or SET...
MartinBosslet (Martin Bosslet)
01:40 PM Revision b4bc086a (git): * README.ja, README.EXT.ja: remove garbage spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:20 PM Revision d7000de9 (git): * property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:05 PM Revision 3255adcd (git): * test/syck/test/yamldbm.rb: add test for Syck::DBM.
* test/psych/test_yamldbm.rb: add test for Psych::DBM.
* test/psych/test_yamlstore.rb: add test for Psych::PStore.
g...
ayumin (Ayumu AIZAWA)
12:05 PM Revision 73bd9e56 (git): * lib/yaml/dbm/dbm.rb: fix #update, add #key for using istead #index.
[Bug #5305][ruby-dev:44485]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33329 b2dd03c8-39d4-4d8f-98ff-823fe69b...
ayumin (Ayumu AIZAWA)
07:54 AM Revision fecda0d9 (git): * encoding.c (require_enc): reject only loading from untrusted
load paths. [ruby-dev:44541] [Bug #5279]
* transcode.c (load_transcoder_entry): ditto.
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)
07:45 AM Revision 256f355a (git): * configure.in: ignore all warnings from an arbitrary
header in /usr/local/include.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33327 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
07:42 AM Revision 62dfc45b (git): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:53 AM Bug #5279: $SAFEが3以上の時にString#encodeがSecurityErrorを発生させるケースがある
かずひこです。

On 06/09/2011 12:10, Kazuhiko wrote:
> On 06/09/2011 06:10, Shota Fukumori (sora_h) wrote:
>> じゃぁ,大...
kazuhiko (Kazuhiko Shiozaki)
02:01 AM Feature #5360: BasicObject#binding
Sure. I think the most obvious usecase is with ERB. If I want to strictly control the available interface to an ERB t... trans (Thomas Sawyer)

09/24/2011

08:44 PM Bug #5353: TLS v1.0 and less - Attack on CBC mode
Some first reactions:
http://www.educatedguesswork.org/2011/09/security_impact_of_the_rizzodu.html
http://www.imp...
MartinBosslet (Martin Bosslet)
06:43 PM Revision 9e3a3be8 (git): * 2011-09-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:43 PM Revision 73220a23 (git): * enum.c (slice_before_i): use rb_attr_get to surpress wrong warning
for internal instance variable slicebefore_initial_state.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33324 b2...
naruse (Yui NARUSE)
03:02 PM Bug #5350: WeakRef で謎の NoMethodError
ささださんがパッチを書いてくれました.
(許可を得て)MLに転載しておきます.
手元では再現しなくなりましたが, ([ruby-dev:44525] の再現コードを使用)
どうでしょうか.
diff --git a/l...
sorah (Sorah Fukumori)
11:53 AM Bug #5350: WeakRef で謎の NoMethodError
(2011/09/23 19:02), SASADA Koichi wrote:
>  うーん,これはどうするべきかな.ファイナライズ処理を遅延させるように
> コードを書き換えれば解決できますが,ちょっと大がかりな気もしま...
ko1 (Koichi Sasada)
11:23 AM Bug #5350: WeakRef で謎の NoMethodError
(2011/09/23 18:58), SASADA Koichi wrote:
>  ファイナライザの実行は,何時起こるかわからないものなので,デッドロック
> の可能性がある処理を行うのは,プログラムが悪い,ということに...
ko1 (Koichi Sasada)
10:59 AM Bug #5350: WeakRef で謎の NoMethodError
 ささだです.

(2011/09/23 18:47), Shota Fukumori (sora_h) wrote:
> 元の問題がややこしくなっているので一旦まとめると,
>
> a = Object.ne...
ko1 (Koichi Sasada)
10:23 AM Bug #5350: WeakRef で謎の NoMethodError
(2011/09/23 17:44), Shota Fukumori wrote:
> test-allは通ったけど,はたしてこれでいいんだろうか.

 良くないです.Mutex の保持と finalizer の実行は関...
ko1 (Koichi Sasada)
09:44 AM Bug #5350: WeakRef で謎の NoMethodError
test-allは通ったけど,はたしてこれでいいんだろうか.
diff --git a/thread.c b/thread.c
index 10b73eb..de63c3a 100644
--- a/thread.c
++...
sorah (Sorah Fukumori)
06:55 AM Bug #5350: WeakRef で謎の NoMethodError
両方共その場しのぎ,症状に対して防止策をしているだけだと思うのでこの2つのパッチはあまり根本的な解決にはならないと思います. sorah (Sorah Fukumori)
02:41 PM Feature #5360 (Feedback): BasicObject#binding
Can you elaborate? nobu (Nobuyoshi Nakada)
10:57 AM Feature #5360 (Feedback): BasicObject#binding
For meta-programming purposes I think there needs to be a way to get a BasicObject's binding.
trans (Thomas Sawyer)
11:05 AM Feature #5361 (Rejected): Lice?
Err... why is there a new String method for getting the lice of bytes?
'hello'.byteslice(2, 2) # => "ll"
I d...
trans (Thomas Sawyer)
09:46 AM Bug #5358: YAML 中のタグの扱いについて
ありがとうございます。確かに教えてもらった通りになりました。
上記はつまり以下という事でいいですか?
* !str は Ruby では特別扱いする(ただのローカルタグとして扱う)
* !<tag:yaml.org,200...
sho-h (Sho Hashimoto)
03:12 AM Bug #5358: YAML 中のタグの扱いについて
これは syck のバグです。Ruby 1.9.2 で最初に require 'psych' と書いてから、require 'yaml' と書けば、バグは発生しません。
例:
ruby-1.9.2-p290 :001 > ...
tenderlovemaking (Aaron Patterson)
02:21 AM Bug #5358 (Closed): YAML 中のタグの扱いについて
http://yaml.org/ によると、以下はいずれも同じグローバルタグを指定してると思うのですが、結果が異なります。
YAML.load("--- !<tag:yaml.org,2002>:str foo")
#...
sho-h (Sho Hashimoto)
05:25 AM Feature #5352: How about using <> to represent Here Document?
Joey Zhou wrote:
> Unlike Perl, in which "<>" is a very very frequently used operator to read lines from a filehandl...
nobu (Nobuyoshi Nakada)
05:21 AM Revision dc119662 (git): * 2011-09-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:21 AM Revision a49bd026 (git): merges r33291 from trunk into ruby_1_9_3.
--
* parse.y (parser_data_type): inherit the core type in ripper so
that checks in core would work. [ruby-core:395...
yugui (Yuki Sonoda)
05:20 AM Revision 48ddab1e (git): * 2011-09-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:20 AM Revision 76822e87 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

09/23/2011

11:43 PM Bug #5350: WeakRef で謎の NoMethodError
@@final内でのMutex#synchronizeをやめる(添付のpatch1.diff)か、Mutexのロック前にGC.disableして解放後にenableする(patch2)かすれば再現しなくなりました。 Glass_saga (Masaki Matsushita)
11:23 PM Bug #5350: WeakRef で謎の NoMethodError
書こうと思っていて忘れたので追記.
どうやらmutex.synchronize中に何かの拍子でfinalizerが走り,そのfinalizerの中で同じmutexをsynchronizeすると起こってしまう模様.
そしてさ...
sorah (Sorah Fukumori)
11:13 PM Bug #5350: WeakRef で謎の NoMethodError
a = Object.new
mutex = Mutex.new
ObjectSpace.define_finalizer(a) {
begin
mutex.synchronize { p "hi" }
re...
sorah (Sorah Fukumori)
10:45 PM Bug #5350: WeakRef で謎の NoMethodError
調査結果を報告します.
再現コードさらに短縮--
require "weakref"
class Foo
def initialize
@hoge = "fuga"
end
attr_...
sorah (Sorah Fukumori)
08:17 PM Bug #5350: WeakRef で謎の NoMethodError
=begin
もう少しシンプルなコードにしてみました。
大量のWeakRefオブジェクトを生成すると、たまに正しく参照できない事があるようです。
require "weakref"

class Foo
d...
Glass_saga (Masaki Matsushita)
08:47 PM Bug #5269: All ThreadError in PStore transaction will be caught and replaced with PStore::Error
I amended the patch.
Rescue modifier can't be specified exception class to catch.
Glass_saga (Masaki Matsushita)
07:02 PM Bug #5357 (Closed): Indentation of nested operators should nest
Hi!
Currently,
```ruby
return if
hash.
values_at(:a, :b, :c).
reject{ |e| e.nil? or e.empty? }.
...
now (Nikolai Weibull)
06:59 PM Bug #5356 (Third Party's Issue): Add ? to ruby-operator-re
Hi!
ruby-operator-re should include ? so that ending a line with ? indents the following lines an additional level...
now (Nikolai Weibull)
01:51 PM Bug #4961 (Closed): [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
This issue was solved with changeset r33315.
Martin, thank you for reporting this issue.
Your contribution to Ruby is...
Anonymous
12:24 PM Bug #5336: [PATCH] test_ssl_session: wait for callbacks to run in server thread
When looping I encountered the same behaviour as Eric.
With his patch the problem is now gone.
MartinBosslet (Martin Bosslet)
12:14 PM Bug #5336 (Closed): [PATCH] test_ssl_session: wait for callbacks to run in server thread
This issue was solved with changeset r33311.
Eric, thank you for reporting this issue.
Your contribution to Ruby is g...
Anonymous
11:53 AM Bug #5355 (Closed): Sync_mにBug #5195やBug #5258と同様のバグ
=begin
Sync_mにもBug #5195やBug #5258と同様のバグがあります。
require 'sync'

class Foo; include Sync_m; end

foo = Foo...
Glass_saga (Masaki Matsushita)
10:53 AM Feature #5352: How about using <> to represent Here Document?
On Fri, Sep 23, 2011 at 7:08 AM, Martin Dürst <[email protected]> wrote:
[...]
> If anything is done in this...
yeban (Anurag Priyam)
10:37 AM Feature #5352: How about using <> to represent Here Document?
If anything is done in this direction, I'd prefer
```ruby
str = <>SECT1.upcase + <>SECT2.downcase
```
over...
duerst (Martin Dürst)
09:53 AM Bug #5353: TLS v1.0 and less - Attack on CBC mode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(2011/09/23 9:25), Hiroshi Nakamura wrote:
> For existing TLS...
Anonymous
09:29 AM Bug #5353: TLS v1.0 and less - Attack on CBC mode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(2011/09/23 1:14), Martin Bosslet wrote:
> A well-known vulne...
Anonymous
01:14 AM Bug #5353 (Closed): TLS v1.0 and less - Attack on CBC mode
A well-known vulnerability of TLS v1.0 and earlier has recently gained some attention:
http://www.theregister.co.u...
MartinBosslet (Martin Bosslet)
07:57 AM Bug #5354 (Closed): Module#remove_const documentation is confusing
=begin
The documentation for Module#remove_const says:
> Removes the definition of the given constant, returning ...
agrimm (Andrew Grimm)
05:21 AM Revision 3a163623 (git): * ext/openssl/ossl_asn1.c: remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
05:17 AM Revision 4d752775 (git): * ext/openssl/ossl_asn1.c
ext/openssl/ossl_pkey.c: Remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@3...
MartinBosslet (Martin Bosslet)
04:56 AM Revision 387b4169 (git): * backport r33315 from trunk.
* test/openssl/test_ssl_session.rb: execute test_session_exts_read
only for OpenSSL versions >= 0.9.8k. Thanks, Eri...
MartinBosslet (Martin Bosslet)
04:51 AM Revision e2694c59 (git): * test/openssl/test_ssl_session.rb: execute test_session_exts_read
only for OpenSSL versions >= 0.9.8k. Thanks, Eric Wong, for
reporting this.
[Bug #4961] [ruby-core:37726]
git-s...
MartinBosslet (Martin Bosslet)
03:22 AM Revision 58d30b96 (git): * 2011-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:22 AM Revision b3e0a543 (git): * backport r33311 from trunk.
* test/openssl/test_ssl_session.rb: ensure server calls callbacks in
test_ctx_server_session_cb. Thanks to Eric Won...
MartinBosslet (Martin Bosslet)
03:14 AM Revision 4c3f08ca (git): * 2011-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:14 AM Revision e3af0655 (git): * test/openssl/test_ssl_session.rb: ensure server calls callbacks in
test_ctx_server_session_cb. Thanks to Eric Wong for the patch.
[Bug #5336] [ruby-core:39619]
git-svn-id: svn+ssh:...
MartinBosslet (Martin Bosslet)

09/22/2011

11:16 PM Feature #5352 (Rejected): How about using <> to represent Here Document?
"<<" is a frequently used method in text manipulation. Meanwhile, it's also the beginning token of a here-document.
...
yimutang (Joey Zhou)
01:53 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
A basis that sums to unity reduces error, due to convex hull property:

int n; double min, max;
for ( int i = 0; ...
Anonymous
12:12 PM Bug #4961 (Assigned): [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7
Thanks Eric, I'll try to sort out the correct version of 0.9.8! MartinBosslet (Martin Bosslet)
10:45 AM Revision 010c8e59 (git): merge revision(s) 33307:
* thread_pthread.c (ubf_select): activate timer thread when interrupt
blocking thread.
A patch cr...
kosaki (Motohiro KOSAKI)
06:48 AM Bug #5350 (Closed): WeakRef で謎の NoMethodError
添付のようなスクリプトを r18232 以降の ruby 1.9 で走らせると、以下のように
RefError ではなく NoMethodError が上がってくる、ということが起きます。
( value メソッドを呼ぶ直前に w...
metanest (Makoto Kishimoto)
05:20 AM Bug #5349 (Closed): Add back documentation for Proc#call and Proc#[]
When matz added support for Proc#=== (https://github.com/akahn/ruby/commit/dd27b8f4577a96385a29d91e4bd75fb547213fc9),... akahn (Alexander Kahn)
04:23 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
Tomoyuki Chikanaga <[email protected]> wrote:
> To cover this race condition, ubf_select() also call
> add_s...
normalperson (Eric Wong)
02:53 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
(2011/09/21 9:38), Tomoyuki Chikanaga wrote:
>> Could you commit it? Maybe 1.9.3 also needs this patch. But I'm...
ko1 (Koichi Sasada)
02:02 AM Bug #5343 (Closed): Unexpected blocking behavior when interrupt Socket#accept
This issue was solved with changeset r33307.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby ...
nagachika (Tomoyuki Chikanaga)
01:38 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
Koichi Sasada wrote:
> Could you commit it? Maybe 1.9.3 also needs this patch. But I'm not
> sure how to commit...
nagachika (Tomoyuki Chikanaga)
02:51 AM Bug #5348 (Closed): test/rubygems/test_gem_indexer.rb leaves temporary directory
=begin
setup in test_gem_indexer.rb changes @tempdir, so teardown fails to clean it properly.
$ mkdir ~/tmp/gem...
nobu (Nobuyoshi Nakada)
01:34 AM Bug #5333 (Third Party's Issue): Coverage library giving wrong results
Hello,
Some people told me that the issue reproduces on os x. Thanks!
@nagachika, @n0kada and I investigated t...
mame (Yusuke Endoh)

09/21/2011

11:23 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
On 21 September 2011 14:25, masa <[email protected]> wrote:
> I haven't explained the reason of the error est...
hramrach (Michal Suchanek)
09:29 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
I haven't explained the reason of the error estimation in
Range#step for Float;

double n = (end - beg)/...
masa16 (Masahiro Tanaka)
07:23 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
2011/9/20 Tanaka Akira <[email protected]>:
> However the algorithm doesn't solve [ruby-core:39602] and [ruby-core:3960...
masa16 (Masahiro Tanaka)
11:27 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
I made a patch which fixes following 3 cases:
* the error of loop count
* duplicated values from underflow
* exces...
naruse (Yui NARUSE)
05:53 PM Revision 64b7b548 (git): * vm_insnhelper.c (vm_call_cfunc): suppress a warning. note that
`volatile type *var' doesn't make var itself volatile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33309 b2dd0...
nobu (Nobuyoshi Nakada)
05:02 PM Revision 7f4c92c4 (git): * 2011-09-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:02 PM Revision f80896c2 (git): * thread_pthread.c (ubf_select): activate timer thread when interrupt
blocking thread.
A patch created by Koichi Sasada. [ruby-core:39634] [Bug #5343]
to cover race condition, timer t...
nagachika (Tomoyuki Chikanaga)
04:36 PM Feature #5346 (Rejected): Please Reopen Issue #4893
naruse (Yui NARUSE)
04:10 PM Feature #5346 (Rejected): Please Reopen Issue #4893
=begin
Please reopen issue #4893.
=end
lazaridis.com (Lazaridis Ilias)
04:11 PM Feature #4893: Literal Instantiation breaks Object Model
=begin
related issue: #5346
=end
lazaridis.com (Lazaridis Ilias)
01:53 PM Bug #5345 (Closed): error running make for 1.9.2-p290: Generating RI => 'marshal data too short'
It sounds like an RHEL 5.5 specific issue, and seems already fixed. nobu (Nobuyoshi Nakada)
11:40 AM Bug #5345 (Closed): error running make for 1.9.2-p290: Generating RI => 'marshal data too short'
Can't successfully build ruby 1.9.2-p290 from a git clone on RedHat Enterprise 5.5, make fails while generating RI wi... stepheneb (Stephen Bannasch)
09:53 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
Thanks Eric and Chikanaga-san.

Could you commit it? Maybe 1.9.3 also needs this patch. But I'm not
sure how...
ko1 (Koichi Sasada)
09:25 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
Hi, sasada san.
With your patch, over 60000 times trials pass successfully.
Your patch works fine for me too.
Than...
nagachika (Tomoyuki Chikanaga)
05:59 AM Bug #5343: Unexpected blocking behavior when interrupt Socket#accept
SASADA Koichi <[email protected]> wrote:
> (2011/09/20 2:22), Tomoyuki Chikanaga wrote:
> > I guess this is because ...
normalperson (Eric Wong)
09:25 AM Feature #4830: Provide Default Variables for Array#each and other iterators
=begin
For a simple case, such as
(({some_array.map { foo(it) }.select { bar(it) }.each { baz(it) }}))
You ca...
agrimm (Andrew Grimm)
07:36 AM Feature #4830: Provide Default Variables for Array#each and other iterators
I agree with Adam.
In my opinion, this would be "convention over configuration" pushed to extreme.
A person seeing fo...
alexeymuranov (Alexey Muranov)
09:14 AM Bug #5344 (Closed): Clarified Array.new Documentation
Main comment didn't match the examples. Show output of the code
examples.
henry.maddocks (Henry Maddocks)
08:02 AM Revision bf8826c5 (git): * 2011-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:02 AM Revision df1a46fd (git): * test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the
behavior of mingw is just same with mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33305 b2...
U.Nakamura
08:02 AM Revision f48ef8bb (git): * test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the
behavior of mingw is just same with mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33305 b2dd03c8-39d4-4d...
U.Nakamura
 

Also available in: Atom