Project

General

Profile

Activity

From 09/08/2011 to 09/14/2011

09/14/2011

11:56 PM Bug #5326 (Rejected): goruby build failed @ ruby_1_9_3
$ make goruby
compiling goruby.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorte...
ayumin (Ayumu AIZAWA)
10:44 PM Bug #5324 (Closed): Bug in CreateChild in win32.c
Revision 31811 by yugui (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31811) which was merged from the trunk contains a bug. It should be lstrlen instead of lstrlenW as its a char* not a wchar_t*. This has caused us... jfrench (James French)
10:39 PM Bug #5323 (Closed): Bug in CreateChild in win32.c
Revision 31811 by yugui (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31811) which was merged from the trunk contains a bug. It should be lstrlen instead of lstrlenW as its a char* not a wchar_t*. This has caused us... jfrench (James French)
10:23 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
On 13 September 2011 17:19, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> Hello,
>
> 2011/9/13 Vit Ondruch <v.ondruch@tiscali.cz>:
>> Please first see the commit [1] and then tell me why the original test case should fail? Actually it fail...
hramrach (Michal Suchanek)
01:02 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Alers, what version of ruby do you use?
1.9.2p290, 1.9.3-preview1, and 1.9.4dev works well:
$ ruby-1.9-head -ve 'p (1...64.quo(10)).step(18.quo(10)).to_a'
ruby 1.9.4dev (2011-09-06 trunk 33199) [x86_64-darwin11.1.0]
[1, (14/5), (...
mrkn (Kenta Murata)
12:48 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Hi Kenta, thanks for the hint.
The bug is about "three-dotted" range, not "double-dotted". Test with Bigdecimal works, with "quo" does NOT, with "quo" using rational lib does.
$ ruby -rbigdecimal -e 'p (BigDecimal("1.0")...BigDecimal("...
alix (Ales Marecek)
12:23 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Hello,

2011/9/13 Vit Ondruch <v.ondruch@tiscali.cz>:
> Please first see the commit [1] and then tell me why the original test case should fail? Actually it fails on i386 and succeeds on x86_64 which is a bit suspicious. So I dig a b...
mame (Yusuke Endoh)
12:03 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Also, you can use Rational:
ruby-1.9-head -ve 'p (1 .. 68.quo(10)).step(19.quo(10)).to_a'
ruby 1.9.4dev (2011-09-06 trunk 33199) [x86_64-darwin11.1.0]
[1, (29/10), (24/5), (67/10)]
-e:1: warning: (...) interpreted as grouped expres...
mrkn (Kenta Murata)
12:01 AM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Hi,
you can use BigDecimal as following:
ruby-1.9-head -rbigdecimal -ve 'p (BigDecimal("1.0")..BigDecimal("6.8")).step(BigDecimal("1.9")).to_a'
ruby 1.9.4dev (2011-09-06 trunk 33199) [x86_64-darwin11.1.0]
-e:1: warning: (...) int...
mrkn (Kenta Murata)
07:14 PM Bug #5322 (Closed): URI.decode_www_form_component very slow with certain inputs
naruse (Yui NARUSE)
06:19 PM Bug #5322: URI.decode_www_form_component very slow with certain inputs
Looks like a duplicate of #5149 to me... regularfry (Alex Young)
06:10 PM Bug #5322 (Closed): URI.decode_www_form_component very slow with certain inputs
When calling the following I get what I'd expect. An error.
URI.decode_www_form_component("aaaaaaaaaaaaaaaaaaaa%")
Here's the IRB output:
ruby-1.9.2-p290 :003 > URI.decode_www_form_component("aaaaaaaaaaaaaaaaaaaa%")
Argument...
rasmusrn (Rasmus Rønn Nielsen)
05:53 PM Bug #1792: Fixnum#& 等が、Rational などを受けつける
Hi,

In message "Re: [ruby-core:39540] [Ruby 1.9 - Bug #1792][Open] Fixnum#& 等が、Rational などを受けつける"
on Wed, 14 Sep 2011 13:28:57 +0900, Kenta Murata <muraken@gmail.com> writes:

|I reopen this ticket because I rethink [ruby...
matz (Yukihiro Matsumoto)
01:28 PM Bug #1792 (Open): Fixnum#& 等が、Rational などを受けつける
I reopen this ticket because I rethink [ruby-core:39491] is bug.
But, unfortunately, I don't know how to fix this.
Using to_int cannot fix the original problem.
May Numeric#coerce is used for bitwise operation?
mrkn (Kenta Murata)
05:53 PM Feature #5310: Integral objects
Hi,

I strongly disagree to use to_int (currently working for integer
conversion) as integral conversion. Note that I don't disagree (yet)
to introduce concept of integrals to Ruby in the future. But
recycling name is not id...
matz (Yukihiro Matsumoto)
10:53 AM Feature #5310: Integral objects
On Tue, Sep 13, 2011 at 5:18 PM, Kenta Murata <muraken@gmail.com> wrote:
> Hi,
>
> On Wednesday, September 14, 2011 at 06:23 , brian ford wrote:
>> There is some inconsistency between your proposal and what has been implemented:...
brixen (Brian Shirai)
09:23 AM Feature #5310: Integral objects
Hi,

On Wednesday, September 14, 2011 at 06:23 , brian ford wrote:
> There is some inconsistency between your proposal and what has been implemented:

We can change the implementation according to the proposal if accepted.
...
mrkn (Kenta Murata)
06:29 AM Feature #5310: Integral objects
Hi,

On Mon, Sep 12, 2011 at 7:30 PM, Kenta Murata <muraken@gmail.com> wrote:
>  I believe you are misreading of the topic.

There is some inconsistency between your proposal and what has been implemented:

# integral.rb
class ...
brixen (Brian Shirai)
05:25 PM Revision 762e4c0c (git): * 2011-09-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:25 PM Revision 2fecb27e (git): Merge branch 'tk_utf8' into trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
01:20 PM Feature #5321 (Rejected): Introducing Numeric#exact? and Numeric#inexact?
Ruby has several numeric classes such as Integer.
These classes are classified whether their instances represent numbers exactly.
According to this, Integer and Rational are exact, and Float and BigDecimal are inexact because they're a...
mrkn (Kenta Murata)
12:23 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
2011/9/13 Eric Wong <normalperson@yhbt.net>:
> Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
>> File old_thread_select.patch added
>>
>> > static void
>> > rb_fd_rcopy(fd_set *dst, rb_fdset_t *src)
>> > {
>> >     size_t size
kosaki (Motohiro KOSAKI)
12:23 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
> BTW, I've checked kosaki-san's patch with x64-mswin64.
> No problem was reported in test.
>
> P.S.
> kosaki-san, I want to add a guard to your patch.
>
> --- thread.c.bak        2011-09-13 03:40:05.948172400 +0900
> +++ thr...
kosaki (Motohiro KOSAKI)
10:36 AM Bug #5193: ruby_thread_data_type linker errors fixed with RUBY_EXTERN
At first, I have to put a disclaimer. The following comment is only my personal opinion, but not commiters consensus.
Symbol exposing doesn't have any regression risk. So, it can be commited into 193 if nobu agreed. But, I strongly ho...
kosaki (Motohiro KOSAKI)
08:25 AM Bug #5193: ruby_thread_data_type linker errors fixed with RUBY_EXTERN
Bringing this one up again - can we get resolution for the 1.9.3 release?
Thanks - Charlie
cfis (Charlie Savage)
09:33 AM Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
> システムに _off_t があったら、__int64 ではなく _off_t を使うようにすればいいんですかね。
> ...
そうですね。
もしくはconfig.hのSIZEOF_OFF_T宣言を無効化出来るとか。
#ifndef SIZEOF_OFF_T
#define SIZEOF_OFF_T 8
#endif
まぁoff_tに限った話でもなさそうですが。
mattn (Yasuhiro Matsumoto)
06:25 AM Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
システムに _off_t があったら、__int64 ではなく _off_t を使うようにすればいいんですかね。
いや、_off64_t か?
naruse (Yui NARUSE)
12:58 AM Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
vimのpatchとしてはそうしました。
https://groups.google.com/d/topic/vim_dev/VM_AgsF1_K4/discussion
ただ、あまりお作法が良いとは思えませんでした。
出来ればどのプロジェクトでも
#undef off_t
しなくても良い形がのぞましいと思ってます的な意味でfeature requestです。:)
mattn (Yasuhiro Matsumoto)
06:04 AM Revision d6693a42 (git): Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
03:40 AM Revision 9151ed22 (git): * configure.in: do not use gcc-4.2 as the default compiler.
* NEWS: describe the issue about Xcode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
02:46 AM Revision fe3306bf (git): merge revision(s) 33266:
* thread.c (rb_fd_rcopy): added an argument guard.
Patch by NAKAMURA Usaku. [Bug #5306] [ruby-core:39435]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:45 AM Revision 9da539cc (git): * 2011-09-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:44 AM Revision d24e1dac (git): * thread.c (rb_fd_rcopy): added an argument guard.
Patch by NAKAMURA Usaku. [Bug #5306] [ruby-core:39435]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
12:54 AM Feature #5315: config.hからコンパイラのバージョンチェックを外して欲しい
残念ながら筋の良いガードの仕方はないです。このあたりはWindowsのDLLの問題ですね。
それでもあえて言えばRubyがランタイムライブラリの生成するオブジェクトを、
I/Fを通じて外と直接やりとりする設計になってるのも筋は良くないね、とは指摘しておきます。
もちろんそんなことでI/Fを変えるのがコストに見合わないことは理解した上での「あえて」です。
kaoriya (Taro MURAOKA)

09/13/2011

11:17 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Hi!
Shyouhei, I can't agree with you. We have some fact that algorithm written in ruby doesn't work. I know this is not the problem of ruby but it is fixable. If we have something like tests there, we run it, what it is for when it fail...
alix (Ales Marecek)
10:13 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Vit Ondruch wrote:
> So what is this feature for if you cannot rely on it nor there is way how to detect it? In this case, please remove such feature.
No. Sorry. Ruby is not designed like that. Ruby's design is that it embraces th...
shyouhei (Shyouhei Urabe)
09:48 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Shyouhei Urabe wrote:
> Vit Ondruch wrote:
> ...
So what is this feature for if you cannot rely on it nor there is way how to detect it? In this case, please remove such feature.
>
> ...
My patch is sufficient to behave consistent...
vo.x (Vit Ondruch)
09:19 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Vit Ondruch wrote:
> Shyouhei Urabe wrote:
> ...
It is a hardware issue. So it is quite natural for one platform behaves differently than another.
> > > Actually it fails on i386 and succeeds on x86_64 which is a bit suspicious.
>...
shyouhei (Shyouhei Urabe)
09:04 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Shyouhei Urabe wrote:
> Vit Ondruch wrote:
> ...
It is a feature I guess, there is even test case for this unfortunately, so why should something pass on one platform and should not pass on another? That doesn't make sense.
> > Actu...
vo.x (Vit Ondruch)
09:00 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Michal Suchanek wrote:
> On 13 September 2011 12:28, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
> ...
As I said, it is i386 or i686 issue, not x86_64.
vo.x (Vit Ondruch)
08:50 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Vit Ondruch wrote:
> Please first see the commit [1] and then tell me why the original test case should fail?
Because no one guarantees that it should pass.
> ...
It is a clear sign that you are "dancing with floats".
As Tomoyo...
shyouhei (Shyouhei Urabe)
08:23 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
On 13 September 2011 12:28, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
> (09/13/2011 06:56 PM), Vít Ondruch wrote:
>> Can somebody please reopen this issue? Since the test suite fix is
>> apparently wrong.
>
> Hi, maybe I'm too...
hramrach (Michal Suchanek)
07:49 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
This [1] is short C reproducer for the issue [2]. You can compare behavior on i386 and x86_64
[1] https://bugzilla.redhat.com/attachment.cgi?id=520087
[2] http://redmine.ruby-lang.org/issues/4576#note-2
vo.x (Vit Ondruch)
07:46 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Please first see the commit [1] and then tell me why the original test case should fail? Actually it fails on i386 and succeeds on x86_64 which is a bit suspicious. So I dig a bit deeper with my colleagues and we found that the test was ... vo.x (Vit Ondruch)
07:29 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
(09/13/2011 06:56 PM), Vít Ondruch wrote:
> Can somebody please reopen this issue? Since the test suite fix is
> apparently wrong.

Hi, maybe I'm too unfamiliar with this area, but can you explain a bit
closer about how the t...
shyouhei (Shyouhei Urabe)
06:59 PM Bug #4576: Range#step miss the last value, if end-exclusive and has float number
Can somebody please reopen this issue? Since the test suite fix is
apparently wrong.
Thank you.
Vit
Anonymous
10:53 PM Feature #5315: config.hからコンパイラのバージョンチェックを外して欲しい
こんにちは、なかむら(う)です。

In message "[ruby-dev:44508] [Ruby 1.9 - Feature #5315] config.hからコンパイラのバージョンチェックを外して欲しい"
on Sep.13,2011 22:08:17, <koron.kaoriya@gmail.com> wrote:
> ダイナミックローディングについては最初から(VimにRubyが組み込まれた時から)なっています。

あれ...
usa (Usaku NAKAMURA)
10:08 PM Feature #5315: config.hからコンパイラのバージョンチェックを外して欲しい
ダイナミックローディングについては最初から(VimにRubyが組み込まれた時から)なっています。
それでも最低限のヘッダーは必要なのでこの問題は起こります。
あとMSVCRTの話は確かにそのとおりで、それらをやり取りするとキツイですね。
逆に言うとそれらをやりとりするようなI/F設計にすべきではないとも言えます。
ただご指摘の通りVimのケースでは少ないか無いでしょう。
いずれにせよコンパイラのバージョンで拒絶するのは筋が違います。
それが解消したあ...
kaoriya (Taro MURAOKA)
09:23 PM Feature #5315: config.hからコンパイラのバージョンチェックを外して欲しい
こんにちは、なかむら(う)です。

In message "[ruby-dev:44500] [Ruby 1.9 - Feature #5315][Open] config.hからコンパイラのバージョンチェックを外して欲しい"
on Sep.13,2011 19:35:15, <koron.kaoriya@gmail.com> wrote:
> なにか理由があってこうなっているのかもしれませんが、

そりゃそうです。


>...
usa (Usaku NAKAMURA)
08:12 PM Feature #5315 (Third Party's Issue): config.hからコンパイラのバージョンチェックを外して欲しい
そちらで配布されているものはRubyの公式な配布物ではありません。
当該サイトの『はじめに』のページに記載されている連絡先までお問い合わせください。
ayumin (Ayumu AIZAWA)
07:35 PM Feature #5315 (Third Party's Issue): config.hからコンパイラのバージョンチェックを外して欲しい
http://www.garbagecollect.jp/ruby/mswin32/ja/
で配布しているrubyで確認したので外しているかもしれません。その場合はあしからず。
問題:
rubyの外部モジュールをコンパイルする際に、ruby本体と異なるバージョンのコンパイラではコンパイルできない
詳細:
上記で配布されているRubyはMSVC9でコンパイルされています。
一方VimなどネイティブでRubyとリンクする外部モジュールをMSVC10でコン...
kaoriya (Taro MURAOKA)
10:51 PM Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
Yasuhiro Matsumoto wrote:
> sys/types.h:
> ...
ruby.hのあとで #undef off_t では回避できませんか。
nobu (Nobuyoshi Nakada)
09:51 PM Bug #5317: rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
ぜんぜんuid_tじゃないですねw off_tでした!
以下、s/uid_t/off_t/g で置き換えて下さい。
mattn (Yasuhiro Matsumoto)
09:47 PM Bug #5317 (Closed): rubyのヘッダファイルを使った拡張を行う際にoff_tの宣言回避をする事が出来ない。
以前、vimのif_ruby(ruby拡張)の修正を担当した時、mingw32でのuid_tの宣言とrubyに同梱されているwin32.hでの宣言に差異があり、リンクされた物がクラッシュするというバグに遭遇しました。
vimでrubyに関連するのはif_ruby.cであり、そのファイルのみがruby.hをincludeしているのですが(他のファイルもruby.hをincludeしろというのは無しです)、別のファイルはmingw32の宣言である
sys/typ...
mattn (Yasuhiro Matsumoto)
10:22 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
ココまでの説明だとなかむら(う)さんの
「リリースでは今後は(パッケージマネージャ絡みの)問題は起こらんから安心しろ」
が一番納得がいきます。
# 私も最初は聞かされた時はそうなるもんだと思いましたから
ただcommitterの方からそうではないんだよという話と、
チケットに残さないと忘れられるだけだよという指摘をいただいたので
こちらで提案したのです。
> ま、根源的な問題として、RubyGems はパッケージマネージャのくせに頻繁にバージョンア...
kaoriya (Taro MURAOKA)
09:29 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
sora_hです.

2011/9/13 Takahiro Kambe <taca@back-street.net>:
> 少なくともバイナリパッケージを使えば、コンパイラのないマシンにも
> さくっとインストールできます。(もちろん、コンパイル済みのバイナ
> リを含んだgemを作ればいいですが、多くのOSに対応したい場合はなか
> なか難しい面もあるでしょう。)

あー,なるほど.それは確かに

--
Shota Fu...
sorah (Sorah Fukumori)
07:53 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
In message <redmine.journal-20775.20110913184916@ruby-lang.org>
on Tue, 13 Sep 2011 18:49:18 +0900,
Shota Fukumori <sorah@tubusu.net> wrote:
> rubygemsはややこしい...
同感。

> OSのパッケージマネージャーとの親和性は結構重要だったりするんだろうか?
> (あまり困ってないからわか...
taca (Takahiro Kambe)
07:41 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
意外と事実関係が複雑なのでまずまとめますと、
ports の元の状態はこうでした。
* lang/ruby18 (1.8.7)
* devel/ruby-gems (1.7.1 or 1.7.2)
* www/redmine
で、Rails は 2.3.11 が www/redmine に同梱されていました。
で、最近 /usr/local/bin/ruby の座が 1.9 に明け渡されたり、www/rubygems-rails が 3 になったりし...
naruse (Yui NARUSE)
06:53 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
こんにちは、なかむら(う)です。

In message "[ruby-dev:44495] [Ruby 1.9 - Feature #5314] パッケージマネージャをコアリリースに含めて欲しい"
on Sep.13,2011 18:30:14, <koron.kaoriya@gmail.com> wrote:
> おおよそ満足なんですが話に聞くところだと
>
> http://twitter.com/#!/mrkn/status/...
usa (Usaku NAKAMURA)
06:53 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
少しだけ書きます。

In message <redmine.journal-20772.20110913182436@ruby-lang.org>
on Tue, 13 Sep 2011 18:24:39 +0900,
Taro MURAOKA <koron.kaoriya@gmail.com> wrote:
> Issue #5314 has been updated by Taro MURAOKA.
>
>
> http:...
taca (Takahiro Kambe)
06:49 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
Shyouhei Urabe wrote:
> お気持ちは察するものの、portsで入れたredmineが動かなくなった件で責められるべきなのはportsかなあと思います。
> ...
はい.同意見です.
Rubyコアチームが新たにパッケージマネージャを開発するにしても
Rubygemsが現在メジャーになってるわけですし,
rubygemsじゃないのを新たに開発したりするのはどうなんだかなあ,そこに人的リソースを割くメリットはあるのかなあ,
ってかんじです....
sorah (Sorah Fukumori)
06:46 PM Feature #5314 (Third Party's Issue): パッケージマネージャをコアリリースに含めて欲しい
お気持ちは察するものの、portsで入れたredmineが動かなくなった件で責められるべきなのはportsかなあと思います。
rubygemsにはrubygemsの流儀があるわけです。rubygemsにおいて後方互換性が問題にならないのは、長所でもある。その流儀は、portsの流儀とは違うのでしょう。portsはよく知りませんが、rubygemsを抱え込む決断をしたのなら、rubygemsを「乗りこなしてみせる」必要があるんじゃないかなあ。
shyouhei (Shyouhei Urabe)
06:30 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
Usaku NAKAMURA wrote:
> Ruby 1.9には現在1.9.1および1.9.2という2つのバージョン系列が存在して
> ...
おおよそ満足なんですが話に聞くところだと
http://twitter.com/#!/mrkn/status/113504956631359488
rubygems側のバージョンアップに伴うリリースマネージメントが難しそうな印象を持ち
かつ報告しなければどうにも動かんよとのことだったので
http:/...
kaoriya (Taro MURAOKA)
06:24 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
http://www.kaoriya.net/blog/201109/20110913
ネタ元としてはココで書いたように私の体験に基づいてまして、まったくRubyのせいではないのですが、
ruby-gemsが1.7から1.8に上がった際に、それに強く依存したrails 2.3.11を含むredmine 1.2.1が動かなくなる
という事象に遭遇しています。
# 重要なのは私の問題を解決することではなく、こういうことが今後起こらないようにするにはという点です
...
kaoriya (Taro MURAOKA)
06:14 PM Feature #5314: パッケージマネージャをコアリリースに含めて欲しい
Ruby 1.9には現在1.9.1および1.9.2という2つのバージョン系列が存在して
それぞれ保守されている(ことになっている)のですが、いずれにもrubygemsという
rubygemsというパッケージマネージャが同梱されていて、1.9.1の場合は
rubygems 1.3.1というバージョンが、1.9.2の場合は1.3.7というバージョンが、
それぞれ最初のリリースから現在までずっと維持されています。
これじゃ不満ってことでしょうか?
usa (Usaku NAKAMURA)
05:49 PM Feature #5314 (Feedback): パッケージマネージャをコアリリースに含めて欲しい
Taro MURAOKA wrote:
> しかしながら過去には代表的なパッケージマネージャ自身が
> ...
すいませんどの話でしたでしょうか? さすがに漠然としすぎていて何とも言えなさすぎます。もう少し具体的に。
shyouhei (Shyouhei Urabe)
05:42 PM Feature #5314 (Third Party's Issue): パッケージマネージャをコアリリースに含めて欲しい
Rubyは素晴らしいパッケージ(ライブラリ)が多いことが魅力の一つです。
その良さの維持には優れたパッケージマネージャが欠かせません。
しかしながら過去には代表的なパッケージマネージャ自身が
バージョンアップに伴い互換性を欠くという問題を起こしたケースがあり、
これではその魅力が損なわれてしまいます。
よって今後そうならないように、コアリリースに安定したパッケージマネージャを含め、
リリース期間中はその安定性を堅持することを提案いたします。
kaoriya (Taro MURAOKA)
06:03 PM Feature #5313 (Assigned): Please drop IRB's version in favour of Ruby version
nobu (Nobuyoshi Nakada)
04:09 PM Feature #5313 (Closed): Please drop IRB's version in favour of Ruby version
It seems that IRB's upstream lives in Ruby's SVN. There is no way how to update IRB separate from Ruby. From that point of view, it would make sense to drop IRB's own version numbers in favour of Ruby versions instead. The IRB reports th... vo.x (Vit Ondruch)
05:30 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> File old_thread_select.patch added
>
> > static void
> > rb_fd_rcopy(fd_set *dst, rb_fdset_t *src)
> > {
> > size_t size = howmany(rb_fd_max(src), NFDBITS) * sizeof(f...
normalperson (Eric Wong)
05:38 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Ok, I rebuilt everything from scratch and did not encounter any errors - sorry for the false alarm. mswin also checked out fine.
We will next test this fix on the original servers where we encountered the problem. If any issues rema...
cfis (Charlie Savage)
03:53 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Hello,

In message "[ruby-core:39483] [Ruby 1.9 - Bug #5306] Application Hangs Due to Recent rb_thread_select Changes"
on Sep.13,2011 01:29:28, <cfis@savagexi.com> wrote:
> File mingw_backtrace.txt added
>
> Thanks for ...
usa (Usaku NAKAMURA)
01:29 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Thanks for all the effort. But sorry, not fixed yet. This version segfaults on MinGW. Trace attached. Will check mswin next. cfis (Charlie Savage)
11:53 AM Feature #5310: Integral objects
I believe you are misreading of the topic.

On Tuesday, September 13, 2011 at 11:03 , brian ford wrote:
> Any object should be allowed to participate in integral operations
> based on the object's implementing #to_int.

My p...
mrkn (Kenta Murata)
11:23 AM Feature #5310: Integral objects
On Mon, Sep 12, 2011 at 6:15 PM, Kenta Murata <muraken@gmail.com> wrote:
>
> Issue #5310 has been reported by Kenta Murata.
>
> ----------------------------------------
> Feature #5310: Integral objects
> http://redmine.ruby...
brixen (Brian Shirai)
10:15 AM Feature #5310 (Assigned): Integral objects
I believe it is ambiguous what object can behave as an integral number.
I don't think the current use of Object#to_int isn't appropriate for this purpose.
The most understandable example is Float#to_int.
It should raise error for al...
mrkn (Kenta Murata)
11:23 AM Bug #1792: Fixnum#& 等が、Rational などを受けつける
On 13/09/2011, at 9:27 AM, SASADA Koichi wrote:
> I find out that bitwise operation doesn't call coerce.
> How to make mimic Integer class?

The short answer: You can't.

The long answer:

You can imitate some of the behaviour o...
cjheath (Clifford Heath)
08:29 AM Bug #1792: Fixnum#& 等が、Rational などを受けつける
I find out that bitwise operation doesn't call coerce.
How to make mimic Integer class?


###

class IntegerMimic
def initialize n
@n = n
end

def to_int
p :to_int
@n
end

def coerce...
ko1 (Koichi Sasada)
08:23 AM Bug #1792: Fixnum#& 等が、Rational などを受けつける
Is it intentional?

###

class IntegerMimic
def initialize n
@n = n
end

def to_int
@n
end
end

obj = IntegerMimic.new(10)

%w(& | ^).each{|sym|
p sym
begin
p(3.send(sym, obj...
ko1 (Koichi Sasada)
11:21 AM Revision 4e7c8bbe (git): * lib/pstore.rb, test/test_pstore.rb: suppress warnings with -v.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:23 AM Bug #5309: 0.6.to_r != "0.6".to_r
2011/9/13 Marc-Andre Lafortune <ruby-core@marc-andre.ca>:
> Use `Float#rationalize` instead of `to_r`, and you will get the same result as `String#to_r`.
> I've argued before that `Float#to_r` should be `Float#rationalize`, though.

...
naruse (Yui NARUSE)
10:23 AM Bug #5309: 0.6.to_r != "0.6".to_r
On Sep 12, 2011, at 2:06 PM, Brian Ford wrote:
> 0.6.to_r != "0.6".to_r
>
> Is this a bug?

Probably not because

0.6.to_r

requires two conversions:

decimal floating point to binary floating point to rationa...
Anonymous
07:38 AM Bug #5309: 0.6.to_r != "0.6".to_r
Use `Float#rationalize` instead of `to_r`, and you will get the same result as `String#to_r`. I've argued before that `Float#to_r` should be `Float#rationalize`, though. marcandre (Marc-Andre Lafortune)
06:35 AM Bug #5309 (Rejected): 0.6.to_r != "0.6".to_r
0.6.to_r is considered as a rational converted from a floating point number 0.5999999999999999777955395074968691915273666381835937500.
"0.6".to_r is considered as Rational(6, 10).
So they are slightly different number.
naruse (Yui NARUSE)
03:06 AM Bug #5309 (Rejected): 0.6.to_r != "0.6".to_r
0.6.to_r != "0.6".to_r
Is this a bug?
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
$ irb
ruby-1.9.2-p290 :001 > 0.6.to_r
=> (5404319552844595/9007199254740992)
ruby-1.9.2-p290 :002 > "0.6".to_...
brixen (Brian Shirai)
09:30 AM Bug #5273 (Rejected): Float#round returns the wrong floats for higher precision
r33186 naruse (Yui NARUSE)
06:02 AM Revision f7081431 (git): * lib/pstore.rb (PStore): always open in binary mode even if
default encodings are set. [Bug #5311] [ruby-core:39503]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:30 AM Revision b7f3e44e (git): * 2011-09-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:29 AM Revision 566256a5 (git): * NEWS: wrote about rb_reserved_fd_p() and objspace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)

09/12/2011

08:42 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
committed both trunk and ruby_1_9_3.
kosaki (Motohiro KOSAKI)
08:36 PM Bug #5306 (Closed): Application Hangs Due to Recent rb_thread_select Changes
This issue was solved with changeset r33256.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_thread_select): fix to ignore an argument
mod...
kosaki (Motohiro KOSAKI)
08:23 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> Attached new patch. It works both linux and windows. Can you please
> review it?

Thanks! I can confirm it's good on Linux, Charlie?
normalperson (Eric Wong)
02:27 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
> static void
> ...
If size > sizeof(fd_set), this code makes memory corruption.
> static void
> ...
Bad indentation of coding style violation.
Also, if src->fdset->fd_count > FD_SETSIZE, we should return an error or raise an exc...
kosaki (Motohiro KOSAKI)
08:38 PM Revision faa2bef4 (git): * 2011-09-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:38 PM Revision 1796817e (git): * io.c (Init_IO): update BINARY comment. it should not change the
encoding of the result to ASCII-8BIT. [ruby-talk:387719]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
01:24 PM Revision 53fd35c3 (git): * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_send): fix message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:51 AM Revision bb4dcd55 (git): * Backport r33231.
* thread.c (rb_thread_select): fix a typo to initialize efds
properly. [Bug #5299] [ruby-core:39380]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
11:41 AM Revision 167f6b29 (git): merge revision(s) 33256:
* thread.c (rb_thread_select): fix to ignore an argument
modification of rb_thread_fd_select().
based on a patch by Eric Wong. [Bug #5306] [ruby-core:39435]
* thread.c (rb_fd_rcopy): New. for reverse fd copy....
kosaki (Motohiro KOSAKI)
11:36 AM Revision 2c9375ba (git): * thread.c (rb_thread_select): fix to ignore an argument
modification of rb_thread_fd_select().
based on a patch by Eric Wong. [Bug #5306] [ruby-core:39435]
* thread.c (rb_fd_rcopy): New. for reverse fd copy.
* test/-ext-/old_thread_select/test_old_thread_select.rb
(test_old_select_false_po...
kosaki (Motohiro KOSAKI)
04:38 AM Revision 4705fcc3 (git): * README.EXT, README.EXT.ja (2.2.2), parse.y (rb_check_id): add
documents for rb_check_id().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:54 AM Revision 821ae882 (git): * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
open files in binary mode.
see more details in https://github.com/jimweirich/rake/issues/74
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:42 AM Revision a458e72e (git): * test/ruby/test_exception.rb (TestException#test_exit_success_p):
assert also the cases when exiting with true and false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:40 AM Revision 704830be (git): * 2011-09-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:40 AM Revision 11616167 (git): * lib/test/unit/assertions.rb (assert_send): make arguments in
the default message clearer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:29 AM Bug #5305: YAML::DBM#update、#replace のコメントの間違いを修正する
Hi Guys,

The comments of YAML::DBM#update and #replace says it requires only
'each and each_pair', but they are using 'keys.each' actually.

I think the comment should be modified, so I hope someone provide a draft.

Fol...
ayumin (Ayumu AIZAWA)
12:55 AM Bug #5151: test/socket/test_socket.rb fail when udp connection failed
Wifiをオフにしてスタンドアロン状態でテストしたら再現しなくなりました。 ayumin (Ayumu AIZAWA)

09/11/2011

11:57 PM Feature #5120: String#split needs to be logical
Adam Prescott wrote:
>
> ...
Thanks for pointing out str.chars.to_a, but i think that it would be more convenient to have a single method that would do this. I understand that this would break existing code, i was discussing the iss...
alexeymuranov (Alexey Muranov)
10:23 PM Feature #5120: String#split needs to be logical
On Sun, Sep 11, 2011 at 1:49 PM, Alexey Muranov
<muranov@math.univ-toulouse.fr> wrote:
> 2. a separate method for getting the array of letters (#letters?) should be implemented, split on the empty string should raise an error
> (or o...
aprescott (Adam Prescott)
09:49 PM Feature #5120: String#split needs to be logical
I would like to summarize my feature request:
1. trailing empty fields should not be discarded
(it would make sense, however, to have a similar method which splits and discards initial and trailing empty fields, and returns as the fi...
alexeymuranov (Alexey Muranov)
05:15 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Ah, totally missed that r - its not obvious if you aren't looking for it.
Patch doesn't compile on Windows:
thread.c
./../thread.c(2466) : error C2143: syntax error : missing ')' before ';'
NMAKE : fatal error U1077: '"c:\Program...
cfis (Charlie Savage)
04:23 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Charlie Savage <cfis@savagexi.com> wrote:
> Issue #5306 has been updated by Charlie Savage.

> Hmm, I take is this is against head? On the 1.9.3 branch there is
> already this method (line 2384):

It should apply cleanly to...
normalperson (Eric Wong)
03:56 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Hmm, I take is this is against head? On the 1.9.3 branch there is already this method (line 2384):
void
rb_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
The patch then adds this right below it (line 2399):
static void
...
cfis (Charlie Savage)
03:53 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Charlie Savage <cfis@savagexi.com> wrote:
> I can test on windows - I have mswin and mingw builds. How to test
> though? Are there any tests in the test suite I should run to verify?
> Would love to run the whole test suite, but ...
normalperson (Eric Wong)
03:40 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Thanks for the explanations.
I can test on windows - I have mswin and mingw builds. How to test though? Are there any tests in the test suite I should run to verify? Would love to run the whole test suite, but sadly that doesn't wor...
cfis (Charlie Savage)
03:23 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Charlie Savage <cfis@savagexi.com> wrote:
> Ok, some questions so I can understand this code:
>
> How is the false-positive happening?

rb_thread_select() needs to modify the arguments passed to it (and clear
out not-ready ...
normalperson (Eric Wong)
03:12 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Hopefully a better patch is attached. I have no way of testing on non-Linux,
but I did test successfully without HAVE_RB_FD_INIT defined. _WIN32 tester (and
potential fixer) is needed.
normalperson (Eric Wong)
02:56 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Ok, some questions so I can understand this code:
How is the false-positive happening?
Why does this break on non-linux platforms?
And then obviously, what is the next step?
Thanks for looking into this and the quick responses.
cfis (Charlie Savage)
11:59 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
2011/9/11 Eric Wong <normalperson@yhbt.net>:
>
> Issue #5306 has been updated by Eric Wong.
>
> File 0001-thread.c-rb_thread_select-mark-original-fd_sets-prop.patch added
>
> Thanks for the straces, I was able to tell the EM...
kosaki (Motohiro KOSAKI)
09:30 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Thanks for the straces, I was able to tell the EM pipe was stuck on a
false-positive and calling a blocking read() on a pipe that had no data.
Attached is a patch which should fix the issue, sorry for the bug :x
normalperson (Eric Wong)
10:56 AM Revision e0eaa117 (git): * 2011-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:56 AM Revision 921aed77 (git): merges r33201 from trunk into ruby_1_9_3.
--
* 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/branches/ruby_1_9_3@33249 b2dd03c8-39d4-4d8f-9...
yugui (Yuki Sonoda)
09:36 AM Revision 776227cb (git): * ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:24 AM Bug #5307 (Closed): Matrix & subclasses
Initially from http://stackoverflow.com/questions/6064902/copy-inheritance-of-ruby-matrix-class-core-std-lib
Fixed in r33246.
marcandre (Marc-Andre Lafortune)
05:22 AM Bug #5307 (Closed): Matrix & subclasses
Matrix doesn't deal properly with subclasses:
Class.new(Matrix)[[42]].class # => Matrix
marcandre (Marc-Andre Lafortune)
12:23 AM Bug #5151: test/socket/test_socket.rb fail when udp connection failed
2011/9/10 Ayumu AIZAWA <ayumu.aizawa@gmail.com>:
>
> 何が原因なんだろうか ... チェックすべき設定などあったらご教示いただけませんでしょうか。

boron での経験について述べれば、パケットフィルタとか。
--
[田中 哲][たなか あきら][Tanaka Akira]
akr (Akira Tanaka)

09/10/2011

11:17 PM Bug #5151: test/socket/test_socket.rb fail when udp connection failed
あいざわです。
SnowLeopard に固有の問題かと思ったのですが、友人の協力を得て別のマシンでテストしたところ再現しませんでした。
何が原因なんだろうか ... チェックすべき設定などあったらご教示いただけませんでしょうか。
$ make test-all TESTS='-v test/socket/test_socket.rb'
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --e...
ayumin (Ayumu AIZAWA)
10:29 PM Bug #5208: \b and \B don't match properly
今回は見送りという点については仕方ないと思います。
マージについてですが、とりあえずOnigmo 5.11.2とRubyの鬼車をマージしたものを作ってみました。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-1.9.x
Rubyのビルド環境は用意していないので、Rubyに組み込んでの確認はできていません。
どなたか組み込んで動作確認していただけると幸いです。
k_takata (Ken Takata)
09:07 PM Bug #5197 (Rejected): at_exit order has changed in 1.9.3dev32413
> What I need is this:
> ...
Yeah, It's clearly bad code.
quote from [ruby-core:35254]. Matz wrote,
> OK, I choose C's behavior. Although I don't recommend to rely too
> ...
I'm stand aside matz. don't do that.
> which I w...
kosaki (Motohiro KOSAKI)
08:44 PM Bug #5244: Continuation causes Bus Error on Debian sparc
It fails with gcc 4.4 and 4.5 too (in addition to 4.6). lucas (Lucas Nussbaum)
04:45 PM Bug #5244: Continuation causes Bus Error on Debian sparc
I took a look on a Debian porterbox.
When building everything with -O2, except cont.c with -O0, it works.
With cont.c built with -O1, it fails.
However, what I don't understand is that building with -O0 and all the optimizations t...
lucas (Lucas Nussbaum)
03:51 PM Bug #5244: Continuation causes Bus Error on Debian sparc
The problem is that it's quite hard to investigate this using qemu, because Debian dropped support for sparcv8 after etch, and qemu doesn't have working support for anything > sparcv8. lucas (Lucas Nussbaum)
08:23 PM Revision 1b278015 (git): * 2011-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:23 PM Revision 506b2538 (git): * lib/matrix.rb: Deal with subclasses of Matrix [redmine #5307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:17 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
And a bit more info. Running the datagrams test under GDB.
$gdb --args ruby -I.:lib:tests tests/test_epoll.rb -n test_datagrams
(gdb) run
... hangs ...
hit ctrl+c
Program received signal SIGINT, Interrupt.
0x000000375200d91b in read (...
cfis (Charlie Savage)
05:00 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Ok, on the first test, strange results. Running this command:
strace -f -v ruby -I.:lib:tests tests/test_epoll.rb -n test_datagrams
Hangs the test as expected. But running this command:
strace -f -v ruby -I.:lib:tests tests/test_epo...
cfis (Charlie Savage)
03:29 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Charlie Savage <cfis@savagexi.com> wrote:
> Sorry, these machines are actuall CentOS 5.6. The latest patches were
> applied via yum update about a week ago, so its pretty up-to-date.

OK, I'm closer with 2.6.18-238.9.1.el5xen b...
normalperson (Eric Wong)
12:59 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Hi Eric,
>> It causes eventmachine to hang on CentOS 5.5.
Sorry, these machines are actually CentOS 5.6. The latest patches were applied via yum update about a week ago, so its pretty up-to-date.
> ...
So what we see is this test ha...
cfis (Charlie Savage)
12:53 PM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Charlie Savage <cfis@savagexi.com> wrote:
> It causes eventmachine to hang on CentOS 5.5. Not sure what the issue
> is, but its easily reproduced by by running the test
> eventmachine/tests/test_epoll.rb.

I have CentOS 5.4...
normalperson (Eric Wong)
11:28 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
Unfortunately it is not. That was the first problem - and resulted in segmentation faults. We manually backported the fix for #5299 to our local copy of ruby 193. Once we did that, it fixed the segmentation faults, but resulted in this... cfis (Charlie Savage)
09:34 AM Bug #5306: Application Hangs Due to Recent rb_thread_select Changes
I think it's duplicated with 5299. kosaki (Motohiro KOSAKI)
08:51 AM Bug #5306 (Closed): Application Hangs Due to Recent rb_thread_select Changes
This commit:
4e9438bc9153f7a1f4ea0af85c8dbe359e1a55d8
Changed the implementation of rb_thread_select.
It causes eventmachine to hang on CentOS 5.5. Not sure what the issue is, but its easily reproduced by by running the test ...
cfis (Charlie Savage)
03:53 PM Bug #5273: Float#round returns the wrong floats for higher precision
(2011/09/10 10:00), Marc-Andre Lafortune wrote:
>
> Issue #5273 has been updated by Marc-Andre Lafortune.
>
> Status changed from Rejected to Open
>
> Hi,
>
> Yui NARUSE wrote:
>> Additional to say, 2.5e-22 express...
naruse (Yui NARUSE)
10:00 AM Bug #5273 (Open): Float#round returns the wrong floats for higher precision
Hi,
Yui NARUSE wrote:
> Additional to say, 2.5e-22 express the range
> ...
That's a good point.
This doesn't make the other examples right though (e.g. 3.0e-31.round(31) should be equal to itself, not to 3.0000000000000003e-31)
...
marcandre (Marc-Andre Lafortune)
01:43 PM Bug #5302 (Closed): Two small documentation fixes in dir.c
This issue was solved with changeset r33244.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* dir.c: Two small documentation fixes. [Bug #5302]
ayumin (Ayumu AIZAWA)
10:34 AM Revision 39ec2f68 (git): Revert test fixes.
This reverts r33233, r33234, and r33235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:34 AM Feature #5291 (Closed): Enabling GC Profiler GC_PROFILE_MORE_DETAIL and CALC_EXACT_MALLOC_SIZE
This issue was solved with changeset r33243.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (GC_PROFILE_MORE_DETAIL, CALC_EXACT_MALLOC_SIZE):
def...
ko1 (Koichi Sasada)
08:32 AM Bug #5303 (Closed): parse.y relies on $$ = $1 before action routines [PATCH]
This issue was solved with changeset r33242.
Michael, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (bv_decls): parse.y relies on $$ = $1 before action
...
matz (Yukihiro Matsumoto)
07:56 AM Bug #5305 (Closed): YAML::DBM#update、#replace のコメントの間違いを修正する
YAML::DBM#update、#replace のコメントに each メソッドや each_pair
メソッドがあれば引数として指定できる旨の記述がありますが、実際には
keys.each しているため、正しくないようです。
sho-h (Sho Hashimoto)
05:32 AM Bug #5304 (Rejected): Array#pack handles objects for eg format 'E' differently than 1.8
In 1.9, Array#pack when passed an object that defines #to_f and one of the Float formats raises a TypeError. This is a change from 1.8. The code in 1.9 calls rb_to_float()
# 1.9
VALUE
rb_to_float(VALUE val)
{
if (TYPE(val) =...
brixen (Brian Shirai)
04:43 AM Revision 35551be6 (git): * dir.c: Two small documentation fixes. [Bug #5302]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
12:23 AM Bug #5240: Hang when using threads + forks on Debian GNU/kFreeBSD
Hi,

(2011/08/29 23:08), Petr Salinger wrote:
> The problem is that place in main.c (as shown in 2nd diff) does not link.
> Please could you advice where to put this part of code. After that I would like to test it, whether it r...
ko1 (Koichi Sasada)

09/09/2011

11:38 PM Bug #5303 (Closed): parse.y relies on $$ = $1 before action routines [PATCH]
In perusing parse.y, I came across this pair of action routines:
bv_decls : bvar
/*%c%*/
/*%c
{
$$ = rb_ary_new3(1, $1);
}
%*/
| bv_decls ',' bvar
/*%c%*/
/*%c
{
rb_ar...
adgar (Michael Edgar)
11:34 PM Revision 49042ae8 (git): * gc.c (GC_PROFILE_MORE_DETAIL, CALC_EXACT_MALLOC_SIZE):
define macros only if they are not defined.
fixes: [Ruby 1.9 - Feature #5291]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:32 PM Revision 6126c50a (git): * parse.y (bv_decls): parse.y relies on $$ = $1 before action
routines. a patch from Michael Edgar. [Bug #5303]
[ruby-core:39429]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
11:14 PM Revision cf7d76f0 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:29 PM Bug #5273: Float#round returns the wrong floats for higher precision
One more additional to say, those arguments depend on IEEE 754. naruse (Yui NARUSE)
10:26 PM Bug #5273 (Rejected): Float#round returns the wrong floats for higher precision
Additional to say, 2.5e-22 express the range
from 0.0000000000000000000002499999999999999534
to__ 0.0000000000000000000002500000000000000003
The center of them is 0.0000000000000000000002499999999999999769.
So of course 0.000000000...
naruse (Yui NARUSE)
06:24 PM Bug #5273: Float#round returns the wrong floats for higher precision
This seems not a bug:
printf "%.40f\n", 2.5e-22 #=> 0.0000000000000000000002499999999999999769
naruse (Yui NARUSE)
10:06 PM Bug #5267 (Closed): BigDecimal#sqrt の rdoc で、引数は必須
This issue was solved with changeset r33238.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment.
...
ayumin (Ayumu AIZAWA)
05:07 PM Bug #5240 (Assigned): Hang when using threads + forks on Debian GNU/kFreeBSD
sasada-san, could you please tell us your opinion?
kosaki (Motohiro KOSAKI)
03:44 PM Bug #5240: Hang when using threads + forks on Debian GNU/kFreeBSD
Dear Ruby developers,
Could you comment on Petr Salinger's patch, and especially about where to put the pthread_atfork() call?
Thanks
lucas (Lucas Nussbaum)
04:44 PM Revision 8ecf99f2 (git): * 2011-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:44 PM Revision 69a4efaf (git): * sample/drb/dhasenc.rb: coding cookie of Emacs is coding,
not encoding.
* sample/mine.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
04:06 PM Bug #5292: Access to GC::Profiler Records
Charlie Savage wrote:
> Thank you.
> ...
Sorry, it's too late, because 1.9.3 branch already in feature freeze.
authorNari (Narihiro Nakamura)
02:43 AM Bug #5292: Access to GC::Profiler Records
Thank you.
Can this be part of 1.9.3 or is it too late?
Charlie
cfis (Charlie Savage)
04:04 PM Bug #4844 (Closed): RVM crash while running resque worker pool
I close this as Rejected since no feedback provided.
Please reopen this if it still happens on the latest version of ruby.
naruse (Yui NARUSE)
01:06 PM Revision 0abbe4c1 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_abs): Fix comment.
BigDecimal#sqrt requires argument. Reported by Makoto Kishimoto.
Thanks for your contribution. [Bug #5267] [ruby-dev:44452]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
11:51 AM Bug #5302 (Closed): Two small documentation fixes in dir.c
There are two cases where aaronlerch (Aaron Lerch)
11:17 AM Bug #5193: ruby_thread_data_type linker errors fixed with RUBY_EXTERN
Hi Nobu,
Thanks for sending the pull request.
It seems Mark is still having trouble though. Do you mind helping him out? See:
https://github.com/mark-moseley/ruby-debug/pull/14#issuecomment-2041066
Thank you.
Charlie
cfis (Charlie Savage)
10:25 AM Bug #5197: at_exit order has changed in 1.9.3dev32413
That discussion makes my head hurt.
What I need is this:
1) minitest, like test/unit before it, runs its tests via at_exit.
2) Users need to be able to register code to run AFTER the tests run (for extra reporting, or resource cle...
zenspider (Ryan Davis)
07:48 AM Revision 702d25f5 (git): added new methods of Net::IMAP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
07:02 AM Revision 05c2cc90 (git): merge revision(s) r32791:
* insns.def (concatstrings): don't use initial ASCII-8BIT string.
[ruby-core:38635] [Bug #5126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:29 AM Revision cf8626a0 (git): Run GC.start before test_too_long_path.
NoMemoryError is raised in MiniTest#exception_details where exception
is made, and no effect. Run GC.start before running to keep the room.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:41 AM Feature #5291: Enabling GC Profiler GC_PROFILE_MORE_DETAIL and CALC_EXACT_MALLOC_SIZE
Yes, that would be much better. Is it too late for this to be part of 1.9.3?
Thank you!
Charlie
cfis (Charlie Savage)
12:59 AM Feature #5291: Enabling GC Profiler GC_PROFILE_MORE_DETAIL and CALC_EXACT_MALLOC_SIZE
(2011/09/06 22:05), Charlie Savage wrote:
>
> Issue #5291 has been reported by Charlie Savage.
>
> ----------------------------------------
> Feature #5291: Enabling GC Profiler GC_PROFILE_MORE_DETAIL and CALC_EXACT_MALLOC_S...
ko1 (Koichi Sasada)
12:59 AM Feature #5291: Enabling GC Profiler GC_PROFILE_MORE_DETAIL and CALC_EXACT_MALLOC_SIZE
(2011/09/06 23:04), Charlie Savage wrote:
> FYI, pairing a xalloc with a free can be fatal on windows depending on how Ruby is built (mingw is safe, VC++ isn't) and what runtime c libaries are used. See the "Caution" note at the bott...
ko1 (Koichi Sasada)
02:26 AM Revision 6199181b (git): Catch NoMemoryError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:26 AM Revision dcea3a0f (git): Decide by majority.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:08 AM Revision 73a1e841 (git): * test/rubygems/test_gem_commands_help_command.rb: Add one
`require` because if run test-all with test/unit parallel
running, sometimes this test fails by some constants not found.
The error reason is some worker doesn't require the file needed by
this test. This issue is related to [ruby-...
sorah (Sorah Fukumori)
01:22 AM Revision 61b062ba (git): * thread.c (rb_thread_select): fix a typo to initialize efds
properly. [Bug #5299] [ruby-core:39380]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/08/2011

08:32 PM Bug #5244: Continuation causes Bus Error on Debian sparc
The bug does not occur with older Debian sparc running on qemu.
1. download image http://people.debian.org/~aurel32/qemu/sparc/debian_etch_sparc_small.qcow2
2. qemu-system-sparc -hda debian_etch_sparc_small.qcow2 -M SS-10 -m 1G
3. c...
ngoto (Naohisa Goto)
05:09 PM Revision fa5446f1 (git): * template/yarvarch.ja:
Change encoding from Shift-JIS to UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
04:26 PM Revision b81c4967 (git): Fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
04:24 PM Revision ce7a3174 (git): * 2011-09-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:24 PM Revision d53e9c1e (git): * sample/drb/README.rd.ja:
* sample/drb/dhasenc.rb:
* sample/mine.rb:
Change encoding from EUC-JP to UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ayumin (Ayumu AIZAWA)
04:06 PM Bug #5294: to_f does not convert floating point number the same as Fortran
Nobuyoshi Nakada wrote:
> Decimal point without fragment part is invalid in Ruby.
It is because 9.E+20 is parsed as 9.E() + 20.
9: Fixnum
E: a method named "E"
+: a method plus
20: Fixnum
naruse (Yui NARUSE)
12:42 AM Bug #5294 (Rejected): to_f does not convert floating point number the same as Fortran
Decimal point without fragment part is invalid in Ruby. nobu (Nobuyoshi Nakada)
12:06 AM Bug #5294: to_f does not convert floating point number the same as Fortran
snippet:
a9e20s = %w{
0.9E+21
+0.9E+21
-0.9E+21
.9E+21
+.9E+21
-.9E+21
9E+20
+9E+20
-9E+20
9.E+20
+9.E+20
-9.E+20
9.0E+20
+9.0E+20
-9.0E+20
(etc...)
}
a9e20s.each { |num|
printf "string: '%-10s' float: %50.25f\n"...
todd.kushner (Todd Kushner)
12:04 AM Bug #5294 (Rejected): to_f does not convert floating point number the same as Fortran
We were converting some Fortran programs to Ruby, and found the following floating point number format did not convert as Fortran does on input, i.e., on:
'[+-]nn.E[+-]nn'
the exponent is ignored by to_f, but not by Fortran:
s...
todd.kushner (Todd Kushner)
12:57 PM Bug #4991 (Closed): Add a method to retrieve raw data from GC::Profiler
This issue was solved with changeset r33224.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (Init_GC): defined GC::Profiler.raw_data. based on the
p...
authorNari (Narihiro Nakamura)
12:23 PM Bug #4991: Add a method to retrieve raw data from GC::Profiler
Hi,

In message "Re: [ruby-core:39357] [Ruby 1.9 - Bug #4991] Add a method to retrieve raw data from GC::Profiler"
on Thu, 8 Sep 2011 11:51:42 +0900, Narihiro Nakamura <authorNari@gmail.com> writes:

|I like GC::Profiler.r...
matz (Yukihiro Matsumoto)
11:51 AM Bug #4991: Add a method to retrieve raw data from GC::Profiler
Charlie Savage wrote:
> Ok, some other ideas then:
> ...
Thanks!!
I like GC::Profiler.raw_data.
Matz, What do you think?
authorNari (Narihiro Nakamura)
08:21 AM Bug #4991: Add a method to retrieve raw data from GC::Profiler
Ok, some other ideas then:
records
stats
runs
results (although there is result already)
log
history
raw_data
raw
Any sound good?
cfis (Charlie Savage)
12:57 PM Bug #5292 (Closed): Access to GC::Profiler Records
This issue was solved with changeset r33224.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (Init_GC): defined GC::Profiler.raw_data. based on the
p...
authorNari (Narihiro Nakamura)
12:18 PM Revision 60ce4b55 (git): merge revision(s) 33225:
* ext/nkf/nkf-utf8/nkf.c: import nkf 2.1.2 (be9c280)
Bump version number/release date only.
to UTF-8. if $BASERUBY is 1.9, -Ks cause an error. [Feature #5128]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
naruse (Yui NARUSE)
12:17 PM Revision 05558e04 (git): * ext/nkf/nkf-utf8/nkf.c: import nkf 2.1.2 (be9c280)
Bump version number/release date only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:41 AM Bug #5076: Mac OS X Lion Support
Hi,
I've tested ruby with Xcode 4.2 Developer Preview 7.
Test results are below:
* llvm-gcc with optflags="-O3"
* build succeeded
* test-all (with TESTS="-j") fails by parallel.rb (worker process) crashes with "[BUG] Bus...
sorah (Sorah Fukumori)
10:51 AM Bug #5297 (Closed): Either File.expand_path or File.join is corrupting string encoding
Hello,
While working on some API improvements for Windows, found the following issue:
https://gist.github.com/1202366
luislavena (Luis Lavena)
09:38 AM Bug #5296 (Closed): Incompatability with DateTime#strptime Segmentation Fault when parsing string
naruse (Yui NARUSE)
05:53 AM Bug #5296: Incompatability with DateTime#strptime Segmentation Fault when parsing string
Diebels Alternative <diebelsalternative@hotmail.com> wrote:
> http://redmine.ruby-lang.org/issues/5296

> :004 > DateTime.strptime("df","%m/%d/%Y")
> (irb):4: [BUG] Segmentation fault
> ruby 1.9.3dev (2011-07-31 revision 3278...
normalperson (Eric Wong)
05:34 AM Bug #5296 (Closed): Incompatability with DateTime#strptime Segmentation Fault when parsing string
Loading development environment (Rails 3.0.10)
:001 > DateTime.strptime
=> Mon, 01 Jan -4712 00:00:00 +0000
:002 > DateTime.strptime(nil)
TypeError: can't convert nil into String
:003 > DateTime.strptime(nil,"%m/%d/%Y")
TypeEr...
diebels727 (Diebels Alternative)
03:57 AM Revision 599071b7 (git): * gc.c (Init_GC): defined GC::Profiler.raw_data. based on the
patch by Eric Hodel. [ruby-core:37857] [Bug #4991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
12:07 AM Revision f1cdbd7b (git): * ext/nkf/nkf-utf8/nkf.c: revert also svn:mime-type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:02 AM Revision ac6ad66d (git): * gc.c (id2ref): objects which are unmarked but not in sweep_slots
are not dead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom