Project

General

Profile

Activity

From 06/28/2015 to 07/04/2015

07/04/2015

11:20 PM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
`Array#pop`だけで起きるような気がします。
~~~
$ for i in 1 5 10 100 1000 10000; do echo; echo $i; ruby2.2 -r ./test/lib/memory_status.rb -e "puts m0 = Memory::Status.new; 10000.times{[*1..$i].pop}; GC.start; puts m1 = Memory::Status.new; p m1.rss.f...
nobu (Nobuyoshi Nakada)
03:15 PM Bug #11332: Arrayの操作でcrubyインタプリタのメモリリークが起きる
`ruby -e 'loop { [1, 2, 3, 4].tap(&:pop).sort! }'` とすると、同じ現象と思われるメモリ増加が確認できました。
(ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14])
`loop { [1, 2, 3, 4, 5].tap(&:pop).sort! }` でも `loop { [1, 2, 3].tap(&:pop).sort! }` でもメモリ増...
wanabe (_ wanabe)
02:35 PM Bug #11332 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです
`Array` の `sort!` と、`pop` または `shift` の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。
以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメモ...
metanest (Makoto Kishimoto)
09:28 PM Bug #10902: require("enumerator") scans LOAD_PATH 2x on every invocation
I tried to fix it int load.c, but failed rubyspec:
http://80x24.org/spew/m/1436044472-18990-1-git-send-email-e@80x24.org.txt
However, this one-liner seems to work:
~~~diff
--- a/enumerator.c
+++ b/enumerator.c
@@ -2060,6 +2060,...
normalperson (Eric Wong)
04:53 PM Revision 4ea870cd (git): * 2015-07-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:52 PM Revision 805d0a46 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:54 PM Bug #11334 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
wanabe (_ wanabe)
02:47 PM Bug #11334 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです

Array の sort! と、pop または shift の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。

以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメ...
metanest (Makoto Kishimoto)
02:54 PM Bug #11333 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
「メールをチケットにする」操作のミスで重複チケットを作ってしまったので閉じます。
失礼いたしました。
wanabe (_ wanabe)
02:35 PM Bug #11333 (Closed): Arrayの操作でcrubyインタプリタのメモリリークが起きる
きしもとです

Array の sort! と、pop または shift の操作を組み合わせると、わずか
ですが ruby インタプリタのメモリリークを引き起こすようです。多数回
繰返すと、どんどん大きくなります。

以下のサンプルを手元の環境(FreeBSD/amd64のruby 2.1.6、ruby 2.2.2、
trunk (r51120) )で試すと、どれもインタプリタのプロセスのメモリ
サイズが大きくなっていきます(最後はメ...
metanest (Makoto Kishimoto)
02:25 PM Bug #11060: load(fifo) blocks whole process
Backported into `ruby_2_2` branch at r51143. nagachika (Tomoyuki Chikanaga)
02:24 PM Revision 31539009 (git): merge revision(s) 50887,50896,50902: [Backport #11060]
* file.c (rb_file_load_ok): try opening file without gvl not to
lock entire process. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:54 AM Revision 39be41cb (git): all?, any?, one?, none? of empty Enumerable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:43 AM Revision aebf152e (git): * Add test case for empty array and first method with args.
Patch by @yui-knk [fix GH-955]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
10:39 AM Revision a894e920 (git): * Add test for `Enumerable#sort` with block. Patch by @yui-knk
[fix GH-954]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:49 AM Revision df11c9c5 (git): enum.c: remove volatile, use RB_GC_GUARD
volatile appears unnecessary in most cases as the VALUEs are used as
arguments of uninlined functions. Even worse, volatile can be
insufficient in places where RB_GC_GUARD is necessary.
* enum.c (zip_ary): remove volatile, use RB_GC_GU...
Eric Wong
05:33 AM Feature #11331 (Closed): [PATCH] load.c: use fstring for loaded features and expanded load path
Loaded features is an obvious candidate for fstring since
feature paths of Ruby sources are included in iseq locations,
and iseq locations are in the fstring table anyways.
Deduplicating expanded load path can reuse old objects, sin...
normalperson (Eric Wong)
05:28 AM Feature #11330 (Closed): [PATCH] string.c: ensure String#freeze resizes internal buffer
rb_str_freeze may resize oversized buffers to save memory, so favor
it over rb_obj_freeze. This is useful because IO methods do not
prematurely shrink buffers, as they are likely to be overwritten
with full data.
* string.c (Init_...
normalperson (Eric Wong)
04:38 AM Bug #11326: Defining a writer as a Struct member allowed?
nobu@ruby-lang.org wrote:
> Eric Wong wrote:
> > I suggest banning it (barely-tested patch):
>
> +1

OK with matz to commit my patch? (+ tests)?

Also, what about '?' and '!' in field names?
Can we continue to allow those?
I ...
normalperson (Eric Wong)
01:43 AM Bug #11222 (Closed): make test-all 時の TESTS に -j オプションをつけるとファイルが多重ロードされる
Applied in changeset r51138.
----------
test_case.rb: fix multiple load
* lib/rubygems/test_case.rb (teardown): do not delete features
loaded from the original load paths, the same libraries should
be loaded again when the same fea...
nobu (Nobuyoshi Nakada)
01:43 AM Revision 5c19a5fa (git): test_case.rb: fix multiple load
* lib/rubygems/test_case.rb (teardown): do not delete features
loaded from the original load paths, the same libraries should
be loaded again when the same features are required.
[ruby-dev:49031] [Bug #11222]
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)
01:30 AM Misc #11329 (Closed): Improved documentation grammar for open-uri#open option
Minor documentation readability improvement vpafodaf (D Hudson)
12:47 AM Revision 443ce92b (git): * 2015-07-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:47 AM Revision 8bfc0b65 (git): vm.c: reduce branches for always-set VM fields
thgroup_default, mark_object_ary, load_path, load_path_snapshot,
expanded_load_path, loaded_features, loaded_features_snapshot,
top_self, defined_module_hash are always defined at process startup.
This makes it wasteful to have extra br...
Eric Wong

07/03/2015

08:14 PM Bug #11201: pkg_config NoMethodError when finding other -config program
Backported into `ruby_2_2` branch at r51135. nagachika (Tomoyuki Chikanaga)
09:45 AM Bug #11201: pkg_config NoMethodError when finding other -config program
ruby_2_1 r51123 merged revision(s) 50717. usa (Usaku NAKAMURA)
08:13 PM Revision 7b2a41d3 (git): merge revision(s) 50717: [Backport #11201]
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/r...
nagachika (Tomoyuki Chikanaga)
08:05 PM Feature #10672: Enable SSL on cache.ruby-lang.org
This is really great, and addresses the hardest part of my request. Thank you to Fastly for supporting the open source Ruby project with TLS for cache.ruby-lang.org, and to the Ruby project for enabling it!
I'll move the latter part o...
konklone (Eric Mill)
12:56 AM Feature #10672 (Closed): Enable SSL on cache.ruby-lang.org
I launched https CDN at 03/07/2015 JST.
Please use https://cache.ruby-lang.org
I appreciated fastly's suppot.
hsbt (Hiroshi SHIBATA)
07:58 PM Bug #11192: capture group special variable with large index invokes UB
Backported into `ruby_2_2` at r51134. nagachika (Tomoyuki Chikanaga)
07:33 PM Bug #11192: capture group special variable with large index invokes UB
sorry, previous commet is a mistake. nagachika (Tomoyuki Chikanaga)
07:31 PM Bug #11192: capture group special variable with large index invokes UB
Backported into `ruby_2_2` branch at r51132. nagachika (Tomoyuki Chikanaga)
09:39 AM Bug #11192: capture group special variable with large index invokes UB
ruby_2_1 r51122 merged revision(s) 50671. usa (Usaku NAKAMURA)
07:57 PM Revision 72fa2ec3 (git): merge revision(s) 50671: [Backport #11192]
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]
* util.c (ruby_scan_digits): make pu...
nagachika (Tomoyuki Chikanaga)
07:45 PM Bug #11117: When you refine String with to_regexp, then it breaks Regexp.try_convert even when the refinement is not used
Backported into `ruby_2_2` branch at r51133. nagachika (Tomoyuki Chikanaga)
08:55 AM Bug #11117: When you refine String with to_regexp, then it breaks Regexp.try_convert even when the refinement is not used
ruby_2_1 r51119 merged revision(s) 50430,50440. usa (Usaku NAKAMURA)
07:44 PM Revision 8ff3a728 (git): merge revision(s) 50430,50440: [Backport #11117]
* vm_eval.c (rb_method_call_status): undefined refined method is
not callable unless using. [ruby-core:69064] [Bug #11117]
* vm_eval.c (rb_method_call_status): resolve refined method entry
to check if undefi...
nagachika (Tomoyuki Chikanaga)
07:33 PM Bug #11162: Update documentation for CMath library
Backported into ruby_2_2 branch at r51132. nagachika (Tomoyuki Chikanaga)
09:13 AM Bug #11162: Update documentation for CMath library
ruby_2_1 r51121 merged revision(s) 50793,51120. usa (Usaku NAKAMURA)
07:31 PM Revision 306ed7c0 (git): merge revision(s) 50793,51120: [Backport #11162]
* lib/cmath.rb: [DOC] Add docs [ci skip][Fix GH-909][Bug #11162]
Patch provided by @davydovanton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
07:30 PM Bug #11327 (Closed): Improve duplicate key warning.
This change rephrases the duplicate key warning, which causes some confusion.
Before:
~~~
/Users/andre/bug.rb:4: warning: duplicated key at line 5 ignored: :max_instances
~~~
After:
~~~
/Users/andre/bug.rb:4: warning: key ...
superdealloc (Andre Medeiros)
07:27 PM Revision 5f938625 (git): merge revision(s) 50972:
test_gem_remote_fetcher.rb: get rid of errors
* test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server):
temporary measure for "dh key too small" error of OpenSSL
1.0.2c+.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
nagachika (Tomoyuki Chikanaga)
06:55 PM Bug #11045: ruby/test_m17n_comb.rb test_str_crypt tests platform-specific crypt behavior
Backported into `ruby_2_2` branch at r51130. nagachika (Tomoyuki Chikanaga)
06:55 PM Revision aa4dc2b0 (git): merge revision(s) 50366: [Backport #11045]
* test/ruby/test_m17n_comb.rb: test_str_crypt split into strict
and non-strict versions to allow masking out non-strict when
glibc version cannot be determined (#11045).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@...
nagachika (Tomoyuki Chikanaga)
06:51 PM Bug #11254: [BUG] no corresponding cfp
Backported into `ruby_2_2` at r51129. nagachika (Tomoyuki Chikanaga)
06:50 PM Revision b94b3260 (git): merge revision(s) 50850: [Backport #11254]
vm.c: break from orphan block
* vm.c (rb_vm_search_cf_from_ep): break from orphan block is
possible condition, but not [BUG].
[ruby-core:69548] [Bug #11254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5112...
nagachika (Tomoyuki Chikanaga)
12:55 PM Revision 6282b156 (git): * test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
fix previous commit. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:37 AM Bug #11278: remove rb_control_frame_t::klass
I committed this change. If you find any regression, please report about it.
I measured some applications with https://github.com/ko1/class_stat gem. This gem reports class/module/T_ICLASS usage.
For example, my rails app https://g...
ko1 (Koichi Sasada)
11:25 AM Bug #11278 (Closed): remove rb_control_frame_t::klass
Applied in changeset r51126.
----------
* method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner ...
ko1 (Koichi Sasada)
11:25 AM Revision 8895c18d (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:25 AM Bug #11279 (Closed): remove rb_control_frame_t::klass
Applied in changeset r51126.
----------
* method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner ...
ko1 (Koichi Sasada)
11:24 AM Revision 5e8a1474 (git): * method.h: introduce rb_callable_method_entry_t to remove
rb_control_frame_t::klass.
[Bug #11278], [Bug #11279]
rb_method_entry_t data belong to modules/classes.
rb_method_entry_t::owner points defined module or class.
module M
def foo; end
end
In this case, owner is M.
...
ko1 (Koichi Sasada)
11:05 AM Bug #11060: load(fifo) blocks whole process
Nobuyoshi Nakada wrote:
> Franck Verrot wrote:
> ...
My automatic translator tricked me :-)
> > Once running, it seems that loading from a FIFO isn't supported (it's expecting a regular file). Here's a patch for making `load` work w...
cesario (Franck Verrot)
08:52 AM Bug #11060: load(fifo) blocks whole process
ruby_2_1 r51118 merged revision(s) 50887,50896,50902. usa (Usaku NAKAMURA)
10:30 AM Revision b0ed2765 (git): * test/ruby/test_require.rb (TestRequire#test_loading_fifo_threading):
ignore Errno::ENOENT on unlinking. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:15 AM Revision 759d1288 (git): merge revision(s) 49235: [Backport #10711]
numeric.c: fix message
* numeric.c (coerce_failed): fix the error message on non-flonum
platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:43 AM Revision f81db3c8 (git): merge revision(s) 50717: [Backport #11201]
* lib/mkmf.rb (pkg_config): split --libs if --libs-only-l option
is not available. patch in [ruby-core:69428] by Hans Mackowiak.
[ruby-core:69421] [Bug #11201]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/r...
U.Nakamura
09:39 AM Revision bf571987 (git): merge revision(s) 50671: [Backport #11192]
* compile.c (iseq_compile_each): out of range NTH_REF is always
nil.
* parse.y (parse_numvar): check overflow of NTH_REF and range.
[ruby-core:69393] [Bug #11192]
* util.c (ruby_scan_digits): make pu...
U.Nakamura
09:25 AM Bug #11326: Defining a writer as a Struct member allowed?
Eric Wong wrote:
> I suggest banning it (barely-tested patch):
+1
nobu (Nobuyoshi Nakada)
08:28 AM Bug #11326: Defining a writer as a Struct member allowed?
peter-rl@suschlik.de wrote:
> I don't have a strong opinion whether defining a writer member should
> ...
I suggest banning it (barely-tested patch):
~~~diff
--- a/struct.c
+++ b/struct.c
@@ -12,6 +12,7 @@
#include "internal.h"...
normalperson (Eric Wong)
07:38 AM Bug #11326 (Closed): Defining a writer as a Struct member allowed?
Hi,
yesterday I've stumbled on weird behavior defining writers as Struct members.
While this code works on MRI it breaks on JRuby and Rubinius:
```ruby
Struct.new(:x=).new(nil).x = 23
```
On JRuby it fails with:
```
Arg...
splattael (Peter Leitzen)
09:12 AM Revision a57c9250 (git): merge revision(s) 50793,51120: [Backport #11162]
* lib/cmath.rb: [DOC] Add docs [ci skip][Fix GH-909][Bug #11162]
Patch provided by @davydovanton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:08 AM Revision 6ddfcd93 (git): * lib/cmath.rb: shouldn't use non-ASCII characters in documentation. as a
custom, single quote is seen as the same as apostrophe in computer typography.
[skip ci]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:55 AM Revision 1bd36e36 (git): merge revision(s) 50430,50440: [Backport #11117]
* vm_eval.c (rb_method_call_status): undefined refined method is
not callable unless using. [ruby-core:69064] [Bug #11117]
* vm_eval.c (rb_method_call_status): resolve refined method entry
to check if undefi...
U.Nakamura
08:51 AM Revision dffe87c7 (git): merge revision(s) 50887,50896,50902: [Backport #11060]
* file.c (rb_file_load_ok): try opening file without gvl not to
lock entire process. [Bug #11060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@51118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:33 AM Bug #10967: Is "warning: private attribute?" wrong?
Is this a spec change or a bug? usa (Usaku NAKAMURA)
07:15 AM Feature #10594: Comparable#clamp
That does make a lot of sense. I'll send another pull request. nerdinand (Ferdinand Niedermann)
05:30 AM Revision 3e5988b2 (git): file.c: _wfreopen_s on mingw
* win32/file.c: some mingw compilers need a tweek for the
declarations of _wfreopen_s. [Bug #11320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:25 AM Bug #11324 (Closed): Encoding to a String's own encoding with some options fails
Applied in changeset r51116.
----------
transcode.c: empty encoding name
* transcode.c (rb_econv_set_replacement): target encoding name can
be empty now. [ruby-core:69841] [Bug #11324]
nobu (Nobuyoshi Nakada)
03:25 AM Revision e0ec0c7d (git): transcode.c: empty encoding name
* transcode.c (rb_econv_set_replacement): target encoding name can
be empty now. [ruby-core:69841] [Bug #11324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/02/2015

11:19 PM Revision b2a36083 (git): object.c: fix up r51039
* object.c (convert_type): conversion without "to_" prefix is not
implicit. fix up r51039.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:24 PM Revision 5d8f0a42 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:23 PM Feature #11318 (Closed): [PATCH] delay `exception: false' checks for minor speedup
Applied in changeset r51113.
----------
delay `exception: false' checks for minor speedup
Delay hash lookups until we are about to hit an exception. This
gives a minor speedup ratio of 2-3% in the new bm_io_nonblock_noex
benchmark as ...
Anonymous
10:22 PM Revision df4e282e (git): delay `exception: false' checks for minor speedup
Delay hash lookups until we are about to hit an exception. This
gives a minor speedup ratio of 2-3% in the new bm_io_nonblock_noex
benchmark as well as reducing code.
* benchmark/bm_io_nonblock_noex.rb: new benchmark
* ext/openssl/ossl...
Eric Wong
10:13 PM Revision 79d757b1 (git): * 2015-07-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:13 PM Revision 911cf9e8 (git): dir.c: set errno
* dir.c (replace_real_basename): Win32 API does not set errno, get
the last error by GetLastError() and map to errno. [Bug #10015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:48 PM Bug #11174: threads memory leak
I've checked the bug on older versions and the 2.2-head: leaks all but 1.8.7
~~~
$ ruby --version
ruby 2.2.3p139 (2015-07-01) [x86_64-linux]
$ ruby /tmp/thread_memleak4.rb
VmRSS: 47152 kB
VmRSS: 72872 kB
VmRSS: 90448...
cvss (Kirill Vechera)
01:48 PM Feature #11325 (Rejected): Block is passed to initializer implicitly even when I asked not to.
It may be surprising to you, but this is by design.
You have to explicitly pass an empty block when using `super`:
super(&nil)
There's also no way to change this even if we wanted to because of incompatibilities.
marcandre (Marc-Andre Lafortune)
01:05 PM Feature #11325 (Rejected): Block is passed to initializer implicitly even when I asked not to.
This works as expected:
~~~ruby
class Foo
attr_reader :block
def initialize(&block)
@block = block
end
end
foo = Foo.new { :foo }
foo.block.nil?
# => false
~~~
But then I'm trying to stop passing a block to ...
nepalez (Andrew Kozin)
01:05 PM Revision 5ef2665a (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:32 PM Revision d7dc0c5f (git): dir.c: show warnings
* dir.c (replace_real_basename): show warnings at errors.
[Bug #10015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:43 AM Bug #11244 (Closed): [BUG] rb_gc_mark(): 0x00000001f34020 is T_NONE
Applied in changeset r51108.
----------
* gc.c: remove `#define RGENGC_OBJ_INFO 1' line introduced to
debug Bug #11244.
ko1 (Koichi Sasada)
09:42 AM Revision c36c43dc (git): * gc.c: remove `#define RGENGC_OBJ_INFO 1' line introduced to
debug Bug #11244.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:36 AM Revision 771fceba (git): * gc.c (rb_raw_obj_info): separated from rb_obj_info().
Fill internal object information into passed buffer.
* gc.h: declare rb_raw_obj_info().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:21 AM Bug #11324: Encoding to a String's own encoding with some options fails
See also #8123 sakuro (Sakuro OZAWA)
08:20 AM Bug #11324 (Closed): Encoding to a String's own encoding with some options fails
To encode a `String` instance to its own encoding seems to be a bad idea, but following result looks strange:
```ruby
s = "A\nB\r\nC".force_encoding('US-ASCII')
#=> "A\nB\r\nC"
s.encode('US-ASCII')
#=> "A\nB\r\nC"
s.encode('US-AS...
sakuro (Sakuro OZAWA)
08:08 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
Dear D.E. Akers: Your workaround works like a charm. Thank you very much. tbsprs (Tobias Preuss)
07:36 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
I'm a bit late, but here it is rebased for Tau Day 2015:
* https://github.com/ruby/ruby/pull/644
sbaird (Simon Baird)
07:16 AM Bug #10015 (Closed): Performance regression in Dir#[]
Applied in changeset r51106.
----------
dir.c: update path type
* dir.c (replace_real_basename): update path type by the target
attributes if possible, to improve the performance. [Bug #10015]
nobu (Nobuyoshi Nakada)
07:15 AM Revision 5a2b77ff (git): dir.c: update path type
* dir.c (replace_real_basename): update path type by the target
attributes if possible, to improve the performance. [Bug #10015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:14 AM Bug #11314: [BUG] Segmentaton fault
thanks for good advices.
i"ll try to update ffi gem.
KeisukeSatomi (keisuke satomi)
05:48 AM Revision 37c8a704 (git): * st.c: get rid of VC++'s warnings of C4700 (uninitialized local
variable used). I think that these are wrong, but should shut them
up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:15 AM Revision a499d1e6 (git): rubygems.rb: use @gem_prelude_index
* lib/rubygems.rb (Gem.load_path_insert_index): search
@gem_prelude_index first.
* lib/rubygems/test_case.rb (Gem::TestCase#setup): keep already
expanded paths to prserve instance variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nobu (Nobuyoshi Nakada)
05:12 AM Revision aae22e34 (git): ruby.c: copy initial load path marks
* ruby.c (process_options): also copy initial load path marks at
setting load paths encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:56 AM Revision 0ec5a272 (git): revert r51101
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:34 AM Feature #11323: Documentation update on how uniq works / guarantee of order
`Array#uniq` is implemented using a hash table; since hashes in Ruby preserve insertion order, so too does `Array#uniq`. The following simplified translation to Ruby should help clarify what's going on in `rb_ary_uniq()`:
``` ruby
cl...
0x0dea (D.E. Akers)
01:39 AM Feature #11323 (Open): Documentation update on how uniq works / guarantee of order
Greetings,
I was looking at Array.uniq and I was wondering how the code made the array unique.
There are 2 different possible outcomes for making an array unique.
For example:
[1,2,1]
The first value is kept and all subseque...
wilburlo (Daniel Lo)
03:32 AM Revision 0ad76e65 (git): skip test_dash_i_beats_gems
* test/rubygems/test_require.rb (test_dash_i_beats_gems): skip
because the target feature just does not work. requiring a gem
inserts its paths and its dependents' paths at the beginning of
$LOAD_PATH, regardless -I options.
git-...
nobu (Nobuyoshi Nakada)
03:26 AM Revision 21a55e35 (git): test_gem_server.rb: Don't specify port number
* test/rubygems/test_gem_server.rb (process_based_port): use
dynamically chosen port numberss to get rid of conflicts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:00 AM Revision ad0c1466 (git): * test/rubygems/test_gem_specification.rb: skip tests which the
platform does not permit the filename of its test file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:36 AM Feature #11298 (Closed): [PATCH] socket: memoize common socket families in fptr->mode
Applied in changeset r51097.
----------
socket: memoize common socket families in fptr->mode
This provides a minor speedup by avoiding an extra syscall
require 'socket'
require 'benchmark'
nr = 100000
msg = 'hello world'
buf = ''...
Anonymous
02:36 AM Revision f7124a2c (git): fix redefinitions
* test/rubygems/test_gem_resolver_git_specification.rb: require
rubygems/installer.rb before Gem::TestCase#setup runs, otherwise
as Gem::TestCase#teardown restores $LOADED_FEATURES to the state
at that time, the requiring the file ...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 6dda4f17 (git): socket: memoize common socket families in fptr->mode
This provides a minor speedup by avoiding an extra syscall
require 'socket'
require 'benchmark'
nr = 100000
msg = 'hello world'
buf = ''
size = msg.bytesize
puts(Benchmark.measure ...
Eric Wong
01:30 AM Feature #11139: [PATCH] socket: support accept `sock_nonblock: (true|false)'
I think we need to preserve existing behavior with accept_nonblock in case
there is code which shares accepted FDs with non-Ruby processes (or even
passes it to a C extension).
normalperson (Eric Wong)
01:30 AM Revision ccd85f7b (git): * lib/rubygems/resolver.rb: fixed NameError of Gem::Util::NULL_DEVICE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:51 AM Revision 8cb26a09 (git): * lib/rubygems/resolver.rb: fix error of null device reference with DOSISH
platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

07/01/2015

09:52 PM Revision 71e8a4e6 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:52 PM Revision 071ca77a (git): * 2015-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:50 PM Revision effdbf59 (git): * lib/rubygems: Update to RubyGems HEAD(c202db2).
this version contains many enhancements see http://git.io/vtNwF
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:52 PM Feature #6284: Add composition for procs
I support the proposed `Proc#*`/`Method#*` syntax and semantics.
The feature being added is **function composition**; not relation composition, not method chaining. Its target audience is most likely to read `f * g` as “`f` after `g`”...
tomstuart (Tom Stuart)
02:52 PM Revision 9c4ef4b1 (git): fix a failure without zlib
* test/net/http/test_httpresponse.rb
(HTTPResponseTest#test_read_body_content_encoding_deflate_uppercase):
fix failure without zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
02:28 PM Bug #10015: Performance regression in Dir#[]
I ran Adrien's benchmark on Windows:
Besides showing a similar performance regression it looks like Dir[] is dramatically slower on Windows:
ruby-2.2.2p95: 161.4
ruby-2.1.6p336: 31.8
(Windows 8.1, SSD, NTFS)
I guess that is ...
daniel-rikowski (Daniel Rikowski)
01:50 PM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
The problem is not specific to `OpenURI`:
$ curl -L http://apps.london.ca/OpenData/ShapeFiles_Zipped/2010_skateboard_parks_shp.zip
curl: (47) Maximum (50) redirects followed
It seems the `302 Object Moved` handler on this ...
0x0dea (D.E. Akers)
11:02 AM Feature #11322 (Closed): OpenUri: RuntimeError: HTTP redirection loop
Trying to download [this file](http://apps.london.ca/OpenData/ShapeFiles_Zipped/2010_skateboard_parks_shp.zip) from [this website](http://www.london.ca/city-hall/open-data/Pages/Open-Data-Data-Catalogue.aspx) with [`OpenUri`](http://ruby... tbsprs (Tobias Preuss)
01:42 PM Bug #11317: Segmentation fault
It depends.
So ask the author(s) of that gem, who should know how it uses ffi.
nobu (Nobuyoshi Nakada)
12:45 PM Bug #11317: Segmentation fault
Nobuyoshi Nakada wrote:
> It's a bug of childprocess gem which uses ffi, not selenium-webdriver.
how to fix this issue than .
hitesh770 (hitesh vishal)
12:27 PM Bug #11281: Unexpected behaviour in HTTP header processing
Nobuyoshi Nakada wrote:
> Shishir Joshi wrote:
> ...
Yes. Nil header doesn't make sense and should be skipped. But I'm not really convinced that this is a good case to raise an exception. Your thoughts?
shishir127 (Shishir Joshi)
09:55 AM Revision 051a7499 (git): vm_method.c: remove unused code
* vm_method.c (rb_method_entry_make): remove unused code to
prohibit method re-definition, introduced at r34983.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:27 AM Bug #3351: stack overflow on super
Just now, we avoid this issue by putting `klass` into each frame.
However, the workaround is remaining.
Now, ancestors is here:
```
[B, Override, A, Override, Base, Object, Kernel, BasicObject]
```
and now MRI calls `Overri...
ko1 (Koichi Sasada)
08:35 AM Feature #11309: Iterator over string matches
Martin Dürst wrote:
> What do you think looks too Perlish? Is it just the $`?
That is one. But a more severe one is that (I thought) I had to initialize `a = []` in a separate line.
> ...
These are better. But I still don't like t...
sawa (Tsuyoshi Sawada)
01:25 AM Feature #11309: Iterator over string matches
What do you think looks too Perlish? Is it just the $`?
In that case, having something like $MATCH (as an alias to $~) might help:
"a_b_c_d_e".scan("_").with_object([]) { |_, a| a.push $MATCH.post_match }
Even without that,
"...
duerst (Martin Dürst)
08:18 AM Revision e13f05f9 (git): vm_method.c: no NOEX macros
* vm_method.c (rb_method_entry_make): NOEX macros are no longer
defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:18 AM Revision 8aee7f7e (git): method.h: update argument checks
* method.h (METHOD_ENTRY_VISI_SET, METHOD_ENTRY_BASIC_SET),
(METHOD_ENTRY_SAFE_SET, METHOD_ENTRY_FLAGS_SET): get rid of
negative arguments, and safe leve is restricted to 1 now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5108...
nobu (Nobuyoshi Nakada)
08:17 AM Revision f35b09c1 (git): vm_method.c: orignial visibilities
* vm_method.c (Init_eval_method): copy the orignial visibilities,
instead of setting explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:17 AM Revision c0e2f927 (git): test_object.rb: use assert_separately
* test/ruby/test_object.rb (test_redef_method_missing): use
assert_separately to catch segfaults and show the diagnostic
reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:17 AM Revision 5f745b83 (git): struct.c: AREF_HASH_UNIT enum
* struct.c (AREF_HASH_UNIT): name a magic number, which is shared
by struct_member_pos_probe and struct_set_members.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:16 AM Revision f524211e (git): struct.c: AREF_HASH_THRESHOLD enum
* struct.c (AREF_HASH_THRESHOLD): make an enum not to exceed the
int range.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:55 AM Revision 8430f93b (git): * Add test for Enumerable#none? [fix GH-950] Patch by @yui-knk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:30 AM Revision a672fd8b (git): struct.c: hide internal objects
* struct.c (struct_set_members): hide internal back_members
object, and members object does not need to be duped as it
should be frozen and hidden.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51082 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
12:28 AM Revision e4984cf2 (git): struct.c: fix implicit conversions
* struct.c (struct_member_pos): revert r51080 to fix other
implicit conversions but cast the return value to fix the
previous implicit conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51081 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)

06/30/2015

11:48 PM Revision f91a5563 (git): * struct.c (struct_member_pos): avoid implicit conversion loses
integer precision: 'long' to 'int'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:07 PM Revision b49075cd (git): move RB_GC_GUARD responsibility to rb_add_method_iseq
This simplifies all the callers and makes code easier to use
and review. I was confused about the need for RB_GC_GUARD
in define_{aset,aref}_method of struct.c without reading
rb_add_method_iseq.
Likewise, do the same for rb_iseq_clone...
Eric Wong
08:46 PM Revision c7548028 (git): * 2015-07-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:45 PM Revision cef8325e (git): struct.c: speedup for big structs
use simple custom open-addressing hash for big structs.
Original-patch-by: Sokolov Yura aka funny_falcon <funny.falcon@gmail.com>
in https://bugs.ruby-lang.org/issues/10585
* struct.c (AREF_HASH_THRESHOLD): new macro
(id_back_members...
Eric Wong
08:18 PM Feature #10585: struct: speedup struct.attr = v for first 10 attributes and struct[:attr] for big structs
Eric Wong <normalperson@yhbt.net> wrote:
> Thanks, I've committed 0002, 0003, and would like to commit a
> slightly-updated 0004 soon unless somebody else objects:
>
> Updated 0004:
> http://80x24.org/spew/m/f5c7f28bff5e378b714...
normalperson (Eric Wong)
07:17 PM Bug #11249: Fix require paths for BigDecimal and io-console
Backported into `ruby_2_2` branch at r51076. nagachika (Tomoyuki Chikanaga)
07:17 PM Revision 9a3e7b69 (git): merge revision(s) 50860: [Backport #11249]
* ext/bigdecimal/bigdecimal.gemspec: Fix require paths for released gem.
[fix GH-929] Patch by @voxik
* ext/io/console/io-console.gemspec: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51076 b2...
nagachika (Tomoyuki Chikanaga)
07:16 PM Bug #11221: Fix indentation in Zlib documentation
Backported into `ruby_2_2` branch at r51075. nagachika (Tomoyuki Chikanaga)
07:15 PM Revision b46a497a (git): merge revision(s) 50834: [Backport #11221]
* ext/zlib/zlib.c: Fix indentation for rdoc.
[Bug #11221][ruby-core:69465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:55 PM Bug #10871: Sclass thread unsafe due to CREF sharing
ko1 san, thank you for updated patch. I confirmed that make check && make test-rubyspec passed with it.
But, I don't have confidence about the importance of this workaround. It might introduces another regression. I want to deliberate u...
nagachika (Tomoyuki Chikanaga)
02:12 PM Revision cb85fb9c (git): io.c: remove unnecessary shared
* io.c (rb_io_reopen): FilePathValue() ensures the path
NUL-terminated and frozen, so it is unnecessary to make it shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:11 PM Revision 347da440 (git): ensure paths NUL-terminated
* dir.c (check_dirname): ensure path name NUL-terminated for
SHARABLE_MIDDLE_SUBSTRING.
* io.c (rb_sysopen): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:04 PM Revision 24a72a17 (git): file.c: not xfree
* win32/file.c (rb_freopen): should free rb_w32_mbstr_to_wstr
result instead of xfree.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:39 PM Feature #6284: Add composition for procs
Pablo Herrero wrote:
> I don't believe you need a pure PF language to benefit from a feature like this. Many ETL projects like transproc (https://github.com/solnic/transproc) would probably find it useful too.
Transproc is what actua...
mudge (Paul Mucur)
11:37 AM Feature #6284: Add composition for procs
Martin Dürst wrote:
> I'm teaching Haskell in a graduate class, so I'm quite familiar with function composition and use it a lot, but the original example isn't convincing at all. For me, in Ruby, something like val.strip.capitalize rea...
pabloh (Pablo Herrero)
08:35 AM Feature #6284: Add composition for procs
Martin Dürst wrote:
> I'm teaching Haskell in a graduate class, so I'm quite familiar with function composition and use it a lot, but the original example isn't convincing at all. For me, in Ruby, something like val.strip.capitalize rea...
Eregon (Benoit Daloze)
08:21 AM Feature #6284: Add composition for procs
I'm teaching Haskell in a graduate class, so I'm quite familiar with function composition and use it a lot, but the original example isn't convincing at all. For me, in Ruby, something like val.strip.capitalize reads much, much better th... duerst (Martin Dürst)
10:26 AM Feature #10594: Comparable#clamp
Hans Mackowiak wrote:
> hm might it be a good idea to have such a function directly in Comparable too?
> ...
I think your suggestions make a great deal of sense. That `#clamp` should be defined in terms of `#<=>` makes `Comparable` its...
0x0dea (D.E. Akers)
08:43 AM Feature #10594: Comparable#clamp
hm might it be a good idea to have such a function directly in Comparable too?
like "x".chomp("a".."e") #=> "e"
hm maybe have it a second way to call it with using "x".chomp("a", "e") too similar to Comparable#between?
Hanmac (Hans Mackowiak)
02:18 AM Feature #10594: Comparable#clamp
Ferdinand Niedermann wrote:
> How would I use the operators?
I've attached an implementation of `num_clamp()` which uses `rb_funcall()` to invoke the receiver's `#<` and `#>` methods. It also checks the value of `exclp` in order to...
0x0dea (D.E. Akers)
09:41 AM Revision b4718bf4 (git): * win32/file.c (rb_freopen): remove debug code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
09:38 AM Revision 3e01334f (git): * win32/file.c (rb_freopen): need to terminate by NUL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:28 AM Bug #11320 (Closed): reopening stdio streams with non-ANSI filenames fails on Windows
Applied in changeset r51069.
----------
io.c: reopen OS encoding path
* io.c (rb_io_reopen): freopen(3) with OS encoding path.
[ruby-core:69780] [Bug #11320]
* win32/file.c (rb_freopen): wrapper of wchar version freopen(3).
use _wf...
nobu (Nobuyoshi Nakada)
08:28 AM Revision 93446fed (git): io.c: reopen OS encoding path
* io.c (rb_io_reopen): freopen(3) with OS encoding path.
[ruby-core:69780] [Bug #11320]
* win32/file.c (rb_freopen): wrapper of wchar version freopen(3).
use _wfreopen_s() if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
07:48 AM Revision c810ab8f (git): test_io.rb: skip method definitions
* test/ruby/{test_io,test_io_m17n}.rb: skip method definitions on
unsupported platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Bug #11321 (Third Party's Issue): Segmentation fault
Ask the authors of the gem which requires ffi.
ffi provides ability of native extensions to ruby, including segfaults.
nobu (Nobuyoshi Nakada)
06:41 AM Bug #11321 (Third Party's Issue): Segmentation fault
I have installed ffi gem because the rest client gem would not work without it. When I ran my code I got the following error:
lib/ffi/library.rb:263: []segmentation fault.
After which it printed a bunch of data and terminated. Line ...
aelallam (aisha k)
06:44 AM Bug #11317: Segmentation fault
It's a bug of childprocess gem which uses ffi, not selenium-webdriver. nobu (Nobuyoshi Nakada)
06:35 AM Bug #11317: Segmentation fault
I have now used watir driver,
getting the same results , i think the issue with it not third party.
logs are attached
hitesh770 (hitesh vishal)
06:16 AM Bug #11317: Segmentation fault
But i manually trigger that it is working fine for me .?
please find the attached screenshot
hitesh770 (hitesh vishal)
02:46 AM Bug #11317 (Third Party's Issue): Segmentation fault
Ask the author(s) of "selenium-webdriver". usa (Usaku NAKAMURA)
04:14 AM Bug #11173: inter class/module alias causes "no superclass method"
いったん2.1と2.2でREQUIREDとしてますが、必ずしも直さないといけないと思っているわけではありません。
(問題自体はあるよ、というマーク付け)
usa (Usaku NAKAMURA)
03:47 AM Bug #11231 (Rejected): Should rb_alloc_tmp_buffer() be public API?
usa (Usaku NAKAMURA)
03:38 AM Bug #5600: OpenSSL::X509::Request can't sign() an OpenSSL::PKey::EC
Any updates on this?
adam (Adam M)
03:30 AM Bug #11048 (Rejected): blocks raise on missing and extra keyword args
usa (Usaku NAKAMURA)
03:22 AM Bug #11284 (Rejected): String#upcase and String#downcase don't work for accented characters
This status "rejected" does not mean this report is rejected.
This change is only to unify the tickets.
usa (Usaku NAKAMURA)
03:16 AM Bug #11281 (Rejected): Unexpected behaviour in HTTP header processing
Shishir Joshi wrote:
> So I am OK with skipping `nil` values.
Then no needs to allow `nil`?
nobu (Nobuyoshi Nakada)
03:15 AM Bug #11296 (Rejected): Proc#arity returns weird value for non-lambda proc with optional arguments
usa (Usaku NAKAMURA)
02:59 AM Bug #10711: Incorrect error message in coerce failed
ruby_2_1 r51067 merged revision(s) 49224,49225,49234,49235. usa (Usaku NAKAMURA)
02:58 AM Revision ee151977 (git): merge revision(s) 49224,49225,49234,49235: [Backport #10711]
* numeric.c (bit_coerce): use original value for error message
[ruby-core:67405] [Bug #10711]
* test/ruby/test_numeric.rb (test_coerce): check error message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2...
U.Nakamura
12:34 AM Bug #11314 (Third Party's Issue): [BUG] Segmentaton fault
It's vagrant and ffi issue. hsbt (Hiroshi SHIBATA)

06/29/2015

11:25 PM Bug #11319 (Closed): "w+" is interpreted as "r+" when reopening stdio streams
Applied in changeset r51066.
----------
io.c: reopen stdio streams correctly when given "w+"
* io.c (rb_io_oflags_modestr): handle O_TRUNC correctly
* test/ruby/test_io.rb (test_reopen_stdio): new test
Patch-by: cremno phobia <cremno@...
Anonymous
10:55 PM Bug #11319 (Closed): "w+" is interpreted as "r+" when reopening stdio streams
~~~diff
diff --git a/io.c b/io.c
index dfdb422..8358c74 100644
--- a/io.c
+++ b/io.c
@@ -5046,6 +5046,9 @@ rb_io_oflags_modestr(int oflags)
case O_WRONLY:
return MODE_BINARY("w", "wb");
case O_RDWR:
+ if (oflags ...
cremno (cremno phobia)
11:24 PM Revision af9e072c (git): io.c: reopen stdio streams correctly when given "w+"
* io.c (rb_io_oflags_modestr): handle O_TRUNC correctly
* test/ruby/test_io.rb (test_reopen_stdio): new test
Patch-by: cremno phobia <cremno@mail.ru>
[ruby-core:69779] [Bug #11319]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@510...
Eric Wong
11:21 PM Bug #11311: STRING::Scan method badly interpret i option - Ruby 2.1.*
That's a known and [documented](http://docs.ruby-lang.org/en/2.2.0/Regexp.html#class-Regexp-label-Character+Classes) bug:
>`/\W/` - A non-word character (`[^a-zA-Z0-9_]`). Please take a look at Bug #4044 if using `/\W/` with the `/i` ...
cremno (cremno phobia)
11:12 PM Bug #11320 (Closed): reopening stdio streams with non-ANSI filenames fails on Windows
~~~ruby
fname = 'ルビー'
File.write(fname, '')
p File.exist?(fname)
$stdin.reopen(fname, 'r')
~~~
It fails with `Errno::ENOENT` on Windows even though the file exists and is readable. It's caused by using `freopen()` (https://github...
cremno (cremno phobia)
09:52 PM Feature #11318 (Closed): [PATCH] delay `exception: false' checks for minor speedup
Delay hash lookups until we are about to hit an exception. This
gives a minor speedup ratio of 2-3% in the new bm_io_nonblock_noex
benchmark as well as reducing code.
Pretty straighforward, I'd like to commit in a few days.
normalperson (Eric Wong)
09:32 PM Feature #6284: Add composition for procs
It would be nice to be able to compose functions in both ways, like in F#, you can do `g << f` or `g >> f`, sadly this was rejected before.
I would settle to have `Proc#*` for "regular" composition and `Proc#|` for "piping".
Last tim...
pabloh (Pablo Herrero)
08:39 AM Feature #6284: Add composition for procs
Regarding the syntax: I also support `*` as the operator where `f * g = f(g(x))` (as it seems close enough to the mathematical syntax already used by other languages such as Haskell and Idris) but if that is too divisive, we could choose... mudge (Paul Mucur)
07:12 PM Bug #11314: [BUG] Segmentaton fault
This appears to be a bug in the ffi gem. See these two bug reports on GitHub:
https://github.com/mitchellh/vagrant/issues/5869
https://github.com/ffi/ffi/issues/440
MrException (Robert McBride)
10:57 AM Bug #11314: [BUG] Segmentaton fault
Priority tag is not for users. Don't touch it. usa (Usaku NAKAMURA)
07:01 PM Feature #10594: Comparable#clamp
Motohiro KOSAKI wrote:
> >```diff
> ...
I guess you're right. I just didn't really know how to do that. How would I use the operators?
nerdinand (Ferdinand Niedermann)
10:38 AM Feature #10594: Comparable#clamp
>```diff
> ...
If `num` is `Bignum`, the above code could make data loss. I think.
Why can't we use "num"'s `<`, `<=` or `<=>` operator?
kosaki (Motohiro KOSAKI)
06:10 PM Revision 75571dc9 (git): * 2015-06-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:10 PM Revision c31b0def (git): st.c: use ccan linked-list (try 3)
This improves the bm_vm2_bighash benchmark significantly by
removing branches during insert, but slows down anything
requiring iteration with the more complex loop termination
checking.
Speedup ratio of 1.10 - 1.20 is typical for the vm...
Eric Wong
04:53 PM Bug #11285: Net::HTTP should handle content-coding with case-insensitive
memo: r51063 is required too. nagachika (Tomoyuki Chikanaga)
07:15 AM Bug #11285 (Closed): Net::HTTP should handle content-coding with case-insensitive
Applied in changeset r51061.
----------
* lib/net/http/response.rb (inflater): CONTENT_ENCODING can be upper
case. [ruby-core:69670] [Bug #11285] patched by Andy Chu
naruse (Yui NARUSE)
04:34 PM Bug #11281: Unexpected behaviour in HTTP header processing
I think if the user wants to send a blank header, then the user should do that explicitly like
~~~ruby
Net::HTTP::Get.new('http://any.url', {'header' => ""})
~~~
Converting a `nil` value to a blank string is not so obvious behavi...
shishir127 (Shishir Joshi)
10:38 AM Bug #11317 (Third Party's Issue): Segmentation fault
i have tried to execute the following code for 2.2.2
>irb
2
3 > require "selenium-webdriver"
4 => true
5
6 > browser = Selenium::WebDriver.for
7 :internet_explorer
i am getting the error. The log is attached with
hitesh770 (hitesh vishal)
10:04 AM Revision 7604ca41 (git): fix previous commit for nil case
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:05 AM Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
I forgot to mention that this works fine with ruby 2.1. The bat file there looks like this:
~~~
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/Program Files/ruby21/bin/rhc" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinN...
jekader (Jeka Der)
09:01 AM Bug #11316 (Closed): ruby 2.2 on Windows generates incorrect BAT files for gems
In Ruby 2.2 on Windows it's impossible to install the "rhc" gem since the BAT wrapper has a typo.
steps to reproduce:
1) install ruby 2.2.2 into a directory with spacer (C:\Program Files\ruby22)
2) install git
3) open console and i...
jekader (Jeka Der)
08:38 AM Revision 1a3e7ca1 (git): insns.def: no quoting
* insns.def (defineclass): do not quote unprintable characters at
raising an exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:14 AM Revision 84de36c7 (git): * lib/net/http/response.rb (inflater): CONTENT_ENCODING can be upper
case. [ruby-core:69670] [Bug #11285] patched by Andy Chu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:52 AM Revision 8803c601 (git): * eval.c (add_activated_refinement): should not include the original
class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:05 AM Feature #11315: [PATCH] Add Array#^ for parity with other set-like operations.
`st_update` does lookup/replace/delete/insert in the callback at once.
And your patches are broken, necessary spaces are stripped.
~~~diff
diff --git a/array.c b/array.c
index 072e30d..737afa3 100644
--- a/array.c
+++ b/array.c
...
nobu (Nobuyoshi Nakada)
04:28 AM Bug #11291: [PATCH] Check SPECIAL_CONST_P before RBASIC_CLASS to avoid SEGV
ruby_2_1 r51059 merged revision(s) 50982,50983. usa (Usaku NAKAMURA)
04:28 AM Revision 61f3baee (git): merge revision(s) 50982,50983: [Backport #11291]
* ext/objspace/objspace_dump.c(dump_object): Return empty JSON object when
passed object is a special const, instead of SEGV.
Based patch by Kohei Suzuki (eagletmt). [ruby-core:69692] [Bug #11291]
* test/objs...
U.Nakamura
03:43 AM Revision 6cb284a2 (git): mkmf.rb: suppress warnings
* lib/mkmf.rb (check_sizeof, what_type): remove static qualifiers
to suppress unneeded-internal-declaration warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:09 AM Revision 96c1e6ac (git): * README.md: tweak styles. [fix GH-945][ci skip] Patch by @bryndyment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

06/28/2015

10:24 PM Revision 52436ce1 (git): sizes.c.tmpl: extract RUBY_DEFINT
* template/sizes.c.tmpl: extract RUBY_DEFINT to define sizes of
types checked by configure.in, and fix size of intptr_t in
universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:10 PM Revision 548b97e7 (git): insns.def: preserve encoding
* insns.def (defineclass): preserve encoding of name in error
messages for super class mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:10 PM Feature #11315: [PATCH] Add Array#^ for parity with other set-like operations.
I forgot to recycle the `seen` hash. This last fix should finalize the patch, unless there is some very clever way to XOR two arrays without requiring two tables or a second pass through one of the arrays. 0x0dea (D.E. Akers)
05:03 PM Feature #11315: [PATCH] Add Array#^ for parity with other set-like operations.
The original implementation did not correctly handle the case of repeated elements occurring an even number of times in the second array. Attached is an updated version which does not present this defect, courtesy of @apeiros and his 50-... 0x0dea (D.E. Akers)
02:25 PM Feature #11315 (Open): [PATCH] Add Array#^ for parity with other set-like operations.
## Proposal
It is proposed that `Array` be given an "XOR" method which returns the symmetric difference between itself and another array.
## Rationale
`#&` and `#|` need a friend to complete the set of set-like operations on `Ar...
0x0dea (D.E. Akers)
05:10 PM Revision b90a5f93 (git): insns.def: preserve encoding
* insns.def (defineclass): preserve encoding of name in error
messages for non-class super.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 PM Revision 491ace2d (git): insns.def: preserve encoding
* insns.def (defineclass): preserve encoding of name in error
messages when already defined but type mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:37 PM Revision 3ed6f43b (git): * 2015-06-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:35 PM Revision fe994a4d (git): test_redefinition_mismatch
* test/ruby/test_{class,module}.rb (test_redefinition_mismatch):
add tests of redefinition mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:46 AM Bug #11314 (Third Party's Issue): [BUG] Segmentaton fault
I'm working in Windows7 with VirtualBox,Vagrant.
But after I installed vagrant plugin "vagrant-centos7_fix", "vagrant up" command become to failed.
Error log is attached here as "error.log".
after installed the plugin, this occurs...
KeisukeSatomi (keisuke satomi)
11:45 AM Bug #11281 (Feedback): Unexpected behaviour in HTTP header processing
Why do you need to give a `nil`? nobu (Nobuyoshi Nakada)
05:26 AM Bug #11001: 2.2.1 Segmentation fault in reserve_stack() function.
> Any criteria where works on or not?
> ...
Segmentaion fault
* Ubuntu 12.04 - kernel 3.2+
* Ubuntu 12.10 - kernel 3.5
* Debian 7.7 - kernel 3.2.63
* Debian 7.8 - kernel 3.4.105
No problem
* Ubuntu 13.04 - kernel 3.8
* Ubuntu 1...
kubo (Takehiro Kubo)
01:33 AM Bug #11001: 2.2.1 Segmentation fault in reserve_stack() function.
Takehiro Kubo wrote:
> IMO, this may be an issue of OS, not of ruby.
Any criteria where works on or not?
Runtime kernel versions?
nobu (Nobuyoshi Nakada)
03:28 AM Revision da70f4d0 (git): class.c: preserve encoding
* class.c (rb_check_inheritable): preserve encoding in an error
message when the superclass is not a class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:07 AM Revision c70572d5 (git): * 2015-06-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 AM Revision a13ab237 (git): class.c: TypeError when superclass mismatch
* class.c (rb_define_class_id_under): raise TypeError exception
same as ruby level class definition when superclass mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom