Activity
From 02/20/2010 to 03/21/2010
Today
- 09:04 AM Bug #2982 (Third Party's Issue): Ruby tries to link with both openssl and readline
- 09:04 AM Ruby 1.9 Feature #2032 (Third Party's Issue): Change the license to "GPLv2+ or Ruby's original".
- 09:04 AM Ruby 1.9 Bug #2983 (Third Party's Issue): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- 08:49 AM Bug #2982 (Open): Ruby tries to link with both openssl and readline
- 05:34 AM Ruby 1.9.1 Bug #2992: File operations leak file handles in Windows XP
- Various operations on files leak file handles in Windows XP. In the two attached scripts, Task Manager will report ~30 open file handles for the ruby process at the first gets, then ~230 at the second gets.
This has only been reproducible in Wi...
- 12:14 AM Feature #1352 (Rejected): Patch: Added missing TRACK method to lib/net/http.rb
- TRACK is only in IIS and source of vulnerability.
We can't add such method.
http://www.kb.cert.org/vuls/id/288308
http://www.symantec.com/business/security_response/attacksignatures/detail.jsp?asid=20419
- 12:14 AM Ruby 1.9 Feature #1358 (Rejected): net/http has no TRACK method - here's a patch
- TRACK is only in IIS and source of vulnerability.
We can't add such method.
http://www.kb.cert.org/vuls/id/288308
http://www.symantec.com/business/security_response/attacksignatures/detail.jsp?asid=20419
03/20/2010
- 07:11 PM Ruby 1.9 Feature #2032 (Assigned): Change the license to "GPLv2+ or Ruby's original".
- 07:11 PM Ruby 1.9 Bug #2983 (Open): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- Don't close duplicated tickets, all of them are closed if you close one of them > nobu
- 04:11 PM Bug #2987 (Closed): typoの修正
- 11:59 AM Bug #2987: typoの修正
- いくつかtypoを修正するpatchをアタッチします。よかったら取りこんでいただけないでしょうか。
(主にコメントに対する修正です)
なお、lib/irb/notifier.rb で AbstructNotifier を AbstractNotifier に置き
換えるような修正が含まれています。取り込む場合はそこだけ気を付けてやってください。
- 08:35 AM Ruby 1.9 Feature #2032 (Closed): Change the license to "GPLv2+ or Ruby's original".
- I close this ticket because it is duplication.
Also, note that libedit has been supported already,
libreadline will be disabled by --enable-libedit configure option.
- 08:35 AM Ruby 1.9 Bug #2983 (Closed): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- I close this ticket because it is duplication.
Also, note that libedit has been supported already,
libreadline will be disabled by --enable-libedit configure option.
- 05:06 AM Ruby 1.9 Feature #2032 (Assigned): Change the license to "GPLv2+ or Ruby's original".
- 05:06 AM Ruby 1.9 Bug #2983 (Open): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- GPL3 problem is not resolved; this ticket is mistakenly closed because this is duplicated ticket with #2982.
- 01:45 AM Ruby 1.9 Feature #1047 (Assigned): request: getters, setters for the GC
- Attaching demo file.
A little contrived still, but on my box, the things that help it improve are (believe it or not)
-#define HEAP_MIN_SLOTS 10000
+#define HEAP_MIN_SLOTS 100000
12.3s normal gc.c
to 10.4s
Perhaps defining more space...
- 12:47 AM Ruby 1.9.1 Backport #2564 (Closed): [patch] re-initialize timer_thread_{lock,cond} after fork
- Thanks for the feedback. Closing.
03/19/2010
- 07:00 PM Ruby 1.9 Feature #2117 (Closed): Binding to a class, a method from the class's superclass's metaclass, fails
- Hi,
2009/9/24 Marc-Andre Lafortune <redmine@ruby-lang.org>:
> Hi!
> ? Yes, I hesitated before making the change but my reasoning was:
> - past behavior contradicted the doc & intuition (at least mine! ;-)
> - no apparent valid reason for pa...
- 05:23 PM Ruby 1.9.1 Bug #2986: segmentation fault
- using latest gruff gem 0.3.6 with ruby 1.9.1p378 installed via RVM and rails 2.3.5 on Mac OS X Snow Leopard got a crash (works fine with ruby 1.8.7)
/Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/gruff-0.3.6/lib/gruff/base.rb:915: [BUG] Segmentat...
- 01:41 PM Feature #2000 (Closed): Change the license to "GPLv2+ or Ruby's original".
- 01:41 PM Ruby 1.9 Feature #2032 (Closed): Change the license to "GPLv2+ or Ruby's original".
- 01:41 PM Ruby 1.9 Bug #2983 (Closed): Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- 01:41 PM Bug #2982 (Closed): Ruby tries to link with both openssl and readline
- 01:28 AM Ruby 1.9 Feature #2065 (Feedback): An ancestors iterator
- Hi,
> It would be nice if there were a method that iterates ancestors without generating the ancestors array:
>
> SomeClass.each_ancestor do |ancestor|
> # ...
> end
>
> This could improve the performance of DSLs that want to supp...
- 01:00 AM Ruby 1.9 Feature #2691 (Rejected): RCR: allow {select, collect, map} to accept symbol argument
- Hi,
This ticket got four -1s, and there is no rebuttal.
So I close this ticket.
FYI, matz stated the rationale (in Japanese). [ruby-dev:32692]
He thought that "inject with Symbol" directly expressed the
intention of Array#inject, and t...
- 12:20 AM Ruby 1.9 Feature #2586 (Rejected): openssl: Load root certificates on Windows
- Hi,
I think this ticket was already rejected in effect.
Naruse seems to be satisfied with the decision.
So I close the ticket.
--
Yusuke Endoh <mame@tsg.ne.jp>
03/18/2010
- 11:45 PM Ruby 1.9 Feature #2360 (Rejected): hide the internal of anonymous Enumerator
- 遠藤です。
> - Enumerator::Generator を匿名クラスにする (ARGF のように)
> - Generator.new や Yielder.new を禁止する
> - Enumerator#inspect で Generator の存在は隠す
>
> とするパッチを書いてみました。どうでしょう。
[ruby-dev:39685] で提案している private constant で解決する方が
いいと思うので、このチケットは自分で reje...
- 11:32 PM Ruby 1.9 Feature #2321 (Rejected): [PATCH] Array Module sum and mean features
- Hi,
> I have created a new patch for the Array Module of Ruby. The patch adds two complementary features: A sum function, that sums the elements in an array if they are numbers; and a mean (or average) function that finds the mean of the elemen...
- 10:29 PM Ruby 1.9 Feature #1596 (Closed): GC.time
- 遠藤です。
> 今まで何回 GC をやったか調べるための GC.count というのがあるのですが,
> これまでの GC にかかった時間を返す GC.time というメソッドを追加するのは
> どうでしょうか.
#2480 で GC::Profiler.total_time が導入されたので、close します。
せっかくなので何回か使ってみた経験を書いておきますと、生きている
オブジェクトが大量にある (= 一回あたりのGC に時間がかかる) ときは
それな...
- 09:16 PM Ruby 1.9 Feature #1047 (Feedback): request: getters, setters for the GC
- Hi,
> I've attached a patch adding getters and setters for HEAP_MIN_SLOTS and GC_MALLOC_LIMIT.
My personal opinions:
- Though I think a few rough "modes" is acceptable (e.g., -server and
-clients of Java), such a specific parameter t...
- 08:31 PM Ruby 1.9.1 Feature #2984: string split with capitalize
- It would be awesome if string had a method to perform this action:
string.split(' ').each{ |s| s.capitalize! }.to_s
- 05:04 PM Ruby 1.9 Bug #2983: Ruby (GPLv2 only) tries to link to with readline (now GPLv3)
- Hi,
The readline library was relicensed under GPLv3. Since Ruby is GPLv2 only, it is not allowed to link to readline.
Most distributions currently ship both the (old) GPLv2 readline version, and the new GPLv3 readline. However, this is likel...
- 05:01 PM Bug #2982: Ruby tries to link with both openssl and readline
- Hi,
Ruby currently tries to link with both OpenSSL (which is under the SSL license), and Readline (GPL).
This is not allowed. For more information, see for example http://people.gnome.org/~markmc/openssl-and-the-gpl.html and http://www.mail-ar...
- 02:28 PM Ruby 1.9 Bug #2976 (Assigned): cucumberでSEGV
- [ruby-dev:40679] からのスレッドでした。
[ruby-dev:40452] との関係性が指摘されていますが、過去には動いていたようなので、中田さんコメントお願いできますか
- 02:02 PM Ruby 1.8.7 Backport #2739 (Assigned): ruby 1.8.7 built with pthreads hangs under some circumstances
- Backport r26371, r26327, r26972.
- 01:57 PM Ruby 1.8.7 Backport #2739 (Closed): ruby 1.8.7 built with pthreads hangs under some circumstances
- This issue was solved with changeset r26972.
Joel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 01:41 PM Ruby 1.8.7 Backport #2739 (Open): ruby 1.8.7 built with pthreads hangs under some circumstances
- 12:11 PM Ruby 1.9 Feature #2981: Array#repeated_(permutation|combination)
- New methods Array#repeated_(permutation|combination).
Like Array#(permutation|combination), these methods make
repeated permutation or combination.
Attachment: repeated_patch.txt
- 11:29 AM Ruby 1.9.1 Bug #2980: Segmentation fault with ruby 1.9.1p376 and yajl-ruby-0.7.4 on opensuse x64
- While I was testing yajl library I get a segmentation fault. The error is attached on error.txt and the json data on prueba.json.
I did this:
irb> require 'yajl
irb> json = File.new('prueba.json', 'r')
irb> parser = Yajl::Parser.new
irb> ...
- 06:37 AM Ruby 1.9 Bug #2978 (Closed): TMP_RUBY_PREFIX sets incorrect values in gem prelude for ruby installed in $HOME
- This issue was solved with changeset r26970.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 01:58 AM Ruby 1.9 Bug #2978: TMP_RUBY_PREFIX sets incorrect values in gem prelude for ruby installed in $HOME
- For ruby (r26961), built and installed with configure --prefix=$HOME, I see odd values in Gem::ConfigMap that do not allow to load installed rubygems, see sample irb session:
irb(main):001:0> Gem::ConfigMap
=> {:EXEEXT=>"", :RUBY_SO_NAME=>"r...
- 01:27 AM Ruby 1.9 Feature #2969 (Closed): String#to_f が -h.hhh±pd を解釈できるように
- This issue was solved with changeset r26965.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 12:22 AM Ruby 1.9.1 Bug #2977 (Third Party's Issue): Segmaentation fault
- 12:15 AM Ruby 1.9.1 Bug #2977: Segmaentation fault
- I was running an Rails rake task on Netbean 6.8 IDE Windows XP Pro and following error message appeared. I am relative new to Rails
Couldn't create database for {"adapter"=>"mysql", "encoding"=>"utf8", "reconnect"=>false, "database"=>"SAeS_deve...
- 12:12 AM Ruby 1.9 Bug #2976: cucumberでSEGV
- 一度-devに投げましたが改めてRedmineへ。
cucumberを実行するとpolyglot-0.3.0/lib/polyglot.rb の中で高確率でSEGVになります。
$ gem install cucumber
$ mkdir features
$ cucumber
r23000 から HEAD の間で bisect っぽいことをしてみたところ、
r24687 は問題なし。
r24688-24689 コンパイルできず。
r24690 で SEGV...
03/17/2010
- 11:31 PM Ruby 1.9 Feature #1951 (Closed): openのBOM指定拡張
- 11:30 PM Ruby 1.9 Feature #2571 (Closed): 文字列のハミング距離
- 遠藤です。
本件は提案者の mrkn さんが一旦取り下げたようなので ([ruby-dev:40028]) 、
closed とします。
--
Yusuke Endoh <mame@tsg.ne.jp>
- 09:39 PM Ruby 1.8.7 Bug #2973 (Closed): rb_bug - Segmentation fault - error.c:213
- 06:27 AM Ruby 1.8.7 Bug #2974 (Assigned): WEBrick error in httpstatus
- 04:51 AM Ruby 1.8.7 Bug #2973 (Third Party's Issue): rb_bug - Segmentation fault - error.c:213
- It is MySQL adaptor or libmysql's bug, please report this to there.
- 04:28 AM Feature #2975: Kernel.warn always writes despite $VERBOSE value
- Kernel.warn always writes despite $VERBOSE value
The RDoc say:
http://www.ruby-doc.org/core/classes/Kernel.html#M005921
warn(msg) => nil
Display the given message (followed by a newline) on STDERR unless warnings are disabled (for example wi...
- 02:47 AM Ruby 1.9 Bug #2581 (Closed): require_relative depends on current directory
- This issue was solved with changeset r26959.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 02:27 AM Ruby 1.8.7 Bug #2974: WEBrick error in httpstatus
- HTTPStatus has some Status classes, which derive from StandardError < Exception.
In Status::initialize, message (which should return a string) is defined to self.class (which is not a string). When the exception is raised, trying to read its me...
- 01:27 AM Ruby 1.9 Bug #1843 (Closed): Symbol#inspect raises exception
- This issue was solved with changeset r26957.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
03/16/2010
- 10:04 PM Ruby 1.8.7 Bug #2973: rb_bug - Segmentation fault - error.c:213
- hi, i have a ruby-1.8.7 install on netbsd-5, which is crashing quite frequently. i can provide the core and other additional info.
here is a backtrace:
Program terminated with signal 6, Aborted.
#0 0xbbac1767 in _lwp_kill () from /usr/lib/li...
- 04:08 PM Ruby 1.8.7 Bug #2972 (Rejected): Windows での gets(nil)
- バイナリファイルを読むなら
'ARGF.binmode; p gets(nil).size'
とバイナリモードにしてください。
- 03:58 PM Ruby 1.8.7 Bug #2972: Windows での gets(nil)
- 久保田と申します。
mingw 版 1.8.7 で gets(nil) の動作に不具合があるようなので
ご報告させていただきます。
(cygwin 版では発生しません)
読み込まれるバイト数が不安定なのと、
得られた文字列も途中から入力のファイルと異なっています。
$ wc -c a.aes-128-ecb
557088 a.aes-128-ecb
$ od -j 352 -t x1z a.aes-128-ecb | head
0000540 a9 22 ...
- 08:04 AM Ruby 1.9 Feature #2968 (Rejected): 数値の正負を返すメソッド
- f > 0 or 1.0 / f > 0
ではなんでだめなんですか?
- 06:57 AM Ruby 1.9 Bug #2967 (Rejected): SCRIPT_LINES__ is not included in constants()
- Use const_defined? which can work either on 1.8 and 1.9, and faster.
- 04:01 AM Ruby 1.9 Feature #2969: String#to_f が -h.hhh±pd を解釈できるように
- C99 の printf には a という指定子があります。
aA The argument is printed in style ‘[-h.hhh±pd]’ where there is
one digit before the hexadecimal point and the number after
is equal to the precision specificatio...
- 03:38 AM Ruby 1.9 Feature #2968: 数値の正負を返すメソッド
- 数値の正負を返すメソッドが欲しいです。
主たる想定用途は 0.0 と -0.0 を区別したいときです。
これは、0.0 > -0.0 や 0.0 == -0.0 では知ることができません。
とりあえず flo.to_s[0] == ?- で知ることができますが、これではあんまりです。
悩みどころはいつもの通りメソッド名ですが、
* Numeric#positive? と Numeric#negative?
* Numeric#sign -> 負で -1、正で 1
* Nu...
- 02:43 AM Ruby 1.9 Bug #2967: SCRIPT_LINES__ is not included in constants()
- d:\bugs>irb
irb(main):001:0> RUBY_VERSION
=> "1.8.6"
irb(main):002:0> SCRIPT_LINES__ = {}
=> {}
irb(main):003:0> Object.constants.include? 'SCRIPT_LINES__'
=> true
irb(main):004:0> exit
d:\bugs>irb19
irb(main):001:0> RUBY_VERSION
=> "1...
- 01:51 AM Ruby 1.9 Bug #2766 (Rejected): Cannot use CSV under windows 7
- I assume CSV's auto line ending detection is failing on you data for some reason. A likely cause could be fields that contain line endings different from those used to end lines. You should be able to solve this by setting the :row_sep manually....
- 01:46 AM Ruby 1.9.1 Bug #2966 (Rejected): CSV reports illegal quoting on line ...
- > Which eventually reads line 24
Unfortunately, that line is not valid CSV data. In CSV, quotes must be escaped (by doubling them) inside of a quoted field. Given that, the field would need to be: …,"LSB_VERSION=""core-2.0…
> If not, can/...
- 01:22 AM Ruby 1.9.1 Bug #2966: CSV reports illegal quoting on line ...
- I have a line of code:
@array = CSV.read("#{@dir}/#{@file}")
Which eventually reads line 24 (below) in file attached to this bug:
BBBP,004,/etc/release,"LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64""
This ra...
03/15/2010
- 05:47 PM Ruby 1.9 Bug #2957 (Closed): IO.print emits field separator after each object, rather than between
- This issue was solved with changeset r26938.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 05:16 PM Ruby 1.9 Bug #2965: method `===' called on hidden T_STRING object (NotImplementedError)
- termtter の 464948b77fb335140bcd6e2a76dddc8cac7620a9 版を
ruby 1.9.2dev r26937 で実行すると以下のような例外が出て止まります。
/Users/muraken/src/termtter.git/lib/termtter/client.rb:225:in `legacy_config_support': method `===' called on hidden T_STRING object (0x0000010...
- 04:49 PM Ruby 1.9 Bug #2964 (Closed): Segmentation Fault is occurred by Array#sample in a child process
- trunk is fixed by r26936.
- 04:41 PM Ruby 1.9 Bug #2964: Segmentation Fault is occurred by Array#sample in a child process
- ruby -ve 'Process.wait fork { p [1, 2].sample }'
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2010-03-15 trunk 26932) [x86_64-darwin10.2.0]
-- control frame ----------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :sample
c:0006 p:0...
- 03:18 PM Ruby 1.9.1 Backport #1891 (Assigned): (:A .. :z).to_a results symbol table overflow
- 02:40 PM Ruby 1.9.1 Backport #2962 (Assigned): fork + Array#shuffle segfault
- trunk is fixed by r26936.
Please backport r26936.
Thank you for your report.
- 12:26 PM Ruby 1.9.1 Bug #2963: 2 Core Dumps from ruby 1.9.1p376
- I just upgraded my MacBook Pro with Snow Leopard to 1.9.1p376 and got the following core dumps:
/usr/local/lib/ruby/gems/1.9.1/gems/haml-2.2.21/lib/sass/plugin.rb:213: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386...
- 10:47 AM Ruby 1.9 Bug #2954 (Closed): wrong result of nkf with --numchar-input
- This issue was solved with changeset r26935.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 09:43 AM Ruby 1.9.1 Backport #2962: fork + Array#shuffle segfault
- Using Array#shuffle after forking causes a segmentation fault
with 1.9.1-p378 and 1.9.2dev (2010-02-26 trunk 1971). Calling
Kernel.rand immediately after forking fixes the issue, but
is suboptimal.
Attach is a proposed fix to rb_reset_rando...
- 04:47 AM Ruby 1.9 Bug #2959 (Closed): IO#codepoints crashes MRI/mingw on Windows
- This issue was solved with changeset r26926.
Vladimir, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 02:50 AM Ruby 1.9.1 Bug #2961: Pathname bug in windows.
- Comparing same folders in FS, defined a bit different way produces false
Example: (cwd is c:\alpha)
Pathname.new('c:\alpha').realpath
=> #<Pathname:c:\alpha>
Pathname.new('./').realpath
=> #<Pathname:C:/alpha>
Pathname.new('c:\alpha').re...
- 12:27 AM Ruby 1.9 Bug #2960 (Closed): svn revision detection of git-based repo on Windows is broken
- This issue was solved with changeset r26917.
Vladimir, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
03/14/2010
- 07:35 PM Ruby 1.9 Bug #2960: svn revision detection of git-based repo on Windows is broken
- This leads to situation when MRI built on Windows from git-based repo doesn't show the actual SVN revision: ruby 1.9.2dev (2010-03-14) [i386-mingw32]
This is a regression caused by recent changes in file2lastrev.rb file.
Attached is a small ...
- 06:48 PM Ruby 1.9 Bug #2959: IO#codepoints crashes MRI/mingw on Windows
- One earlier MRI 1.9.2 builds on Windows, IO#codepoints just didn't do *anything*.
With more recent versions, MRI crashes.
ruby -ve "File.open('TODO').codepoints{|c| p c}"
ruby 1.9.2dev (2010-03-05 trunk 26821) [i386-mingw32]
-e:1: [BUG] S...
- 09:56 AM Ruby 1.8 Backport #2723 (Assigned): $: length affects re-require time of already loaded files
- OK, ticket moved to backport 1.8.
- 07:27 AM Ruby 1.9 Bug #2958 (Closed): Re: [ruby-cvs:34124] Ruby:r26909 (trunk): * file.c (file_expand_path): should...
- This issue was solved with changeset r26913.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 01:22 AM Ruby 1.9 Bug #2958: Re: [ruby-cvs:34124] Ruby:r26909 (trunk): * file.c (file_expand_path): should not just...
- こんにちは、なかむら(う)です。
In message "[ruby-cvs:34124] Ruby:r26909 (trunk): * file.c (file_expand_path): should not just copy the encoding"
on Mar.13,2010 23:50:30, <matz@ruby-lang.org> wrote:
> matz 2010-03-13 23:50:26 +0900 (Sat, 13 Mar 2010)
>
> ...
- 12:38 AM Ruby 1.9.1 Bug #2950 (Assigned): Segmentation fault [gem install failing]
- (maybe 3rd party's issue)
- 12:25 AM Ruby 1.9 Bug #2957: IO.print emits field separator after each object, rather than between
- In versions prior to 1.9, IO.print emits the field separator "$," between each object printed when non-nil.
As of r11003, IO.print emits the field separator after each field. This change was reported by
Alex DeCaria in [ruby-talk:358633].
The...
03/13/2010
- 11:57 PM Ruby 1.9 Bug #2955 (Closed): File.expand_path raises unexpected CompatibilityError
- This issue was solved with changeset r26909.
Sakuro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 07:48 PM Ruby 1.8.7 Backport #2953 (Assigned): nkf segfaults with --numchar-input
- 07:45 PM Ruby 1.8.7 Backport #2739 (Closed): ruby 1.8.7 built with pthreads hangs under some circumstances
- 07:45 PM Ruby 1.8 Backport #2723 (Closed): $: length affects re-require time of already loaded files
- fixed on r26902 of trunk.
- 07:06 PM Ruby 1.9.1 Backport #2956: segfault
- $ cat ~/tmp/ruby191bug.rb
# -*- coding: utf-8 -*-
[].each do |i|
{:i -> i}
result << elem
end
$ ruby1.9.1 -v ~/tmp/ruby191bug.rb
ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]
/home/tmaeda/tmp/ruby191bug.rb:3: syntax error,...
- 06:09 PM Ruby 1.9 Bug #1324 (Rejected): Imap Tests hanging
- I can't reproduce too, and this issue has no feedback for more than half a year.
So, I set the status "Rejected" temporarily.
If someone can reproduce even now, please inform and/or reopen the issue.
- 02:57 PM Ruby 1.9 Bug #1893 (Closed): Recursive Enumerable#join is surprising
- This issue was solved with changeset r26906.
Jeremy, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 11:07 AM Ruby 1.8.7 Backport #2953 (Closed): nkf segfaults with --numchar-input
- This issue was solved with changeset r26903.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 11:06 AM Ruby 1.9 Bug #2955: File.expand_path raises unexpected CompatibilityError
- $ ./ruby -Ilib -e "p Encoding.find('filesystem')"
#<Encoding:UTF-8>
./ruby -Ilib -e "p 'あ'.encoding.ascii_compatible?"
true
$ ./ruby -Ilib -e "p File.expand_path('あ', '/')"
"/あ"
The above is ok but
$ ./ruby -Ilib...
- 10:17 AM Ruby 1.9 Bug #2840 (Closed): Tk doesn't built in mingw
- This issue was solved with changeset r26901.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 09:25 AM Ruby 1.9 Bug #2954: wrong result of nkf with --numchar-input
- Bug #2953のコードを1.9で実行すると空になります。
$ ./ruby bug-2953.rb | od -tx1z
0000000 22 22 0a 0a >""..<
0000004
nkf_buf_t->ptrはnkf_charの配列ですが、nkf_buf_pop()はunsigned
charになってるために最下位バイト以外は捨てられてしまいます。
これをnkf_charを返す...
- 09:07 AM Ruby 1.8.7 Backport #2953: nkf segfaults with --numchar-input
- http://pc12.2ch.net/test/read.cgi/tech/1267668057/375 より引用。
$ cat a.rb
require 'nkf'
sikaru = NKF.nkf('-w, --numchar-input', %w(20B9F).map{|s| "#{s};"}.join)
p sikaru
puts sikaru
$ ruby -Ku ./a.rb
a.rb:2: [BUG] Segmentation fault
ruby 1....
03/11/2010
- 03:04 PM Ruby 1.9.1 Bug #2952 (Rejected): Time.strftime format %N
- Use Rational as following:
t1 = Rational("1236922275.8516")
t2 = Time.at(t1)
puts t2.to_r
puts t1 == t2.to_r
- 01:38 PM Ruby 1.9.1 Bug #2952: Time.strftime format %N
- There seems to be some rouding errors with the %N formatter for Time->strftime
t1 = 1236922275.8516
t2 = Time.at(t1)
puts t1
puts t2.to_f
puts t1 == t2.to_f
puts t2.strftime("%s.%6N")
prints
1236922275.8516
1236922275.8516
true
1236...
- 11:36 AM Ruby 1.9.1 Bug #2951 (Rejected): range stop em method include? out of range
- It iterates (99990-1001) * 1000 + 1 = 98989001 times.
So it will nearly stopped.
- 11:16 AM Ruby 1.9.1 Bug #2951: range stop em method include? out of range
- This example stop ruby 1.9.1-p378
("01001-000".."99990-000").include? ""
- 10:43 AM Ruby 1.9.1 Bug #2950: Segmentation fault [gem install failing]
- Running 1.9.1p376 on Windows 7 with all dependency bins as referenced here http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html included in path
Gem install is causing the segfault. Ruby itself (and irb) seem to be working fine....
03/10/2010
- 09:37 PM Ruby 1.9 Bug #2184 (Closed): Blocks strange behavior
- This issue was solved with changeset r26866.
Ivan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 04:04 AM Bug #2948: failing test - test_thread.rb in ruby 1.9.1 p378 on linux redhat
- Make test fails on linux redhat (2.6.18-164.11.1.el5) for test_thread.rb for ruby 1.9.1 p378.
bootstraptest.tmp.rb:5:in `<main>': ok (RuntimeError)
.
#357 test_thread.rb:191:in `<top (required)>':
begin
100.times do |i|
begi...
- 12:09 AM Ruby 1.8 Bug #2947: win32ole & MS Access 2007
- Hi,
When opening a MS Access database with ruby code like
----------------------------------------------
require 'win32ole'
access = WIN32OLE.new('Access.Application')
database = File.expand_path('db2000.mdb')
access.OpenCurrentDatabase(...
03/09/2010
- 06:17 PM Ruby 1.9 Feature #2833 (Closed): 絵文字エンコーディングの提案
- This issue was solved with changeset r26856.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 01:52 PM Ruby 1.8.7 Bug #1879 (Closed): RDoc error in documentation
- 01:42 PM Ruby 1.9 Bug #2211 (Closed): eval Documentation Claims Proc Accepted for Binding
- 01:39 PM Ruby 1.9 Bug #2466 (Closed): Mutex#lock documentation is incorrect
- Applied in r26072
- 01:29 PM Ruby 1.9 Feature #2832 (Open): Vector#each and Enumerable
- Thanks Matz.
Vector#map/collect should return Vector, no?
I'm fine with the others methods, like #drop(_while), #find(_all), #first, returning arrays though.
- 01:18 PM Ruby 1.8.7 Bug #2790 (Third Party's Issue): IRB crash
- This appears to be a bug in Curb (which has native extensions and thus can segfault if not coded properly).
You should create an issue on github: http://github.com/taf2/curb/issues
- 08:14 AM Ruby 1.9 Bug #2388 (Feedback): test-all 中に popen で ruby.exe が落ちる
- 07:24 AM Ruby 1.9 Bug #2016 (Rejected): Windows (win32.c) command line argument parsing bug
03/08/2010
- 10:30 PM Ruby 1.8 Feature #2946: Apparently inconsistent zip of Range
- You can zip an Array onto a Range, but not a Range onto an Array.
>> RUBY_DESCRIPTION
=> "ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]"
>> (9..12).zip([1,2,3,4])
=> [[9, 1], [10, 2], [11, 3], [12, 4]]
>> [1,2,3,4].zip(5..8)
Ty...
- 06:27 PM Ruby 1.9 Bug #2945 (Rejected): Regexp#=== is failed by an exception when the exception is occurred in meth...
- 03:32 PM Ruby 1.9 Bug #2945: Regexp#=== is failed by an exception when the exception is occurred in method_missing
- When an exception is occurred in method_missing,
Regexp#=== is failed by the exception.
Is this valid behavior?
o = Object.new
class <<
def method_missing(m, *args)
raise "XXX" if m == :to_str
end
end
/aaa/ === o #...
- 10:49 AM Ruby 1.8 Bug #2944: ossl_ssl_session.c:110: warning: implicit declaration of function 'TIMET2NUM'
- 2010/3/7 Tanaka Akira <akr@fsij.org>:
> Ruby 1.8 で、以下の警告が増えています。
ありがとうございます。すいません、やらかしました。対応します。
それにしても、このCI出力は素晴らしいですね。今後同じことをやらないように、是非diffを継続的に見張りたいです。diffがあった時にそれを知るためのフィードとか、あるんでしたっけ?
- 09:53 AM Ruby 1.8 Bug #2943: Regexp Hash Code Changes
- When a Regexp containing a sub-section with the case-insensitivity flag set is matched against a string, its hash code changes.
re = /(?i:.)/
p re.hash #=> -452142835
"_" =~ re
p re.hash #=> 21933550
03/07/2010
- 02:32 AM Ruby 1.8.6 Bug #2792 (Third Party's Issue): String#to_f on Ruby-1.8.6-p399
- 02:17 AM Ruby 1.9 Bug #2752 (Closed): File path encoding on mac os x and windows
- This issue was solved with changeset r26832.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
03/06/2010
- 02:06 PM Ruby 1.9 Feature #1081 (Open): add File::write() convenience method
- 04:07 AM Ruby 1.9 Bug #2840: Tk doesn't built in mingw
- Currently the tk extension "search" finds existing Tk headers (ex: c:\Tcl), but then fails when it tries to compile with them.
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
make[1]: Entering directory `/c/dev/ruby/downl...
- 12:29 AM Ruby 1.8.7 Bug #2838 (Rejected): Ruby 1.8.7 (2009-06-12 patchlevel 174) strange round behaviour
- FAQ.
03/05/2010
- 10:53 PM Ruby 1.8.7 Bug #2838: Ruby 1.8.7 (2009-06-12 patchlevel 174) strange round behaviour
- ?> a = 64.01+128.38+123.96
=> 316.35
>>
?> b = 300+16.35
=> 316.35
?> (a * 10).round
=> 3163
>> (b * 10).round
=> 3164
- 07:47 PM Ruby 1.9 Feature #2835 (Closed): String#encodeに置換文字列のみを与えたら未定義向けとみなす
- This issue was solved with changeset r26823.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 05:20 AM Ruby 1.9 Feature #2837: Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
- The GC currently increases the size at which newly-created heaps by a factor of 1.8 for each heap. Some find it appropriate to modify this value (REE uses a value of 1 instead of 1.8, for example). In the trunk version of this code, that value i...
- 04:07 AM Ruby 1.8.6 Bug #1718 (Closed): RDoc directive in lib/yaml/tags.rb prevents rdoc'ing of Module
- This issue was solved with changeset r26819.
James, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
03/04/2010
- 10:57 PM Ruby 1.9 Bug #1954 (Closed): line number 0?
- This issue was solved with changeset r26817.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 10:57 PM Ruby 1.9 Feature #1081 (Closed): add File::write() convenience method
- This issue was solved with changeset r26816.
Suraj, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 05:03 PM Ruby 1.8.7 Bug #2836 (Assigned): win32ole + excel: crash when assigning large array
- 02:19 PM Ruby 1.9 Feature #2480 (Closed): request to add GC::Profiler.time method
- Applied at r26814. Thank you.
- 09:15 AM Ruby 1.8.7 Bug #2836 (Feedback): win32ole + excel: crash when assigning large array
- What do you mean by `crash'?
* an exception occurred,
* ruby interpreter segfaulted,
* Excel aborted,
* the blue-screen-of-death occurred, or
* a HDD destroyed physically?
- 01:28 AM Ruby 1.9 Feature #1102 (Feedback): Prepend Module
- 01:26 AM Ruby 1.9 Feature #905 (Feedback): Add String.new(fixnum) to preallocate large buffer
- Hi,
> This would allow heavy string-appending algorithms and libraries (like ERb) to avoid doing so many memory copies while they run.
Is it really a bottleneck? Please make an experiment and show us
the result.
We can continue API disc...
03/03/2010
- 11:46 PM Ruby 1.8.7 Bug #2836: win32ole + excel: crash when assigning large array
- The following code examples crashes with ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mswin32], works with ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mswin32]:
require 'win32ole'
x=WIN32OLE.new 'Excel.Application'
x.visible = ...
- 11:27 PM Ruby 1.9 Bug #2830 (Closed): Some methods raise ArgumentError instead of TypeError
- This issue was solved with changeset r26805.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 09:53 PM Ruby 1.9 Feature #2835: String#encodeに置換文字列のみを与えたら未定義向けとみなす
- Ruby 1.9 もおおむね完成してからそろそろ 3 年が経つのですが、
気付いた事として、String#encode(to, from, opt) の opt に :replace を指定した時は、
ほとんどの場合 :undef => :replace も指定するという事があります。
よくよく考えれば、不正なバイト列を続行したいという事は少ないし、推奨されず、
ゆえに置換文字列を指定する場合はたいてい未定義文字を置き換えたい場合な訳です。
以下のパッチは、:invali...
- 08:34 PM Ruby 1.8.7 Backport #2739 (Assigned): ruby 1.8.7 built with pthreads hangs under some circumstances
- 04:27 PM Ruby 1.9 Feature #2832 (Closed): Vector#each and Enumerable
- This issue was solved with changeset r26801.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 02:37 PM Ruby 1.9 Feature #2515 (Closed): Array#select!
- This issue was solved with changeset r26800.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 01:10 AM Ruby 1.9 Feature #2635 (Rejected): Unbundle rdoc
- 01:09 AM Ruby 1.9 Bug #2721 (Third Party's Issue): OpenSSL::Random.random_bytes(1) is very slow the first time on W...
- 01:09 AM Ruby 1.9 Bug #2721 (Rejected): OpenSSL::Random.random_bytes(1) is very slow the first time on Windows
- 01:08 AM Ruby 1.9 Bug #2768 (Third Party's Issue): SEGV when using OpenSSL::Cipher (AES) in certain way
- Following is gdb backtrace and valgrind result; it seems OpenSSL's Issue.
% gdb --args ./ruby -e 'require "openssl";OpenSSL::Cipher::AES128.new("ECB").update "testtesttesttest"'
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation,...
- 12:57 AM Ruby 1.9 Bug #2766 (Assigned): Cannot use CSV under windows 7
- 12:13 AM Ruby 1.9.1 Feature #2834 (Rejected): Matrix/Vector should be rewritten in C to improve speed
- Hi,
First, do not register a feature request as a Bug ticket.
Second, it is good for you to check NArray gem for your purpose.
--
Yusuke Endoh <mame@tsg.ne.jp>
03/02/2010
- 11:46 PM Ruby 1.9.1 Feature #2834: Matrix/Vector should be rewritten in C to improve speed
- The Matrix and Vector classes should be rewritten in C code so that they perform faster.
Maybe it is possible to use existing libraries (eg: "boost" -- http://www.boost.org/) and build some wrappers?
Integrating more (and faster) mathematical ...
- 11:00 PM Ruby 1.9 Feature #2833: 絵文字エンコーディングの提案
- 絵文字に対応したエンコーディングを実装しました。
これらを 1.9.2 のリリース前に trunk にマージすることを提案します。
redmine のチケットにパッチを添付しました。
このパッチは以下のエンコーディングを実装しています。
- UTF8-Google
- UTF8-DoCoMo
- Shift_JIS-DoCoMo
- UTF8-KDDI
- Shift_JIS-KDDI
- ISO-2022-JP-KDDI
- stateless-ISO-2022-...
- 10:42 PM Ruby 1.9 Bug #1983 (Rejected): Struct doesn't define instance methods for valid method names
- Hi Jeremy,
> By why not generate the reader and skip the setter, then?
In [ruby-core:4404], matz decided to prohibit such a field name once.
And in [ruby-core:4577], he relaxed the restriction:
> having field names with "?" can be valid ...
- 09:27 PM Ruby 1.9 Bug #1666 (Closed): Confusion in documentation for lines vs each_line, etc...
- This issue was solved with changeset r26797.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 06:47 PM Ruby 1.9 Feature #2759 (Closed): Regexp /g and /G options
- This issue was solved with changeset r26796.
Michael, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 06:04 PM Ruby 1.9 Feature #2832: Vector#each and Enumerable
- Vector should implement #each and include Enumerable, since it is so Array-like.
Enumerable methods that return an array should probably be specialized to return a Vector (e.g. map, first, ...)
See also [ruby-core:28403], [redmine:2831]
- 05:10 PM Ruby 1.9 Feature #2831: Matrix: each, all?, none?, each_with_index, ....
- There is Matrix#collect, but it would be useful to have Matrix#each and include Enumerable.
All methods that return anything else than an array are completely natural: Matrix#all?, Matrix#any?, Matrix#count, Matrix#none?, etc...
Others can b...
- 02:25 PM Ruby 1.9 Bug #2189 (Closed): Math.atanh(1) & Math.atanh(-1) should not raise an error
- Resolved with r26785.
- 01:45 PM Ruby 1.9 Bug #2830: Some methods raise ArgumentError instead of TypeError
- Some methods of Ruby 1.9 expect integers/reals and call internally nurat_int_value/nurat_int_check. These functions raise an ArgumentError when the argument is not an Integer, instead of a TypeError.
Thus:
42.gcd(:foo) # => ArgumentError...
- 01:38 PM Ruby 1.9 Bug #2829: Missing documentation for Exception subclasses.
- I noticed that the documentation for Exception subclasses are either that of Exception itself, or just plain non-sensical because they are actually missing (see ZeroDivisionError, FiberError, ...)
It would be preferable if the Exception classes...
- 04:34 AM Ruby 1.9 Feature #2515 (Open): Array#select!
- Hmm.
I personally have had uses for select! in the past, as others have as well.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/27316
http://www.ruby-forum.com/topic/200640#875371
Currently we are forced to use reject! which...
03/01/2010
- 11:10 PM Ruby 1.9 Bug #2776 (Rejected): can't return from lambda with outer block
- 仕様であるようですので Reject させていただきます。
教えていただいてありがとうございました。
- 11:10 PM Ruby 1.9 Bug #1469 (Rejected): Different behavior of class variables in 1.9.0 and 1.9.1p129
- Hi,
> For 1.9.0: ruby -v reports "ruby 1.9.0 (2006-06-08) [x86_64-linux]"
This is the development version of 1.9.0 that had never been released
yet. The release version 1.9.0-0 (2007-12-26) behaves the same way of
1.9.1p129.
So, this t...
- 10:40 AM Ruby 1.9 Bug #2826 (Assigned): pthreads compilation failure on Solaris
- This also effects Ruby 1.9.
- 08:49 AM Ruby 1.8.7 Bug #2828: Timeout doesn't work as expected if ruby process blocks
- > TCPSocket.new "fireflyseason2.com", "echo"
Blocks ruby process for a while because the domain is not available. If you would try to surround it with an timeout Block (timeout.rb) this will not work because of blocking:
> timeout(timeout) d...
- 06:07 AM Ruby 1.9 Bug #2827: ri hangs during gem installation which results in a crash
- $ ruby -v
ruby 1.9.2dev (2010-02-26 trunk 26763) [powerpc-darwin9.8.0]
$ gem update
Updating installed gems
Updating bundler
Due to a rubygems bug, you must uninstall older versions of the bundler gem for 0.9 to work.
If you still need bun...
02/28/2010
- 10:12 PM Ruby 1.9 Bug #2826: pthreads compilation failure on Solaris
- Original bug:
http://bugs.gentoo.org/show_bug.cgi?id=307159
Ruby's configure tries to find the right way to link against pthread libs by itself. This fails amongst others on Solaris. GCC itself knows fairly well how to link against pthreads ...
- 09:39 PM Ruby 1.9 Feature #2480 (Assigned): request to add GC::Profiler.time method
- 09:32 PM Ruby 1.9 Feature #971 (Rejected): Reinstate RubyVM::InstructionSequence::load
- 09:24 PM Ruby 1.9 Feature #2515 (Rejected): Array#select!
- Hi,
The feature was discussed in the thread from [ruby-core:27242].
In the thread, many English speaking people disagree this. So I close
this ticket as "rejected".
If you still want this feature, please reopen with "some real use of
sel...
- 08:55 PM Ruby 1.9 Feature #2480 (Open): request to add GC::Profiler.time method
- Hi,
> What I would like is to be able to add garbage time to profiling information [i.e. "within this method, of the total time that was used, GC took 42ms")
If anyone (nari?) writes a patch, it can be accepted and committed
because no on...
- 08:50 PM Ruby 1.9 Feature #2480 (Assigned): request to add GC::Profiler.time method
- 08:10 PM Feature #1257 (Rejected): Add Continuation#thread method
- Hi,
> Please respond to this (redmine) post rather than [ruby-core:22772]
>
> This proposal is to add the method
>
> Continuation#thread
Be more careful when you use continuation. It is very dangerous
weapon.
Don't abuse continuatio...
- 11:57 AM Ruby 1.9 Feature #2022 (Closed): Patch for openssl-1.0
- This issue was solved with changeset r26781.
Jeroen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 11:57 AM Ruby 1.9.1 Bug #2536 (Closed): openssl fails to compile
- This issue was solved with changeset r26781.
Jeroen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 08:54 AM Ruby 1.9 Bug #2824: Backtrace from Singleton Classes is Unclear
- The backtrace from singleton classes needs a space between 'singleton' and 'class'.
$ ruby -e 'class << self; x; end'
-e:1:in `singletonclass': undefined local variable or method `x' for #<Class:#<Object:0x83efde8>> (NameError)
from -e:1:in...
- 07:53 AM Bug #2823: IRB Crashes When Completing Method Names of BasicObjects
- $ irb -rirb/completion
irb(main):001:0> b=BasicObject.new
(Object doesn't support #inspect)
=>
irb(main):002:0> b.<Tab>
/usr/local/lib/ruby/1.9.1/irb/completion.rb:143:in `eval': undefined method `methods' for #<BasicObject:0x8ea2e84> (NoM...
- 03:34 AM Ruby 1.9 Bug #2822 (Closed): Russian characters are missing from word characters types in Regexp
02/27/2010
- 11:20 PM Ruby 1.9 Bug #2822: Russian characters are missing from word characters types in Regexp
- "Hello".match(/[\w]*/)
=> #<MatchData "Hello">
"Привет".match(/[\w]*/)
=> #<MatchData "">
"Привет".match(/[А-Яа-яЁё\w]*/)
=> #<MatchData "Привет">
Non word character type \W behaves similar.
- 12:46 PM Ruby 1.9 Bug #2821: Dir.[] returns unmatched path
- 遠藤です。
mingw で sample/test.rb が失敗します。調べてみると、以下の Dir.[] の
呼び出し結果がおかしいような気がします。
$ cat t.rb
p Dir["C:/Ruby/ruby/{lib,sample,ext,test}/**/*.rb"].sort.first
$ ./ruby t.rb
"C:/Ruby/ruby/"
glob のパターンにマッチしていないと思うのですが、どうでしょうか。
--
Yusuke ENDOH ...
- 01:28 AM Ruby 1.9 Bug #1582 (Open): IO.new Raises Other Errors between 1.8 and 1.9
- 遠藤です。
なかださんの修正に regression があるみたいです。
いまから kosaki さんが詳細を書いてくれます。
--
Yusuke Endoh <mame@tsg.ne.jp>
- 01:13 AM Ruby 1.9 Bug #2796: IO behaviors on mingw
- akr さん
遠藤です。
以下のように、IO に関して Linux と mingw で挙動が違います。
それぞれ仕様でしょうか、バグでしょうか。
1) $ ./ruby -e 'f = File.open("foo", "w"); IO.for_fd(f.fileno, "r")'
linux: EINVAL
mingw: 何も言わない (gets したら EBADF)
参考: http://redmine.ruby-lang.org/issues/show/1582
2) $ ...
02/26/2010
- 07:34 PM Ruby 1.9 Bug #2795: readpartial after ungetc fails with text mode
- 遠藤です。
以下のようにすると、"a" が出力されることを期待するのですが、
EOFError になります。
$ echo -n a > foo.txt && ./ruby -e '
open("foo.txt", "r+t") do |f|
f.ungetc(f.getc)
p f.readpartial(2)
end
'
-e:4:in `readpartial': end of file reached (EOFError)
...
- 01:37 PM Ruby 1.8 Bug #2794: Aborted (core dumped) BUG on Ruby/DL
- 以下のコードでcore dumpします。
----
$ ruby -rdl/import -e 's=DL.strdup("\0"*1024);s[0,1023]="\xff"'
*** glibc detected *** ruby: free(): invalid next size (fast): 0x0808ec18 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7cdea85]
/li...
- 04:23 AM Ruby 1.8 Bug #2793: inherited hook now runs before Class.new block
- >> class A; def self.inherited(foo) foo.bar end end
=> nil
>> Class.new(A) { def self.bar; 'bar' end }
# 1.8.7
=> #<Class:0x1003452f0>
# 1.8.8 (regression or backport?)
NoMethodError: undefined method `bar' for #<Class:0x1003470a0>
# ...
- 03:29 AM Ruby 1.9 Bug #2253 (Closed): should Class.new(Class) raise TypeError?
- Fixed in r25449.
02/25/2010
- 11:48 PM Ruby 1.8.6 Bug #2792: String#to_f on Ruby-1.8.6-p399
- Ruby-1.8.6のString#to_fで、小数点の扱いがおかしいようです。
% ruby -v -e 'p "0.7".to_f'
ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
7.0
% ruby -v -e 'p "0.7".to_f'
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
0.7
- 07:06 AM Ruby 1.9.1 Bug #2791: Segmentation Fault in 1.9.1.p376
- Hello -
I was running my rspec suite on my Rails app, and got the following segmentation fault. I haven't been able to reproduce it, but I don't think the test failures or the object_id warnings had anything to do with it - I've had those befo...
- 03:30 AM Ruby 1.8.7 Bug #2790: IRB crash
- Not sure if this is an IRB bug, but thought you guys should know.
** My Ruby version: ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
** Version of Rubygems: 1.3.5
** Version of the Curb gem: 0.6.6.0
Transcript of IRB session:
---...
- 02:19 AM Ruby 1.8.6 Bug #2789: segfault in DL callbacks with mingw32
- Attempting to use a callback with DL in mingw32 causes segmentation fault.
(I apologize if I'm in the wrong place - I could not find any bug tracker or any sort of community for DL itself, and since it is included with ruby, I figured the tracke...
02/24/2010
- 01:26 PM Ruby 1.8 Bug #2468 (Closed): Array expansion inside case/when gives unexpected results
- > I wish "ref [Bug #...]" would have been parsed just like "cf: [Bug #...]".
#... may change when the ticket moves from bug to backport or something.
So writing ref #... is correct.
- 01:26 PM Ruby 1.8 Bug #2551 (Closed): case/when matches literal *[1,2,3] but not variable *ary
- > I wish "ref [Bug #...]" would have been parsed just like "cf: [Bug #...]".
#... may change when the ticket moves from bug to backport or something.
So writing ref #... is correct.
- 01:26 PM Ruby 1.8 Bug #2555 (Closed): "case n when *VALID" Broken in Ruby 1.8.8; affects Ruby on Rails
- > I wish "ref [Bug #...]" would have been parsed just like "cf: [Bug #...]".
#... may change when the ticket moves from bug to backport or something.
So writing ref #... is correct.
- 11:01 AM Ruby 1.9.1 Bug #2670 (Closed): Net::IMAP parser problem
- It seems that the fix has been already backported into the ruby_1_8_7 branch.
If you would like to see the fix in the ruby_1_8_6 branch, please create a ticket in the Ruby 1.8.6 project.
- 10:10 AM Bug #2788: nil.instance_eval pushes nil onto cref
- A singleton class definition of nil pushes NilClass onto cref.
It is reasonable because NilClass has nil as the only instance.
However, nil.instance_eval pushes nil onto cref, which means that method definitions are not permitted in that context...
- 10:09 AM Bug #2787 (Closed): nil.instance_eval pushes nil onto cref
- I'm sorry that I have sent this issue to the wrong ML.
I'll resubmit this issue later.
- 09:53 AM Bug #2787: nil.instance_eval pushes nil onto cref
- A singleton class definition of nil pushes NilClass onto cref.
It is reasonable because NilClass has nil as the only instance.
However, nil.instance_eval pushes nil onto cref, which means that method definitions are not permitted in that context...
- 08:24 AM Ruby 1.9 Bug #2786: Segfault when loading gem
- I am occasionally getting a segfault error when using cucumber 0.6.2 with latest ruby trunk (26744) in Mac OS X 10.6.1. It is happening about 25% of the time I run the cucumber command. Here's the full error:
http://gist.github.com/312461#file_...
- 05:36 AM Bug #2785: Resolv::DNS Requester#request not checking for nil result
- We've been using Resolv::DNS for some heavy-duty DNS querying, and came across this exception:
/usr/local/lib/ruby/1.8/resolv.rb:630:in `request': undefined method `data' for nil:NilClass (NoMethodError)
Although we haven't been able to repr...
- 04:09 AM Bug #2784: The formatting options hash passed to the to_yaml methods do nothing.
- At the moment, there appears to be no documented way to format the output of the various to_yaml methods. They all accept an options hash but the documentation does not specify what options may be passed.
Also, the use of to_yaml_style is undo...
- 02:49 AM Ruby 1.9.1 Bug #2783: Segmentation Fault (using libxml-ruby)
- I was running a program that creates a new XML node each iteration and save it to a file. I'm newbi using Ruby. This was the error text:
C:/workspace/netbeans/DespegarLogPreProcessor/lib/despegar_log_file.rb:36: [BUG] Segmentation fault
ruby 1...
02/23/2010
- 10:18 PM Ruby 1.9.1 Bug #2782: Binding#eval not completely indicative of its binding
- binding.eval("__FILE__") does not return the file from which the binding was created.
Given the purpose of binding it should hold that:
__FILE__ == binding.eval("__FILE__")
- 08:02 PM Ruby 1.9 Bug #2760 (Feedback): unable to cross-compile win32.c
- 05:03 PM Ruby 1.9 Feature #2084 (Assigned): Method#source_location and Methods Created with `attr`
- 08:48 AM Ruby 1.8.7 Bug #2781: crash when gc_mark()ing already free'd locals of cloned scope
- This causes a segfault on >= 1.8.7-p248
---
def def_x(arg)
Object.send :define_method, :x do
def_x lambda{}
end
end
GC.stress = true # unnecessary but makes it occur faster
def_x nil
n = 3 # minimum for crash, increase if...
- 01:04 AM Ruby 1.9.1 Bug #2780: "Handle is invalid" when accessing the file system from different threads (win32)
- Sometimes when building projects using our own build tool written in ruby, the ruby interpreter crashes on us. The build tool uses multiple threads to compile files in parallel. (Like "make -j 2")
First we got this backtrace:
C:/projekte/too...
02/22/2010
- 09:26 PM Ruby 1.8.7 Backport #2779: Net::HTTP#get raises NoMethodError
- I think this was introduced in Revision 25851:
require 'net/http'
nh = Net::HTTP.new("does_not_exist_at_all.com")
nh.get("/")
NoMethodError: undefined method `closed?' for nil:NilClass
from /usr/local/lib/ruby/1.8/net/http.rb:1060:in `requ...
- 08:29 PM Ruby 1.9 Bug #2543 (Assigned): rdoc patch for thwait.rb
- 05:58 PM Ruby 1.9 Feature #2778 (Closed): Regular Expression Named Group Matching does not work with String#[]
- This will be implemented in Ruby 1.9.2.
- 05:13 PM Ruby 1.9 Feature #2778: Regular Expression Named Group Matching does not work with String#[]
- I just noticed this:
irb(main):001:0> s = "Robert Klemme"
=> "Robert Klemme"
irb(main):002:0> s[/(?<first>\w+)\s+\w+/, :first]
TypeError: can't convert Symbol into Integer
from (irb):2:in `[]'
from (irb):2
from /op...
- 03:03 PM Ruby 1.9 Bug #2777: Invalid read of size 4 by redefining load
- なかだです。
At Mon, 22 Feb 2010 01:20:07 +0900,
Tanaka Akira wrote in [ruby-dev:40452]:
> 以下のように load 中に load を再定義すると、変なところをアクセスするのが
> valgrind で観測されます。
rb_method_entry_tにもrefcountを入れますかねぇ。
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦
- 07:43 AM Ruby 1.9 Bug #2776: can't return from lambda with outer block
- http://pc12.2ch.net/test/read.cgi/tech/1264635554/685 で質問されていたのですが
1.8 と 1.9 で lambda の挙動が異なっています。
----------------------------------------
# test.rb
class Foo
def initialize(&func)
@func = lambda(&func)
end
def bar(x)
@fu...
- 12:16 AM Ruby 1.9 Bug #2775: add explicit constraints for WONTFIX IO bug
- Hi, all
I propose writing two constraints into rdoc of IO:
- after running IO#dup, both an original IO and generated IO may
cause "bezarre behavior" except IO#close
- after running IO#reopen, an original IO that passed to reopen
may...
- 12:15 AM Ruby 1.9 Bug #2774: add explicit constraints for WONTFIX IO bug
- Hi, all
I propose writing two constraints into rdoc of IO:
- after running IO#dup, both an original IO and generated IO may
cause "bezarre behavior" except IO#close
- after running IO#reopen, an original IO that passed to reopen
may...
02/21/2010
- 09:27 PM Ruby 1.9 Bug #2769 (Closed): gem install cairo fails
- This issue was solved with changeset r26723.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- 11:51 AM Ruby 1.9.1 Bug #2773: lib/rubygems_version.rb is outdated.
- In r26721,
lib/rubygems.rb says:
module Gem
RubyGemsVersion = VERSION = '1.3.5'
while auto-generated (but version controlled) lib/rubygems/rubygems_version.rb says:
module Gem
RubyGemsVersion = '1.3.4'
This is a bit confusin...
- 06:16 AM Ruby 1.9 Feature #2772: Matrix: Calculating determinant using Bareiss algorithm [patch]
- Yu Ichino suggested to use a different algorithm to calculate the determinant of a matrix in [ruby-core:28166].
I second his proposal. To reduce the risk of this proposal to go without a response, I am creating this request.
Bareiss' algorit...
- 06:10 AM Ruby 1.9 Feature #2771: Matrix: constructor to build with block
- I believe the following simple constructor could be a helpful addition to matrix.rb
class Matrix
#
# Creates a matrix of +row_size+ x +column_size+.
# It fills the values by calling the given block,
# passing the current row and col...
- 04:46 AM Bug #2770: Matrix: determinant for rectangular matrices should raise an error [patch]
- Keiju,
$ rubydev -r matrix -e "puts Matrix[[1], [2], [3]].determinant"
0
This corresponds to the documentation, but is not mathematically valid, since the determinant for rectangular matrices is not defined (at least for now! http://bit.ly/...
- 12:16 AM Ruby 1.9 Bug #2769: gem install cairo fails
- なかださん
遠藤です。
r26465+r26466 の変更によって gem install cairo をしても cairo.so が
ビルドされなくなり、正常にインストールできなくなりました。
$ ../ruby-trunk-local/bin/ruby -rcairo -e ''
/home/mame/work/ruby-trunk-local/lib/ruby/gems/1.9.1/gems/cairo-1.8.1/src/lib/cairo.rb:42:in
`requ...
- 12:13 AM Ruby 1.9 Bug #2768: SEGV when using OpenSSL::Cipher (AES) in certain way
- this command gives me an SEGV on my boxes:
ruby -e 'require "openssl";OpenSSL::Cipher::AES128.new("ECB").update "testtesttesttest"'
while this command does not:
ruby -e 'require "openssl";OpenSSL::Cipher::AES128.new("ECB").update "testtes...
02/20/2010
- 05:33 PM Ruby 1.9 Bug #2767: YAML bug
- Start IRB, run:
require 'yaml'; YAML.load({"x"=>"\r\n P\r\nA"}.to_yaml)
result:
ArgumentError: syntax error on line 4, col 2: ` A'
from /opt/ruby-enterprise-1.8.6-20090610/lib/ruby/1.8/yaml.rb:133:in `load'
from /opt/ruby...
- 12:12 PM Ruby 1.9 Bug #2766: Cannot use CSV under windows 7
- I try to use Ruby under my windows 7 notebook. but I find that CSV cannot work. it alway throws " CSV::MalformedCSVError:Unquoted fields do not allow \r or \n(line 1)"
my system is windows 7
ruby 1.9.1p378(2010-01-10 revision 26273)[i386-mingw32...
- 02:25 AM Ruby 1.8.7 Bug #2764 (Rejected): Hash.new inconsistency when initialized with an enumerable
- This is by design.
Note that the behavior is actually different for all types of objects, even immediates
h = Hash.new(42)
h[:foo] # ==> 42
h.keys # ==> []
h = Hash.new { |hash, key| hash[key] = 42 }
h[:foo] # ==> 42
h.keys # ==...
- 02:25 AM Ruby 1.8.7 Bug #2765: unable to cross compile 1.8.7p249
- using 1.8.7p-249 to cross compile 1.8.7p249 results in
...
compiling dl
make[1]: Entering directory `/home/rdp/.rake-compiler/builds/ruby-1.8.7-p249/ext/dl'
Generating callback.func
mkmf.rb can't find header files for ruby at /home/rdp/inst...
- 01:45 AM Ruby 1.8.7 Bug #2764: Hash.new inconsistency when initialized with an enumerable
- When initializing a Hash with an enumerable as default value, Hash.new(obj) and Hash.new(&block) have different behaviours.
Example:
h = Hash.new([])
h[10] << 20
h #=> {}
h = Hash.new { |hash, key| hash[key] = [] }
hash[10] << 20
h #=> ...
Also available in: Atom