Project

General

Profile

Activity

From 07/06/2014 to 07/12/2014

07/12/2014

11:37 PM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
If I replace the whole test for "broken backtrace" with a hardcoded value, then I can run `./configure` without a crash.
See my proof of concept patch (attached) which can be compared to tag v2_1_2 in git.
jaredbeck (Jared Beck)
11:13 PM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
> Which conftest?
I think conftest is defined in the `configure` script. For me, it's around line 20376, which looks like:
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Furthermore, line 20389 defines a `sigsegv` function.
...
jaredbeck (Jared Beck)
10:56 PM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
Simpler steps to reproduce:
1. Download ruby 2.1.2 source
2. ./configure
So, I don't think this has anything to do with ruby-build :)
jaredbeck (Jared Beck)
10:32 PM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
Steps to reproduce:
1. rbenv uninstall 2.1.2
2. rbenv install 2.1.2
Crash dump:
https://gist.github.com/jaredbeck/127e61aa73a16c614b6d
ruby_build log:
https://gist.github.com/jaredbeck/3f6de8e3e432a51ae707
versions:
gcc...
jaredbeck (Jared Beck)
02:49 PM Revision 8a29da3b (git): win32/configure.bat: check directory
* win32/configure.bat: bail out if run in win32 directory.
[ruby-core:63648] [Bug #10027]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:48 PM Bug #10027 (Rejected): make at windows , err : _rb_file_expand_path_internal already defined in file. obj
nobu (Nobuyoshi Nakada)
02:05 PM Bug #10027: make at windows , err : _rb_file_expand_path_internal already defined in file. obj
kk kk wrote:
> G:\ruby-2.1.2\win32>nmake
You should follow README.win32 and configure and nmake from parent folder, not from win32.
I.e. inside G:\ruby-2.1.2 call win32\configure.bat and then do nmake from same source code root. N...
tag (Andrii Tereshchenko)
06:17 AM Revision 2822bd29 (git): * ext/win32ole/win32ole.c (fole_record_method_missing): correct
fields Hash key.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
05:11 AM Bug #9985 (Closed): Gems documenation is not generated when installing local gem with --ignore-dependencies option
zzak (zzak _)

07/11/2014

10:31 PM Bug #10009: IO operation is 10x slower in multi-thread environment
Alexandre Riveira wrote:
> Eric Wong wrote:
> ...
Tests completes, my system without changes join stress tests 30 secons for load page, after changes, pages loading in instant all pages loading in less than 1 second.
ariveira (Alexandre Riveira)
08:34 PM Bug #10009: IO operation is 10x slower in multi-thread environment
Eric Wong wrote:
>
> ...
Hello Eric!!!!
I stayed enjoyed the result of change TIME_QUANTUM_USEC. Changed its value to 1000 only see the results:
ruby 2.
first 17434583
second 2754 <=============
third 16752441
If you have ...
ariveira (Alexandre Riveira)
07:22 PM Revision 00eb7203 (git): * lib/net/smtp.rb (Net::SMTP#data): enable buffering while
'data' send for optimizing Net::SMTP#send_message.
[ruby-dev:48329] [misc #9981]
patch by Masahiro Tomita.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
07:19 PM Feature #9981 (Assigned): Net::SMTP#send_message が大量の write(2) を発行する
コードは問題なさそうに見えるし、賛成意見もついているし、メンテナがいないモジュールのようなので、
代理コミットしときますね。
kosaki (Motohiro KOSAKI)
02:22 PM Feature #9981: Net::SMTP#send_message が大量の write(2) を発行する
In message <redmine.journal-47699.20140711064732.e1bfc429d603f917@ruby-lang.org>
on Fri, 11 Jul 2014 06:47:32 +0000,
shibata.hiroshi@gmail.com wrote:
> Issue #9981 has been updated by Hiroshi SHIBATA.
>
>
> どなたか SMTP にお詳しい方はいら...
taca (Takahiro Kambe)
06:47 AM Feature #9981: Net::SMTP#send_message が大量の write(2) を発行する
どなたか SMTP にお詳しい方はいらっしゃいませんか. hsbt (Hiroshi SHIBATA)
04:42 PM Bug #10020: TestEnv#test_memory_leak_*, Fiddle::TestPointer#test_no_memory_leak, and Test_StringModifyExpand#test_modify_expand_memory_leak on Solaris
r46791 にて、Solaris 9 以降で、以下を満たす場合に、それらの環境変数をセットして invoke_ruby するように変更しました。
* 環境変数 LD_PRELOAD, LD_PRELOAD_64 (または LD_PRELOAD_32), UMEM_OPTIONS がセットされていない
* LD_PRELOAD=libumem.so UMEM_OPTIONS=backend=mmap を付けてrubyを実行して正常終了
* テストケース独自に、...
ngoto (Naohisa Goto)
04:32 PM Bug #10020 (Closed): TestEnv#test_memory_leak_*, Fiddle::TestPointer#test_no_memory_leak, and Test_StringModifyExpand#test_modify_expand_memory_leak on Solaris
Applied in changeset r46791.
----------
* test/ruby/envutil.rb (assert_no_memory_leak): On Solaris 9 or later,
if possible, execute child ruby with environment variables
LD_PRELOAD=libumem.so UMEM_OPTIONS="backend=mmap". With these
...
ngoto (Naohisa Goto)
12:11 PM Bug #10020: TestEnv#test_memory_leak_*, Fiddle::TestPointer#test_no_memory_leak, and Test_StringModifyExpand#test_modify_expand_memory_leak on Solaris
TestEnv#test_memory_leak_* に関しては、
Illumos(旧OpenSolaris)のソース usr/src/lib/libc/port/gen/getenv.c を見る限り、
setenv() 内で malloc にて確保した領域を unsetenv() で free する事は無いように見えます。
つまり、少なくとも Solaris 10 / Illumos では、setenv(3C) と unsetenv(3C) を繰り返すと(mal...
ngoto (Naohisa Goto)
04:32 PM Revision f11c30e8 (git): * 2014-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:32 PM Revision ca1c23e2 (git): * test/ruby/envutil.rb (assert_no_memory_leak): On Solaris 9 or later,
if possible, execute child ruby with environment variables
LD_PRELOAD=libumem.so UMEM_OPTIONS="backend=mmap". With these
variables, freed memory is immediately returned to the OS.
[Bug #10020] [ruby-dev:48391]
git-svn-id: svn+ssh...
ngoto (Naohisa Goto)
02:10 PM Revision 47adf570 (git): symbol.c: remove dependency on parse.h
* symbol.c (op_tbl): remove non-regular symbols.
* symbol.c (global_symbols): start from the next of the preserved
ID.
* symbol.c: (rb_id2str): op_tbl does not exceed tLAST_OP_ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46...
nobu (Nobuyoshi Nakada)
02:10 PM Bug #9499: The Vector.cross_product function returns the opposite vector of the expected result
backported at r46789. nagachika (Tomoyuki Chikanaga)
02:09 PM Bug #9499 (Closed): The Vector.cross_product function returns the opposite vector of the expected result
Applied in changeset ruby-21:r46789.
----------
merge revision(s) r46780: [Backport #9499]
* lib/matrix.rb: Fix sign for cross_product [#9499]
nagachika (Tomoyuki Chikanaga)
02:08 PM Revision feea0a9e (git): merge revision(s) r46780: [Backport #9499]
* lib/matrix.rb: Fix sign for cross_product [#9499]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:58 PM Revision f063a0b5 (git): fix plural form [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:52 PM Revision d33d22c7 (git): parse.y: rename Init_parser
* parse.y (rb_init_parse): rename to get rid of name clash with
json/parser at statically linking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:51 AM Revision 803232c8 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:50 AM Revision 61087704 (git): * ext/win32ole/win32ole.c: add WIN32OLE_RECORD class to support
VT_RECORD OLE variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
11:39 AM Bug #10029: miss probes.h when nmake
How did you get the source, and what is the exact revision? nobu (Nobuyoshi Nakada)
08:53 AM Bug #10029: miss probes.h when nmake
```
G:\ruby-2.1.2>nmake array.obj -n
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
echo compiling array.c
cl -nologo -MD -Zi -W2 -O2...
sevk (kk kk)
08:50 AM Bug #10029: miss probes.h when nmake
The version 6.00.8168.0 of nmake.exe is a part of Visual Studio 6.0.
It seems that ruby-2.1.2 cannot be built with Visual C++ 6.0.
phasis68 (Heesob Park)
08:31 AM Bug #10029: miss probes.h when nmake
Nobuyoshi Nakada wrote:
> I can't reproduce your environment.
Me too.
usa (Usaku NAKAMURA)
08:23 AM Bug #10029 (Feedback): miss probes.h when nmake
I can't reproduce your environment.
probes.h should be copied from probes.dmyh.
~~~
> nmake array.obj -n
echo copying dummy probes.h
if exist probes.dmyh ( @ copy > nul probes.dmyh probes.h ) else ( @ copy > nul .....
nobu (Nobuyoshi Nakada)
08:10 AM Bug #10029 (Closed): miss probes.h when nmake
```
G:\ruby-2.1.2>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -nologo ...
sevk (kk kk)
08:16 AM Revision 28cdf9b1 (git): * lib/abbrev.rb: remove executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:02 AM Bug #10028 (Rejected): nested rest keyword argument
ネストしたrest argumentは通りますが
~~~ruby
def f((*a)) end
~~~
ネストしたrest keyword argumentはsyntax errorになります。
~~~ruby
def f((**a)) end #=> syntax error, unexpected **arg
~~~
nobu (Nobuyoshi Nakada)
07:54 AM Bug #10027 (Feedback): make at windows , err : _rb_file_expand_path_internal already defined in file. obj
I can't reproduce it.
Could you try `nmake V=1`?
nobu (Nobuyoshi Nakada)
12:55 AM Bug #10027 (Rejected): make at windows , err : _rb_file_expand_path_internal already defined in file. obj
```
G:\ruby-2.1.2\win32>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
CC = cl -nologo
LD = cl -nologo
LDSHARED = cl -n...
sevk (kk kk)
07:51 AM Bug #6716 (Closed): FileUtils.mv でリンク先がないシンボリックリンクファイルを指定すると ENOENT エラーになる
Applied in changeset r46783.
----------
* lib/fileutils.rb: handle ENOENT error with symlink targeted to
non-exists file. [ruby-dev:45933] [Bug #6716]
hsbt (Hiroshi SHIBATA)
07:51 AM Revision c2eac0e7 (git): * lib/fileutils.rb: handle ENOENT error with symlink targeted to
non-exists file. [ruby-dev:45933] [Bug #6716]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:07 AM Bug #9775 (Feedback): Segmentation Fault
hsbt (Hiroshi SHIBATA)
07:00 AM Bug #9901 (Closed): Clarify documentation for Array#insert
Applied in changeset r46782.
----------
* array.c: Clarify documentation for Array#insert.
[ruby-core:62934] [Bug #9901]
hsbt (Hiroshi SHIBATA)
07:00 AM Revision 94bbd10e (git): * array.c: Clarify documentation for Array#insert.
[ruby-core:62934] [Bug #9901]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:57 AM Feature #9916 (Assigned): Hide Struct internal
hsbt (Hiroshi SHIBATA)
06:52 AM Bug #9950 (Feedback): Segmentation fault in DateTime class
hsbt (Hiroshi SHIBATA)
06:50 AM Feature #9963 (Feedback): Symbol.count
hsbt (Hiroshi SHIBATA)
06:41 AM Bug #10012 (Closed): Improve Documentation for IO.read
Applied in changeset r46781.
----------
* io.c: Improve Documentation by @dapplebeforedawn.
[fix GH-658] [ruby-core:63579] [Bug #10012]
hsbt (Hiroshi SHIBATA)
06:41 AM Revision dcf296f7 (git): * io.c: Improve Documentation by @dapplebeforedawn.
[fix GH-658] [ruby-core:63579] [Bug #10012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:19 AM Revision 72d05366 (git): * lib/matrix.rb: Fix sign for cross_product [#9499]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:13 AM Revision 9412551e (git): * benchmark/prepare_so_k_nucleotide.rb: use require_relative.
* benchmark/prepare_so_reverse_complement.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:04 AM Bug #10026 (Feedback): Segmentation fault
Probably `malloc_usable_size` would access the pointer - 8, that means `ruby_xfree` was called with `(void *)1`.
Does this happen with the trunk and recent 2.1 snapshots as the target version is set to `current: 2.2.0`?
nobu (Nobuyoshi Nakada)
01:09 AM Bug #10019 (Closed): segmentation fault/buffer overrun in pack.c (encodes)
Applied in changeset r46778.
----------
pack.c: fix buffer overrun
* pack.c (encodes): fix buffer overrun by tail_lf. Thanks to
Mamoru Tasaka and Tomas Hoger. [ruby-core:63604] [Bug #10019]
nobu (Nobuyoshi Nakada)
01:09 AM Revision 8a608d2b (git): pack.c: fix buffer overrun
* pack.c (encodes): fix buffer overrun by tail_lf. Thanks to
Mamoru Tasaka and Tomas Hoger. [ruby-core:63604] [Bug #10019]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:41 AM Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
OK I will update to TypeError - the method argument does need to support the Pathname interface.
As for the subclass - yes that is mostly it. It's a small detail.
Thanx for the feedback.
leriksen (Leif Eriksen)

07/10/2014

11:52 PM Bug #10026: Segmentation fault
eberner@gmail.com wrote:
> Here is the Other runtime information
>
> https://gist.github.com/maletor/df43091aca5e9b7ee534

URL seems invalid.

> -- C level backtrace information -------------------------------------------
> /ho...
normalperson (Eric Wong)
11:36 PM Bug #10026: Segmentation fault
Here is the Other runtime information
https://gist.github.com/maletor/df43091aca5e9b7ee534
maletor (Ellis Berner)
11:30 PM Bug #10026 (Closed): Segmentation fault
The following segmentation fault is from running tests with RSpec on a somewhat large test suite. The results of the test are always printed *before* the segmentation fault.
~~~
/home/ubuntu/doximity/vendor/bundle/ruby/2.1.0/bin/rspe...
maletor (Ellis Berner)
11:48 PM Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
At the end of the day, I just want something more friendly than a `NoMethodError` from inside the method, so I won't stand in the way of progress, but...
>1. I didn't want to call Pathname::new if we already had been passed a Pathname...
Anonymous
11:19 PM Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
I agree with the confusion - initially I thought :to_path could be used, but despite its name it returns a string, hence the suggestion for :to_pathname, that allows things to implement a way to have themselves converted to a Pathname.
...
leriksen (Leif Eriksen)
03:25 PM Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
I don't think we should add a method to String; there is an existing path coercion protocol (`to_path` and `File.path`) and even though String does not implement `to_path`, I think having a `to_pathname` would be confusing.
Anyway, co...
Anonymous
08:08 AM Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
ok so I have 2 possible fixes, one of which I've implemented
The unimplemented fix is maybe a new method along the lines of to_s, but for paths, called to_pathname. Then we could reopen String and define
clas String
def to_pathna...
leriksen (Leif Eriksen)
08:46 PM Bug #7707: FileUtils.mv fails to move symlink between filesystems
In Homebrew, we have code that works around this by shelling out to `mv` when necessary. It would be nice to have this fixed. Anonymous
06:45 PM Bug #10025 (Closed): Incorrect wrapping of base64 output of Array.pack()
String format directive `m` for Array `pack()` is documented as:
~~~
m | String | base64 encoded string (see RFC 2045, count is width)
| | (if count is 0, no line feed are added, see RFC 4648)
~~~
...
thoger (Tomas Hoger)
06:22 PM Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Nobuyoshi Nakada wrote:
> But if `tail_lf` is 1, `len` is a multiple of 3, so it can't be 3070.
`len` in `encodes()` can be anything between 1 and `len` from `pack_pack()` (which is a multiple of 3). It is possible to trigger mentio...
thoger (Tomas Hoger)
01:32 PM Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Am I missing something? nobu (Nobuyoshi Nakada)
01:23 PM Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
But if `tail_lf` is 1, `len` is a multiple of 3, so it can't be 3070. nobu (Nobuyoshi Nakada)
09:28 AM Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
... and type is not 'u'. mtasaka (Mamoru TASAKA)
09:24 AM Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Looking at encodes(), it seems at least when
* len = 3070 (= ((4096 - 4) / 4 * 3 + 1))
* tail_lf = 1
encodes() causes segv at https://github.com/ruby/ruby/blob/trunk/pack.c#L987
mtasaka (Mamoru TASAKA)
04:36 PM Bug #10024 (Rejected): Array injection of ternary operators injects boolean rather than ternary result
`<<` and `>>` are shift operators primarily, and have higher precedence. nobu (Nobuyoshi Nakada)
04:28 PM Bug #10024: Array injection of ternary operators injects boolean rather than ternary result
The `#<<` has a higher precedence than the ternery operator. Using #<<= seems to make it work just fine. pducks32 (Patrick Metcalfe)
03:40 PM Bug #10024 (Rejected): Array injection of ternary operators injects boolean rather than ternary result
The following code:
```ruby
a = []
a << ''.blank? ? 'blank' : 'not blank'
puts a
```
renders `[true]`.
I would expect it to render `['blank']`
If I wrap it in parenthesis it does work.
```ruby
a = []
a << ( ''.blank?...
blainekasten@gmail.com (Blaine Kasten)
03:22 PM Revision 70451a56 (git): * 2014-07-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:22 PM Revision 90b1b2e6 (git): * hash.c (ruby_setenv): Fix TestEnv#test_aset failure on Solaris 9.
When name contains '=', ruby_setenv raises Errno::EINVAL.
That is the same behavior as Solaris 10.
NULL check for malloc return value is also added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46776 b2dd03c8-39d4-4d8f-98ff-82...
ngoto (Naohisa Goto)
01:44 PM Bug #10023 (Rejected): Hash#merge fails duplicating objects
Not a bug.
`A[:b]` and `c[:b]` refer the same object.
Check its `object_id`.
nobu (Nobuyoshi Nakada)
01:44 PM Bug #10023: Hash#merge fails duplicating objects
Please, note that only Rails' `deep_dup` seems helpful to workaround the issue coyote (Alexey Babich)
01:42 PM Bug #10023: Hash#merge fails duplicating objects
The same with duplication
>> c=A.dup #same .clone
=> {:b=>{}}
> ...
=> {:b=>{}, :c=>{:d=>"e"}}
>> c[:b][:d] = 'bug'
=> "bug"
> ...
=> {:b=>{:d=>"bug"}}
coyote (Alexey Babich)
01:38 PM Bug #10023: Hash#merge fails duplicating objects
Please, also note that Rails' `deep_merge` does not help coyote (Alexey Babich)
01:36 PM Bug #10023 (Rejected): Hash#merge fails duplicating objects
Here is an example in IRB (ruby 2.1.2):
>> A={b:{}}
=> {:b=>{}}
> ...
=> {:b=>{}, :c=>{:d=>"e"}}
>> c[:b][:d] = "f"
=> "f"
> ...
=> {:b=>{:d=>"f"}}
Every key, value pair is expected to be duplicated during the merge? Please, inv...
coyote (Alexey Babich)
10:55 AM Bug #9985: Gems documenation is not generated when installing local gem with --ignore-dependencies option
Fixed: https://github.com/rubygems/rubygems/commit/c16846bf9e0b90521029f0d743620f138ee2236e Pulfer (Andrey Bondrov)
07:11 AM Feature #8895: Destructuring Assignment for Hash
+1 for this proposal.
I feel it is fine for me:
```ruby
k1: 1, k2: 2 = h
kr1:, kr2: = h
#=> same as
k1 = h.fetch(:k1, 1)
k2 = h.fetch(:k2, 2)
kr1 = h.fetch(:k1)
kr2 = h.fetch(:k2)
# mixed
k1: 1, k2: 2...
ko1 (Koichi Sasada)
06:04 AM Bug #10009: IO operation is 10x slower in multi-thread environment
Alexandre Riveira wrote:
> information that I consider important
> ...
My results kernel linux BFS/CK + taskset
first 103214331
second 2762 <======
third 24259986
ariveira (Alexandre Riveira)
06:03 AM Bug #10016 (Closed): Destructuring block arguments with a Hashable last element
Applied in changeset r46775.
----------
vm_insnhelper.c: fix implicit splat keyword argument
* vm_insnhelper.c (vm_callee_setup_keyword_arg): adjust VM stack
pointer to get rid of overwriting splat arguments by arguments
for `to_ha...
nobu (Nobuyoshi Nakada)
06:02 AM Revision 813ad489 (git): vm_insnhelper.c: fix implicit splat keyword argument
* vm_insnhelper.c (vm_callee_setup_keyword_arg): adjust VM stack
pointer to get rid of overwriting splat arguments by arguments
for `to_hash` conversion. [ruby-core:63593] [Bug #10016]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
04:17 AM Revision 01bced94 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:24 AM Revision ef3ff649 (git): gc.c: fix typo
* gc.c (global_list): fix typo, capital 'L'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:49 AM Feature #10018: Consider adding Sub-Includes as in include Foo::bar
And method transplanting only works when the method does not call super nor other Enumerable methods.
Automatic resolving is possible, but it would make inclusion far more complex.
Matz.
matz (Yukihiro Matsumoto)
12:45 AM Bug #10022 (Rejected): Inconsistent behavior of gsub replacement
The second argument is evaluated **before** calling `gsub` method.
Call it with a block:
~~~ruby
puts str.gsub(/(CFBundleVersion<\/key>\n\t.*\.).*(<\/string>)/) {"#{$1}#{ver}#{$2}"}
~~~
nobu (Nobuyoshi Nakada)
12:39 AM Bug #10022 (Rejected): Inconsistent behavior of gsub replacement
In the following code, the two gsub's yield different results. ([[https://gist.github.com/franklsf95/6c0f8938f28706b5644d]])
~~~ruby
ver = 9999
str = "\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleVer...
franklsf95 (Frank Luan)

07/09/2014

08:38 PM Bug #10021: OptParse does not handle missing arguments bracketed by valid option switches
When I try this:

~~~
--re-run x -r --rerun y -- file
~~~
Then I see this
~~~
:in `eval': Only one output filename is permitted (RuntimeError)
~~~
From which I infer that -r has 'eaten' --rerun as its argument and...
byrnejb (James Byrne)
08:21 PM Bug #10021 (Closed): OptParse does not handle missing arguments bracketed by valid option switches
OS=CentOS-6.5 x86_64
Ruby=2.1.2p95
I have this in an optparse structure:
# Create parser
opts = OptionParser.new do |opts|
opts.banner = <<-BANNER
. . .
opts.on("-r", "--rerun=DATEorTRANSACTION", "-...
byrnejb (James Byrne)
07:28 PM Feature #10017: Add `Hash#fetch_values`
Please consider the name `fetch_at` carefully: it seems easily confused with `fetch` (1 key), and the name doesn't hint that it's for multiple keys. (`values_at` is plural, so it gives a good clue.) Maybe `fetch_values`? avit (Andrew Vit)
07:00 PM Feature #10017: Add `Hash#fetch_values`
I attached another patch calling this method fetch_at and I also added missing tests (I couldn't change issue title & body to reflect this changes, though).
Also, perhaps out of scope for this ticket but I'm wondering what're your tho...
wojtekmach (Wojtek Mach)
02:12 PM Feature #10017: Add `Hash#fetch_values`
+1 for `fetch_at`. nobu (Nobuyoshi Nakada)
04:04 AM Feature #10017: Add `Hash#fetch_values`
`fetch_at` sounds much better than values_at! to me. shyouhei (Shyouhei Urabe)
06:43 PM Bug #10015: Performance regression in Dir#[]
Btw, you're already paying significant costs for a case-insensitive FS
(not just Ruby, but things like git, too).
normalperson (Eric Wong)
04:05 PM Bug #10015: Performance regression in Dir#[]
Thanks nobu, I really appreciate it! If it can't be fixed, I have ideas for avoiding the calls to Dir#[], but it will take time to get merged and released. tenderlovemaking (Aaron Patterson)
03:59 PM Bug #10015: Performance regression in Dir#[]
It might affect unintentionally.
I'll check the bottleneck.
nobu (Nobuyoshi Nakada)
03:25 PM Bug #10015: Performance regression in Dir#[]
@nobu this change causes a significant increase in Rails boot time on my system.
My application pays a 120ms price for this change. @hsbt will pay 520ms:
http://twitter.com/hsbt/status/486378979138367488
Is there a way we can...
tenderlovemaking (Aaron Patterson)
08:08 AM Bug #10015: Performance regression in Dir#[]
Yes.
Or use case-sensitive platforms.
nobu (Nobuyoshi Nakada)
05:06 PM Bug #10019 (Feedback): segmentation fault/buffer overrun in pack.c (encodes)
`encodes()` fills and flush `buff` gradually by the buffer size.
Could you show the message at the segmentation fault?
Anyway, your patch includes unnecessary garbage.
nobu (Nobuyoshi Nakada)
02:40 PM Bug #10019 (Closed): segmentation fault/buffer overrun in pack.c (encodes)
While working with an AWS sample I hit a segmentation fault. The same sample works under 1.9.3. It appeared to be coming from pack.c function encodes. After looking at the source there's a 4K buffer allocated on the stack. I made a m... wkwood (Will Wood)
04:19 PM Revision 96815f1e (git): * symbol.c: remove rb_gc_mark_symbols().
fstrings refered by static symbols and pinned dynamic symbols
are registerd by rb_gc_register_mark_object().
frstring refered by dynamic symbols (not pinned symbols)
are refered from global_symbols.dsymbol_fstr_hash (Hash object).
...
ko1 (Koichi Sasada)
03:29 PM Revision 996ff907 (git): * 2014-07-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision 60ee5e03 (git): * common.mk (DTRACE_DEPENDENT_OBJS): fix build failure on Solaris
introduced in r46768. Object files containing dtrace probes should
be listed in DTRACE_DEPENDENT_OBJS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
03:16 PM Bug #10020 (Closed): TestEnv#test_memory_leak_*, Fiddle::TestPointer#test_no_memory_leak, and Test_StringModifyExpand#test_modify_expand_memory_leak on Solaris
Solaris 10 にて、以下のように memory leak 検出テストの Failure が出ます。(r46762 で確認)
Solarisデフォルトのlibcのmallocでは、freeしてもOSにメモリを返さないのが原因と考えています。
メモリ関係デバッグ用のライブラリ libumem を使い、UMEM_OPTIONS=backend=mmap を指定すると、freeしたら直ちにOSにメモリを返すようになるようです。
dynamic link な...
ngoto (Naohisa Goto)
02:51 PM Revision 90173785 (git): random.c: fix casts
* random.c (fill_random_seed): fix type to cast. this may or may
not suppress warnings by icc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:55 PM Feature #10018 (Feedback): Consider adding Sub-Includes as in include Foo::bar
You can achieve it by "method transplanting".
~~~ruby
class Foo
define_method(:any?, Enumerable.instance_method(:any?))
end
~~~
Wrapper method like `Module#mix` may help you.
http://www.slideshare.net/yukihiro_matz/rubyconf-...
nobu (Nobuyoshi Nakada)
11:49 AM Feature #10018: Consider adding Sub-Includes as in include Foo::bar
Oops sorry!
This is not a bug, it is a feature request.
I am not sure how to move it to features now, sorry. :(
shevegen (Robert A. Heiler)
11:48 AM Feature #10018 (Feedback): Consider adding Sub-Includes as in include Foo::bar
On IRC someone asked a nice question:
> \<arup_r\> If I write `class Foo; include Enumerable; end` This code include all methods from `Enumerable`. But suppose I want to include `#all?`, `#any?` .. What's the way to include only req...
shevegen (Robert A. Heiler)
11:32 AM Bug #10010 (Closed): Error in TestEnv#test_memory_leak_* on Solaris
r46762 fix this issue ngoto (Naohisa Goto)
11:31 AM Bug #10016: Destructuring block arguments with a Hashable last element
Elements expanded on the VM stack are overwritten by calling `to_hash` method. nobu (Nobuyoshi Nakada)
08:07 AM Revision 94ce4812 (git): symbol.c, symbol.h: split from parse.y
* symbol.c, symbol.h: Symbol class implementation and internals,
split from parse.y.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:31 AM Revision d299250a (git): parse.y: adjust argument types
* parse.y (symbols_i): adjust argument types for st_foreach()
using st_data_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision 92a04a49 (git): io.c: refine error message
* io.c (do_io_advise): more precise error message, with arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision 209314c2 (git): test_io.rb: fix assertion
* test/ruby/test_io.rb (test_advise): fix inverted arguments order
by assert_nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:16 AM Bug #10014 (Closed): Do not expose no-pinned down IDs
Applied in changeset r46764.
----------
* parse.y: change Symbol <-> ID relationship to avoid
exposing IDs from collectable symbols.
[Bug #10014]
Now, rb_check_id() returns 0 if corresponding symbol is
pinned dynamic symbol.
T...
ko1 (Koichi Sasada)
01:46 AM Bug #10014: Do not expose no-pinned down IDs
パッチ作成と内容説明ありがとうございます。賛成します。 authorNari (Narihiro Nakamura)
06:14 AM Revision 76a929a7 (git): * parse.y: change Symbol <-> ID relationship to avoid
exposing IDs from collectable symbols.
[Bug #10014]
Now, rb_check_id() returns 0 if corresponding symbol is
pinned dynamic symbol.
There is remaining intern_cstr_without_pindown(), it can return
IDs from collectable symbols. We...
ko1 (Koichi Sasada)
05:00 AM Revision 37f018fd (git): * parse.y (symbols_i): delete garbage symbols for Symbol.all_symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:31 AM Revision 9db5a7f8 (git): require "rbconfig" to use RbConfig
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:46 AM Bug #10009: IO operation is 10x slower in multi-thread environment
information that I consider important
Kernels BFS and ruby 1.9.2 work fine as if applied taskset.
Other kernels like freebsd and macos with ruby 1.9.2 has similar behavior.
http://en.wikipedia.org/wiki/Brain_Fuck_Scheduler
https:/...
ariveira (Alexandre Riveira)
01:28 AM Bug #10009: IO operation is 10x slower in multi-thread environment
My application is not web-site is an ERP. So reporting and very heavy tasks are performed. Then the system crashes because only one thread using 100% cpu will damage the whole worker, passing any request for at least 2 seconds, then the ... ariveira (Alexandre Riveira)

07/08/2014

10:38 PM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
Updated patch (from testing for #10009).
Uploading for archival purposes. This version is probably less intrusive and
falls back to pipe in case of ENOSYS (in case glibc supports eventfd and the
kernel has eventfd disabled).
Thi...
normalperson (Eric Wong)
10:37 PM Feature #10017 (Closed): Add `Hash#fetch_values`
I'm proposing to add a new method `Hash#values_at!` that's basically a combination of `#values_at` and `#fetch`.
When dealing with configuration I prefer to use `#fetch` to fail early and this would be useful to read multiple keys at ...
wojtekmach (Wojtek Mach)
09:55 PM Bug #10016 (Closed): Destructuring block arguments with a Hashable last element
The following code:
~~~ruby
# destructure_bug.rb
def m
x = Object.new
def x.to_hash() {x: 9} end
yield [1, 2, 3, x]
end
p m { |a, *b, c, **k| [a, b, c, k] }
~~~
gives:
~~~
$ ruby -v destructure_bug.rb
ruby 2.1....
brixen (Brian Shirai)
08:50 PM Revision b10058ae (git): thread_pthread.h: do not expose pthread type for lock
* thread_pthread.h (struct rb_global_vm_lock_struct):
do not expose pthread type for lock
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:47 PM Revision 3e14cdc4 (git): thread_pthread.h: remove unneeded semaphore.h include
* thread_pthread.h: remove unneeded semaphore.h include
We currently do not use POSIX semaphores.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:37 PM Bug #10009: IO operation is 10x slower in multi-thread environment
eventfd doesn't help performance (but still reduces FD count),
I never expected eventfd to improve speed, though.
Lowering TIME_QUANTUM_USEC (in thread_pthread.c) helps with the I/O case
(try it yourself if you have a 1000HZ kernel)...
normalperson (Eric Wong)
09:56 AM Bug #10009: IO operation is 10x slower in multi-thread environment
Eric Wong wrote:
> I'll try resurrecting an old eventfd proposal and maybe also bare futexes
> ...
Tank's Eric,
If an application running Rainbows has only one thread using 100% the worker is affected greatly in the query database. ...
ariveira (Alexandre Riveira)
01:21 AM Bug #10009: IO operation is 10x slower in multi-thread environment
I'll try resurrecting an old eventfd proposal and maybe also bare futexes
to see if that improves things.
normalperson (Eric Wong)
05:43 PM Bug #10015 (Closed): Performance regression in Dir#[]
r44802 seems to have introduced a performance regression in Dir#[].
Here is the test program:
~~~ruby
require 'benchmark'
puts Benchmark.realtime {
glob = "minitest/*_plugin.rb{,.rb,.bundle}"
$LOAD_PATH.map { |load_path|
...
tenderlovemaking (Aaron Patterson)
03:32 PM Bug #9975: irb で Hash を 1.9 記法で記述したときに、キーがキーワードだと syntax error
けいじゅ@いしつかです.

takkanm@gmail.com wrote:

> Issue #9975 has been reported by 三村 益隆.

> irb で Hash を 1.9 記法で記述したとき、以下の end を伴なうキーワードをキーとして使用するとエラーとなります。
>
> ~~~
> if do case def for unless until while begin

確かにバグですが...

> 添付...
keiju (Keiju Ishitsuka)
03:19 PM Revision a402e84e (git): * 2014-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:19 PM Revision 44ab0f8b (git): * lib/irb/ruby-lex.rb: fix counting indent in identify_string_dvar.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e keiju (Keiju Ishitsuka)
01:14 PM Revision aae3bcbc (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:12 PM Feature #9997: Specifying non volatile registers for increase performence in ppc64
Hi Nobuyoshi, yes, my mistake. The correct results are the ones I added later.
I'm attaching the results for the "Computer Language Benchmarks Game" as well. Check the time enhancement.
lbianc (Leonardo Bianconi)
11:33 AM Bug #10010 (Open): Error in TestEnv#test_memory_leak_* on Solaris
r46756 の make test-all にて、同じ Failure がすべての test/ruby/memory_status.rb 関連の場所で出たので再オープンします。
invoke_ruby によって --diable-gems を付けて呼んだ子プロセスの ruby 内で実行される envutil.rb にて、 require 'rbconfig' より前に find_executable が実行されるため、エラーになっているように見えます。(親プロセ...
ngoto (Naohisa Goto)
09:41 AM Bug #10010: Error in TestEnv#test_memory_leak_* on Solaris
以下のように test/ruby/test_env.rb を実行すると、なぜか、
uninitialized constant EnvUtil::RbConfig (NameError) になります。
実行に使ったrubyはr46751で、svnレポジトリのローカルコピーr46756 の test/ruby/test_env.rb を相対パス指定にて直接実行した結果のものです。
~~~
$ ruby test/ruby/test_env.rb
Run ...
ngoto (Naohisa Goto)
07:58 AM Bug #10010 (Closed): Error in TestEnv#test_memory_leak_* on Solaris
Applied in changeset r46755.
----------
memory_status.rb: find proper ps
* test/ruby/memory_status.rb (Memory::PSCMD): use ps command which
outputs expected result. [ruby-dev:48370] [Bug #10010]
nobu (Nobuyoshi Nakada)
10:56 AM Bug #10014 (Closed): Do not expose no-pinned down IDs
概要
----
ID と Symbol の関係を整理し、よりバグの少ないコードへと変更する。
現状と問題点
------------
Symbol GC が導入され、Symbol に dynamic symbol と static symbol に別れる
ことになった。
pindown されていない dynamic symbol は、GC 可能であり、ここでは mortal
symbol と呼ぶことにする。
逆に、static s...
ko1 (Koichi Sasada)
08:04 AM Revision 8b427e35 (git): sprintf.c: skip non-interned name
* sprintf.c (rb_str_format): get rid of accessing by symbol of
invalid ID, when the name is not interned.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 AM Revision 286eaeb2 (git): memory_status.rb: find proper ps
* test/ruby/memory_status.rb (Memory::PSCMD): use ps command which
outputs expected result. [ruby-dev:48370] [Bug #10010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:01 AM Revision 65accad3 (git): parse.y: expand is_asgn_or_id
* parse.y (new_op_assign_gen): expand is_asgn_or_id(), which call
id_type() function multiple times now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:48 AM Revision 7defa383 (git): * 2014-07-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:48 AM Revision fd7073f7 (git): * parse.y (dsymbol_alloc): set global_symbols.minor_marked to 0.
* parse.y (dsymbol_check): set RSYMBOL(sym)->fstr to 0
because we should not touch fstr after that.
* parse.y (rb_gc_free_dsymbol): skip deleting str and sym
from tables if fstr == 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
ko1 (Koichi Sasada)

07/07/2014

05:09 PM Bug #10013: [CSV] Yielding all elements from a row
Do you mean that it should consider the block arity to decide whether to yield a Row or destructure it into column parts? i.e.
~~~ruby
CSV.foreach('file.csv', headers: true) do |col1, col2, col3|
col1 == "1"
col2 == "2"
col...
avit (Andrew Vit)
01:05 PM Bug #10013: [CSV] Yielding all elements from a row
Sorry, this should be in lib category, but I'm not able to change it now. Gat (Dawid Janczak)
01:03 PM Bug #10013 (Closed): [CSV] Yielding all elements from a row
Let's say I have the following CSV file:
col1,col2,col3
1,2,3
4,5,6
(...)
I want to iterate over values yielding them to a block. I can do that like this:
`CSV.foreach('file.csv') { |col1, col2, col3| print col2 + " " } # => "col...
Gat (Dawid Janczak)
02:19 PM Bug #10010: Error in TestEnv#test_memory_leak_* on Solaris
> 定数の初期化はロードされてモジュール定義のときですから、まだテストでPATHが変更される前です。
確かにそのとおりでした、すみません。
パッチを当てて、PATH=/usr/ucb:$PATH などとした状態でも Error が出なくなるのは確認しました。
Errorのかわりに、下記の2つのFailureに変わりましたが、本件とは別問題として調べてみます。
~~~
1) Failure:
TestEnv#test_memory_leak...
ngoto (Naohisa Goto)
12:03 AM Bug #10010: Error in TestEnv#test_memory_leak_* on Solaris
Naohisa Goto wrote:
> TestEnv#test_memory_leak_* では、子プロセス内のコードで ENV.clear を呼んでいて、
> ...
定数の初期化はロードされてモジュール定義のときですから、まだテストでPATHが変更される前です。
> これでも、Solarisで /usr/ucb を /usr/bin や /bin より先に PATH に入れていた場合は救えません。
使えるpsを探すようにしてみました。
~...
nobu (Nobuyoshi Nakada)
01:35 PM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
Is conftest part of debugger gem? hsbt (Hiroshi SHIBATA)
08:42 AM Revision a560c208 (git): test/ruby/find_executable.rb
* test/ruby/test_rubyoptions.rb (test_program_name): use expected
ps command from PATH.
* test/ruby/find_executable.rb (EnvUtil#find_executable): find
expected executable path with argument and output pattern.
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)
07:30 AM Bug #9908 (Rejected): [mingw] openssl.so LoadError when built with 1.0.0m or 1.0.1h
usa (Usaku NAKAMURA)
07:11 AM Bug #9908 (Closed): [mingw] openssl.so LoadError when built with 1.0.0m or 1.0.1h
nagachika (Tomoyuki Chikanaga)
07:08 AM Revision b1f4bf8a (git): common.mk: integrate clean targets
* common.mk (clean-rdoc, clean-capi, clean-platform): integrate
from Makefile.in and win32/Makefile.sub.
* win32/Makefile.sub (RMALL): now use rm.bat instead of rmall.bat
which does not handle any options and convert slashes.
* win...
nobu (Nobuyoshi Nakada)
05:36 AM Revision 8572ed5c (git): * parse.y: remove global_symbols::pinned_dsym
(and ::pinned_dsym_minor_marked).
Mark pinned dsymbols by rb_gc_register_mark_object() because
they are immortal.
* prase.y (rb_gc_free_dsymbol): rename parameter name `ptr' to `sym'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
ko1 (Koichi Sasada)
04:42 AM Bug #10012 (Closed): Improve Documentation for IO.read
Duplicates: https://github.com/ruby/ruby/pull/658
- Readability improvements
- English language fixes
- Formatting fixes
soodesune (Mark Lorenz)
04:09 AM Bug #8523: intermittent unit test failure in test_timeout.rb results in build failures
backported into `ruby_2_0_0` at r46748. usa (Usaku NAKAMURA)
04:08 AM Revision 79d578eb (git): merge revision(s) 46159,46196: [Backport #8523]
* test/test_timeout.rb (test_timeout): inverted test condition.
[Bug #8523]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:58 AM Bug #9729: Hash#each が無限ループする
backported into `ruby_2_0_0` at r46747. usa (Usaku NAKAMURA)
03:58 AM Bug #9646: Infinite loop at Hash#each
backported into `ruby_2_0_0` at r46747. usa (Usaku NAKAMURA)
03:58 AM Revision a383ffa0 (git): merge revision(s) 45642,45643: [Backport #9646] [Backport #9729]
* st.c (st_foreach_check): chnage start point of search at check
from top to current. [ruby-dev:48047] [Bug #9646]
* st.c (st_foreach_check): change start point of search at check
git-svn-id: svn+ssh://ci.ruby-lang.o...
U.Nakamura
03:56 AM Bug #9543: [Doc] Fix example in GServer documentation (lib/gserver)
backported into `ruby_2_0_0` at r46746. usa (Usaku NAKAMURA)
03:55 AM Revision d2d9d6ef (git): merge revision(s) 45344: [Backport #9543]
* lib/gserver.rb: [DOC] Fixed typo in example by @stomar [Bug #9543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:53 AM Bug #9814: Improving documentation example for Enumerator#peek
backported into `ruby_2_0_0` at r46745. usa (Usaku NAKAMURA)
03:52 AM Revision d29595ce (git): merge revision(s) 46099: [Backport #9814]
* enumerator.c: [DOC] Fix example to show Enumerator#peek behavior
Patch by Erik Hollembeak [Bug #9814]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:51 AM Bug #9819: changed documentation for enumerable methods find and detect
backported into `ruby_2_0_0` at r46744. usa (Usaku NAKAMURA)
03:51 AM Revision 73d6945f (git): merge revision(s) 46095: [Backport #9819]
* enum.c: [DOC] Use #find in example to clarify alias by @rachellogie
Patch submitted via documenting-ruby/ruby#34
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:50 AM Bug #9773: broken link in man/ruby.1
backported into `ruby_2_0_0` at r46743. usa (Usaku NAKAMURA)
03:50 AM Bug #9738: A document fix for Rinda::TupleEntry#renew
backported into `ruby_2_0_0` at r46742. usa (Usaku NAKAMURA)
03:49 AM Revision a30ba8d7 (git): merge revision(s) 45896: [Backport #9773]
* man/ruby.1: remove deadlink. [ruby-core:62145][Bug #9773]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:48 AM Revision c579174a (git): merge revision(s) 45786: [Backport #9738]
* lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:47 AM Bug #9684: Use same error messages in struct.c
backported into `ruby_2_0_0` at r46741. usa (Usaku NAKAMURA)
03:47 AM Revision 8d8c4277 (git): merge revision(s) 45462,45463,45466: [Backport #9684]
* struct.c (not_a_member): extract name error and use same error
messages. based on the patch by Marcus Stollsteimer <sto.mar AT
web.de> at [ruby-core:61721]. [Bug #9684]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
U.Nakamura
03:46 AM Revision 2e225e2c (git): * gc.c: revert miss-commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:45 AM Bug #9662: [Doc] Typo in README.EXT
backported into `ruby_2_0_0` at r46739. usa (Usaku NAKAMURA)
03:44 AM Revision ea5adc4c (git): merge revision(s) 45495: [Backport #9662]
* README.EXT: fix typo.
[ruby-core:61634] [Bug #9662]
* README.EXT.ja: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:43 AM Bug #8625: IO#read(len, buf) shortens buf even if data is not read actually
backported into `ruby_2_0_0` at r46738. usa (Usaku NAKAMURA)
03:43 AM Revision ae8a4a43 (git): merge revision(s) 46360,46372: [Backport #8625]
* io.c (io_setstrbuf, io_read): should not shorten the given buffer until
read succeeds. [ruby-core:55951] [Bug #8625]
* io.c (read_all): truncate the buffer before appending read data,
instead of truncating...
U.Nakamura
03:42 AM Revision 2c551e47 (git): * parse.y: need to use updated (re-created) symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:38 AM Bug #416: core_set_method_alias
backported into `ruby_2_0_0` at r46736. usa (Usaku NAKAMURA)
03:37 AM Revision 20666f4a (git): merge revision(s) 45399,45400,46036,46037: [Backport #416]
vm.c: merge code
* vm.c (m_core_hash_from_ary, m_core_hash_merge_ary): merge
duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:17 AM Bug #9949: Net::FTP#gettextfile truncates last line when missing newline before EOF
backported into `ruby_2_0_0` at r46735. usa (Usaku NAKAMURA)
03:17 AM Revision ea0bf826 (git): merge revision(s) 46457,46458: [Backport #9949]
* lib/net/ftp.rb (gets, readline): read lines without LF properly.
[ruby-core:63205] [Bug #9949]
* test/net/ftp/test_buffered_socket.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@4...
U.Nakamura
03:13 AM Bug #9885: lib/net/imap.rb: FETCH-ed BODYSTRUCTURE with "MIXED" body type fails
backported into `ruby_2_0_0` at r46734. usa (Usaku NAKAMURA)
03:13 AM Revision 5ff287ad (git): merge revision(s) 46331: [Backport #9885]
* lib/net/imap.rb (body_type_1part): Gmail IMAP reports a body
type as "MIXED" followed immediately by params
[ruby-core:62864] [Bug #9885]
Patch by @rayners (David Raynes). [Fixes GH-622]
https://...
U.Nakamura
03:08 AM Bug #8167: net/imap failing to parse IMAP response containing one BODYSTRUCTURE
backported into `ruby_2_0_0` at r46733. usa (Usaku NAKAMURA)
03:07 AM Revision 9f3a1d75 (git): merge revision(s) 40372: [Backport #8167]
* lib/net/imap.rb (body_type_msg): should accept
message/delivery-status with extra data.
[ruby-core:53741] [Bug #8167]
* test/net/imap/test_imap_response_parser.rb: related test.
git-svn-id: svn+ssh://ci.r...
U.Nakamura
03:00 AM Bug #9994: replace deprecated macro finite() with isfinite() (fixed at r44505)
backported into `ruby_2_0_0` at r46732. usa (Usaku NAKAMURA)
03:00 AM Revision c8c913c6 (git): merge revision(s) 44505: [Backport #9994]
numeric.c: isfinite
* numeric.c (flo_is_finite_p): prefer C99 standard isfinite() than
deprecated finite().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:52 AM Bug #9486: Multiple Kernel#local_variables entries with block local parameters
backported r45845 and r45847 into `ruby_2_0_0` at r46731.
skipping r45846 because it's not the test for this change.
And, in fact, what is tested here is another problem that exists in the current state 2.0.0.
It is not known at thi...
usa (Usaku NAKAMURA)
02:49 AM Revision e4256538 (git): merge revision(s) 45845,45847: [Backport #9786]
* parse.y (local_tbl_gen): remove local variables duplicated with
arguments.
[ruby-core:60501] [Bug #9486]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:40 AM Bug #9759: [TracePoint API] return event missing when raising exception
r45758 is not enough to resolve this problem for ruby_2_0_0.
But I cannot find what is missing.
ko1, do you have any idea?
usa (Usaku NAKAMURA)
02:10 AM Bug #9912 (Assigned): URI#to_s with an empty host formats the string incorrectly
nagachika (Tomoyuki Chikanaga)
02:07 AM Revision 011b74b7 (git): * tool/mkconfig.rb: remove not to require rbconfig/obsolete.rb.
* lib/rbconfig/obsolete.rb: removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:53 AM Revision a31219c9 (git): * parse.y: do not use rb_gc_resurrect(), but create a new dynamic
symbol for garbage dynamic symbol.
* common.mk: use gc.h by parse.y.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)

07/06/2014

11:47 PM Revision 69e9b27a (git): string.c: do not use garbage object
* string.c (fstr_update_callback): should not access garbage
object contents, copy from the argument instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:09 PM Bug #10010: Error in TestEnv#test_memory_leak_* on Solaris
TestEnv#test_memory_leak_* では、子プロセス内のコードで ENV.clear を呼んでいて、
上記コードもその子プロセス内で呼ばれることになるため、つまり、
上記コードを通る際には ENV[PATH]は nil になった状態です。
このため、ENV["PATH"].split の部分でエラーになると思います。
以下のようにPATHを保存して最後に復旧するようにしたら、Errorは出なくなりました。(Failureにはなりますが、OS...
ngoto (Naohisa Goto)
04:19 PM Bug #10010 (Feedback): Error in TestEnv#test_memory_leak_* on Solaris
これでどうでしょう。
見つからなかったときにどうするか悩ましいですが。
~~~diff
diff --git a/test/ruby/memory_status.rb b/test/ruby/memory_status.rb
index f8e097a..ef973ee 100644
--- a/test/ruby/memory_status.rb
+++ b/test/ruby/memory_status.rb
@@ -82,7 +82,17 @@ ...
nobu (Nobuyoshi Nakada)
12:55 PM Bug #10010: Error in TestEnv#test_memory_leak_* on Solaris
コードをよく読んだら原因の推測が間違っていたので訂正します。
> なお、Solaris では、/proc/self/status は struct pstatus_t の内容のバイナリを返しますが、それには全く対応していないので、nil になるか、偶然バイナリ値が何かに一致した場合にでたらめな値が返されるかのいずれかになります。
は明確に間違いで、ps を利用して、それなりの値を返すようにはなっていました。
しかし、test_env.rb 内のテストコ...
ngoto (Naohisa Goto)
10:55 AM Bug #10010 (Closed): Error in TestEnv#test_memory_leak_* on Solaris
r46550 くらい以降、Solaris 10 にて make test-all 中、以下のエラーが発生します。
(r44686 にて確認)
test/envutil.rb の 438行目にて、:size や :rss 用の情報が、OS側の何らかの理由で示されず、その結果ハッシュにも格納されず、 a または b が nil になることがあるのに、それに対応していないのが原因と思います。
なお、Solaris では、/proc/self/status は s...
ngoto (Naohisa Goto)
05:20 PM Revision 7ad35210 (git): * string.c (fstr_update_callback): do not use rb_gc_resurrect()
any more.
Make new frozen string and replace with garbage frozen string.
* common.mk: use gc.h from string.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:53 PM Bug #10011 (Closed): Passing a string to Pathname#relative_path_from results in NoMethodError
When a string is passed to Pathname#relative_path_from, a NoMethodError is raised.
```
irb(main):001:0> require "pathname"
=> true
irb(main):002:0> Pathname.new("/usr/bin/cc").relative_path_from Pathname.new("/usr/bin")
=> #<Pathn...
Anonymous
03:42 PM Revision 2006bfe2 (git): * gc.c: rename is_dying_object() to is_garbage_object().
* gc.h: rb_objspace_garbage_object_p() as an exported function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:22 PM Revision 6a9b242a (git): st.c: fix uninitialized variable
* st.c (st_update): old_key is uninitialized by jump to the label
unpacked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:13 PM Revision d74fdfb1 (git): * 2014-07-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision 783b3c8d (git): st.c: remove equality checks
* st.c (st_update): remove equality checks, callers should ensure
the equality, otherwise the behavior is undefined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:42 PM Revision ea74da0c (git): st.c: re-calc hash_val before adding
* st.c (st_update): re-calculate hash_val before adding if key was
changed, otherwise cannot access the newly added element if it
has different hash value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46722 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
02:29 PM Bug #9729: Hash#each が無限ループする
Backported into `ruby_2_1` branch at r46721. nagachika (Tomoyuki Chikanaga)
02:29 PM Bug #9646: Infinite loop at Hash#each
Backported into `ruby_2_1` branch at r46721. nagachika (Tomoyuki Chikanaga)
02:28 PM Revision 068a7dff (git): merge revision(s) r45642,r45643: [Backport #9646] [Backport #9729]
* st.c (st_foreach_check): chnage start point of search at check
from top to current. [ruby-dev:48047] [Bug #9646]
* st.c (st_foreach_check): change start point of search at check
git-svn-id: svn+ssh://ci.ruby-lang.o...
nagachika (Tomoyuki Chikanaga)
02:19 PM Revision e6be6ebc (git): st.c: update the key too if changed
* st.c (st_update): fix a bug that the key was not updated even if
it was changed by the callback function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 PM Bug #9543: [Doc] Fix example in GServer documentation (lib/gserver)
Backported into `ruby_2_1` branch at r46719. nagachika (Tomoyuki Chikanaga)
01:57 PM Revision 1fe220dc (git): merge revision(s) r45344: [Backport #9543]
* lib/gserver.rb: [DOC] Fixed typo in example by @stomar [Bug #9543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:28 PM Bug #10009: IO operation is 10x slower in multi-thread environment
Alexandre Riveira wrote:
I applied tests using Rubinius.
Rubinius uses only 1 processor due to applied taskset, results:
first 18164692
second 10007 <==========
third 18184825
ariveira (Alexandre Riveira)
07:47 AM Bug #10009: IO operation is 10x slower in multi-thread environment
My environment is Debian 3.2.0-4-amd64 ariveira (Alexandre Riveira)
07:35 AM Bug #10009 (Assigned): IO operation is 10x slower in multi-thread environment
I created this issue #9832 but not have io operation.
In the script attached I simulate IO operation in multi-thread environment.
For ruby 1.9.2 apply `taskset -c -p 2 #{Process.pid}` for regulates threads behavior.
The second Thread ...
ariveira (Alexandre Riveira)
12:45 PM Revision 9f051c80 (git): * file.c, ext/pathname/pathname.c: [DOC] correct position of method rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
12:33 PM Revision 094949cb (git): * gc.c (is_dying_object): fix missed condition.
* gc.c (is_live_object): move frequent path first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:02 PM Revision 38943e80 (git): * gc.c: rename is_dead_object() to is_dying_object().
This function is not opposite against is_live_object()
because is_dying_object() does *not* check object type.
* gc.c (is_dying_object): change condition.
* gc.c (is_live_object): use T_NONE instead of 0.
* gc.c (rb_objspace_dying_obje...
ko1 (Koichi Sasada)
05:31 AM Bug #10008 (Feedback): conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
nobu (Nobuyoshi Nakada)
05:31 AM Bug #10008: conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
Which `conftest`?
Some `conftest`s are expected to segfault.
nobu (Nobuyoshi Nakada)
05:16 AM Bug #10008 (Closed): conftest crashed: installing mri 2.1.2: EXC_BAD_ACCESS (SIGABRT)
crash dump: https://gist.github.com/jaredbeck/be73c376b860d8d6eed9
```bash
cd ~/.rbenv
git log --oneline | head -n1
# 13a474c Get rid of explicit exit in fish branch of `rbenv-init`
cd plugins/ruby-build/
git log --oneline | head...
jaredbeck (Jared Beck)
05:20 AM Revision ad92b09e (git): split tool/fake.rb
* tool/fake.rb: split from template/fake.rb.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:42 AM Revision a617afc6 (git): * gc.c (rb_gc_register_mark_object): change data structure.
From single array, to array of arrays. Each array only has 1024
entries.
* vm.c (Init_vm_objects): change default capa from 1 to 128.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:42 AM Revision 92089610 (git): fake.rb.in: override File::ALT_SEPARATOR
* template/fake.rb.in (File::ALT_SEPARATOR): override
ALT_SEPARATOR if different, not only a backslash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:42 AM Revision 24e41046 (git): mkconstants.rb: remove empty comments
* ext/etc/mkconstants.rb: remove empty comments, defaut_proc isn't
called by accessing nil-assigned elements, and the same content
is useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:03 AM Revision 09e36e47 (git): rdoc/stats/normal.rb: fix last_width
* lib/rdoc/stats/normal.rb (print_file): reset @last_width to the
last line size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:00 AM Revision d054cab6 (git): rdoc/stats/normal.rb: IO.console_size
* lib/rdoc/stats/normal.rb (print_file): use IO.console_size to
follow window resize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:00 AM Revision 25e8f524 (git): rdoc/stats/normal.rb: clear previous output
* lib/rdoc/stats/normal.rb (print_file): clear previous output
instead of filling the line, not to leave extra spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom