Project

General

Profile

Activity

From 09/17/2016 to 09/23/2016

09/23/2016

05:29 PM Bug #12785: misc/test_ruby_mode.rb failed with emacs 25.1.1
I check with following diff, file is saved.
```diff
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
index a91e1c2..36009f8 100644
--- a/test/misc/test_ruby_mode.rb
+++ b/test/misc/test_ruby_mode.rb
@@ -35,6...
znz (Kazuhiro NISHIYAMA)
08:30 AM Bug #12785: misc/test_ruby_mode.rb failed with emacs 25.1.1
Does `save-buffer` in Emacs 25.1 print nothing?
Or did it fail?
nobu (Nobuyoshi Nakada)
02:59 PM Revision 5a121a4f (git): * vm_method.c (make_method_entry_refined): fix wrong use of ||.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
02:18 PM Revision b212dd66 (git): zlib: no checks [ci skip]
* ext/zlib/extconf.rb: no feature checks when building zlib from
the source, assume it is recent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Revision f5f8f3ce (git): zlib: fix directory [ci skip]
* ext/zlib/extconf.rb: fix directory to install zlib library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:00 PM Bug #12688: Thread unsafety in autoload
> It successfully runs for less than 50 dots, and then one of the threads errors out. I don't think it should.
Ok, I can't count...it does run through one full iteration and then probably fails because the autoload doesn't actually lo...
headius (Charles Nutter)
12:40 PM Revision 9d5bc13f (git): Add support for the `Lk` macro to tool/mdoc2man.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
12:16 PM Revision 4d3e3c25 (git): forwardable.rb: remove debug print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:08 PM Revision 807114dd (git): Remove a garbage file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
11:46 AM Feature #12534 (Closed): Refinements: refine modules as well
Applied in changeset r56213.
----------
* eval.c (rb_mod_refine): refine modules as well.
[ruby-core:76199] [Feature #12534]
shugo (Shugo Maeda)
11:46 AM Revision 47ebf735 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:46 AM Revision 415d7a03 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:46 AM Revision a463ab1f (git): * eval.c (rb_mod_refine): refine modules as well.
[ruby-core:76199] [Feature #12534]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
11:31 AM Bug #11133 (Feedback): Wrong Hyperlink representation in man page
Sorry for the delay, and thanks for spotting it.
I've replaced the use of the `Pa` macro with `Lk` in r56211. The `Lk` macro was added to mdocml a long time ago, which I didn't notice when I committed r39640.
As for the original p...
knu (Akinori MUSHA)
11:21 AM Revision 0b5a4e68 (git): Update the paragraphs in "Rich Libraries" which included a dead link
* man/ruby.1: Update the paragraphs in "Rich Libraries" which
included a dead link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
11:21 AM Revision 7c30df71 (git): Use the `Lk` macro for hyperlinks
* man/ruby.1, man/erb.1, man/irb.1, man/ri.1: Use the `Lk` macro
for hyperlinks, which has been available since mdocml 1.5.1
(released more than seven years ago).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56211 b2dd03c8-39d4...
Akinori MUSHA
10:43 AM Feature #12020: Documenting Ruby memory model
Hi Shyouhei, sorry for not doing it so far, I took vacation to travel Japan right after the conference. It is already on my todolist when I get back. pitr.ch (Petr Chalupa)
10:23 AM Feature #12020: Documenting Ruby memory model
Can someone summarize the off-line discussion mentioned earlier? I was not there. shyouhei (Shyouhei Urabe)
10:28 AM Bug #12685 (Feedback): malloc error: pointer being freed was not allocated
Yes, it sounds serious. But so far I'm not successful in reproducing the error. Can you show us a bit more detailed instruction how to actually see this bug on my machine? shyouhei (Shyouhei Urabe)
10:11 AM Bug #12679 (Feedback): Failed to build ruby on aarch64 with musl libc and gcc 6
Sorry, this platform (arch and libc) is not actively supported officially I think.
I'm happy to introduce a fix if someone have one.
shyouhei (Shyouhei Urabe)
09:37 AM Bug #12783 (Closed): Segmentation fault when verifying RSA signature
Thanks for reporting!
Fixed at upstream by commit:
https://github.com/ruby/openssl/commit/0e49794521db899ab25774e932f83d6ce452a8ec
rhenium (Kazuki Yamaguchi)
06:47 AM Bug #12782 (Closed): Forwardable breaks on private methods in ruby 2.4
Applied in changeset r56210.
----------
forwardable.rb: private methods
* lib/forwardable.rb (_delegator_method): allow private methods to
be delegated, with warnings. [ruby-core:77341] [Bug #12782]
nobu (Nobuyoshi Nakada)
06:47 AM Revision ef13e60f (git): forwardable.rb: private methods
* lib/forwardable.rb (_delegator_method): allow private methods to
be delegated, with warnings. [ruby-core:77341] [Bug #12782]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:27 AM Revision 1e1a114c (git): test_fileutils.rb: use Dir.mktmpdir
* test/fileutils/test_fileutils.rb: use Dir.mktmpdir instead of
fixed name for temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:15 AM Revision 7382eb7e (git): compile.c: tailcall in conditinal block
* compile.c (iseq_peephole_optimize): enable tail call
optimization inside a conditional block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:32 AM Revision 9ec75a25 (git): * 2016-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:32 AM Revision e53e212b (git): ignore all versions [ci skip]
.gitignore: ignore all versions of unicode data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/22/2016

05:39 PM Bug #12688: Thread unsafety in autoload
> $".pop would be needed to clear bar.rb in loaded features.
> ...
But why does it work for a while and then stop working? There still seems to be a threading issue here.
Here's my modified script, with the confirmation dots moved af...
headius (Charles Nutter)
05:19 PM Bug #12729: crash after refining private method to public
On latest head of master I don't get this abort trap or core dump, but I also don't see it return. It hangs, using 100% CPU, for at least a full minute and can only be stopped with "kill 9".
noahgibbs (Noah Gibbs)
04:24 PM Bug #12780: BigDecimal#round returns different types depending on argument
The Japanese issue appears to be saying that there's a problem in RubySpec that will need to be fixed, and that fixing it is a problem with (I think?) early 1.9 compatibility.
noahgibbs (Noah Gibbs)
03:29 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Opened an issue with RubySpec: https://github.com/ruby/spec/issues/294
noahgibbs (Noah Gibbs)
03:25 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Also: looks like your patch fixes it for integer rounding too, based on your RubySpec failures. Mine does not. Sprintf doesn't have an integer rounding mode, but your way is probably still better.
noahgibbs (Noah Gibbs)
03:10 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
@nobu: makes sense. I'll file an issue with RubySpec to let them know that at least some of these tests aren't compatible with IEEE 754 round-nearest-to-even mode. Examining the first test failure (spec/core/float/round_spec.rb line 70),... noahgibbs (Noah Gibbs)
07:01 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
I have a [patch] too, but it breaks compatibilities in rubyspec.
```
1)
Float#round returns rounded values for big values FAILED
Expected 200000000000000000000
to have same value and type as 300000000000000000000
spec/rubyspec/...
nobu (Nobuyoshi Nakada)
06:33 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Noah Gibbs wrote:
> It appears both tests won't work if we correctly implement the round-even behavior, so the new patch fixes those.
That is what I had mentioned.
nobu (Nobuyoshi Nakada)
04:39 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
You're right. I apologize. I had been running test-ruby instead of test-all without realizing it.
It appears both tests won't work if we correctly implement the round-even behavior, so the new patch fixes those.
New patch is attach...
noahgibbs (Noah Gibbs)
01:13 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
Your patch breaks two tests.
```
[24/42] TestVector#test_round = 0.00 s
1) Failure:
TestVector#test_round [test/matrix/test_vector.rb:162]:
<Vector[1.23, 2.34, 3.4]> expected but was
<Vector[1.23, 2.35, 3.4]>.
[...
nobu (Nobuyoshi Nakada)
03:17 PM Bug #12782: Forwardable breaks on private methods in ruby 2.4
The choice might be more between simply reverting and reverting but adding code to detect private calls and issue a deprecation warning so we can reintroduce the optimization in another version. marcandre (Marc-Andre Lafortune)
06:14 AM Bug #12782: Forwardable breaks on private methods in ruby 2.4
Nobuyoshi Nakada wrote:
> I suspect that it was a bug to able to delegate a private method.
It does seem like a bad idea to allow forwarding to private methods. However, the commit message did not mention that it fixes a bug, so I be...
jeremyevans0 (Jeremy Evans)
03:03 AM Bug #12782: Forwardable breaks on private methods in ruby 2.4
I suspect that it was a bug to able to delegate a private method. nobu (Nobuyoshi Nakada)
02:22 PM Bug #12785 (Closed): misc/test_ruby_mode.rb failed with emacs 25.1.1
When emacs is 25.1.1, test/misc/test_ruby_mode.rb causes 8 failures.
```
vagrant@archlinux:~/ruby/build$ make test-all TESTS=misc/test_ruby_mode.rb
CC = ccache gcc
LD = ld
LDSHARED = ccache gcc -shared
...
znz (Kazuhiro NISHIYAMA)
02:18 PM Bug #12784 (Closed): Compiling v2.3.1 on Debian stable
Good afternoon!
I am backporting ruby2.3 (v2.3.1) from Debian testing to stable.
https://packages.debian.org/stretch/ruby2.3
```
# P="http://http.debian.net/debian/pool/main/r/ruby2.3/ruby2.3_2.3.1-5.dsc"
# docker run --rm --tty...
szepeviktor (Viktor Szépe)
02:05 PM Revision ddad0541 (git): sync with svn:ignore. see r56105 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:56 PM Bug #12783 (Closed): Segmentation fault when verifying RSA signature
I ran into a segfault while using the [json-jwt](https://github.com/nov/json-jwt/) gem, it happens when trying to verify the RSA signature using the OpenSSL library. I've attached a minimal test case which triggers the segfault without g... toupeira (Markus Koller)
07:24 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
Nobuyoshi Nakada wrote:
> It causes `SystemStackError` as expected, with ruby 2.3.
No it definitely segfaults for me:
~~~ text
$ cat ex.rb
l = -> { l.() }
begin
l.()
rescue SystemStackError
l.() # segfault
end
$ whic...
backus (John Backus)
06:35 AM Revision 21255071 (git): zlib: try zlib source
* ext/zlib/extconf.rb: try building zlib from the source if
exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:35 AM Revision 958c0489 (git): dlntest.dll: move
* ext/-test-/win32/dln/{depend,extconf.rb} (dlntest.dll): make
under the extension directory, instead of the top directory.
* test/-ext-/win32/test_dln.rb (test_check_imported): explicit
PATH environment variable to load the DLL.
g...
nobu (Nobuyoshi Nakada)
04:06 AM Revision 0e0bff15 (git): * 2016-09-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:06 AM Revision c6501ccc (git): gc.c: fix rdoc of garbage_collect [ci skip]
* gc.c (gc_start_internal): [DOC] methods without arguments
like r56194. [Bug #12777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
12:35 AM Misc #12781 (Third Party's Issue): Segmentation fault on macOS Sierra (sqlite3_adapter.rb)
Please report to the sqlite3-ruby project. nobu (Nobuyoshi Nakada)

09/21/2016

10:04 PM Bug #12782 (Closed): Forwardable breaks on private methods in ruby 2.4
Due to an optimization in r55376, attempting to forward to private methods no longer works in ruby 2.4. Among other things, this breaks haml template support in tilt. Example:
~~~ ruby
require 'forwardable'
class Foo
private def ...
jeremyevans0 (Jeremy Evans)
08:56 PM Bug #5244: Continuation causes Bus Error on Debian sparc
This may still be a problem on Solaris sparc64 where the link stage fails thus :
~~~
compiling vm.c
"./include/ruby/st.h", line 85: warning: nonportable bit-field type
"vm_insnhelper.c", line 1838: warning: statement not reached
...
genunix (Dennis Clarke)
07:58 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
Here's a patch that makes floating-point rounding behavior match sprintf()'s round-to-even. It also adds a unit test for the new behavior. The change doesn't break any existing unit tests.
noahgibbs (Noah Gibbs)
07:58 PM Misc #12781 (Third Party's Issue): Segmentation fault on macOS Sierra (sqlite3_adapter.rb)
After upgrading my MBP to macOS Sierra, I now get a segmentation fault on the sqlite3_adapter.rb with every request sent to Unicorn:
plind (Pascal Lindelauf)
02:55 PM Feature #2172: Enumerable#chunk with no block
Forgot to note that the other possiblity suggested for `chunk` with no block can now be done clearly and succintly with `chunk(&:itself)`, so there's no longer any doubt that the block without block should return an `Enumerator` marcandre (Marc-Andre Lafortune)
02:53 PM Feature #2172: Enumerable#chunk with no block
Matz, would you agree to return enumerator for `chunk` without a block?
This is useful in particular to chain it with `with_index`
A real case example is to summarize a list of integers into ranges. Currently, we need:
```ruby
in...
marcandre (Marc-Andre Lafortune)
11:24 AM Bug #12521: Syntax for retrieving argument without removing it from double-splat catch-all
Guyren Howe wrote:
> ```ruby
> ...
So this would be syntactic sugar for essentially this?
```ruby
def render **context
name = context.fetch :name
something = context.fetch :something
foo = context.fetch :foo
… now use...
Eregon (Benoit Daloze)
11:13 AM Bug #12521: Syntax for retrieving argument without removing it from double-splat catch-all
Tomohiro Hashidate wrote:
> I want this feature.
> ...
Why is it better than this?
~~~ ruby
class KMS
def initialize(key_id, **auth)
@client = Aws::KMS::Client.new(**auth) # simple
@key_id = key_id
end
# ...
~...
Eregon (Benoit Daloze)
08:22 AM Bug #12521: Syntax for retrieving argument without removing it from double-splat catch-all
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12521-kwarg-in-option nobu (Nobuyoshi Nakada)
10:47 AM Bug #12780 (Closed): BigDecimal#round returns different types depending on argument
BigDecimal#round returns Integer when no arguments are given and BigDecimal otherwise. I would have assumed the result to always be BigDecimal.
BigDecimal.new('12.34').round # => 12 (Integer)
BigDecimal.new('12.34').round(0) # => 12 ...
Gat (Dawid Janczak)
08:46 AM Revision fdaea159 (git): * process.c (InitVM_process): Support CLOCK_MONOTONIC_RAW_APPROX,
CLOCK_UPTIME_RAW, and CLOCK_UPTIME_RAW_APPROX which are introduced
by macOS 10.12.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:47 AM Revision f4ac0d75 (git): parse.y: preserve cmdarg_stack
* parse.y (brace_body, do_body): preserve cmdarg_stack so that
`do` after cmdarg in a block should be `do_block` and bound to
the outer method. [ruby-core:72482] [Bug #11873]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56199 ...
nobu (Nobuyoshi Nakada)
04:38 AM Bug #11873 (Closed): Syntax error and parse problem when calling a method without parentheses
Applied in changeset r56198.
----------
parse.y: do after cmdarg in paren
* parse.y: `do` after cmdarg in parentheses should be `do_block`
and bound to the outer method. [ruby-core:72482] [Bug #11873]
nobu (Nobuyoshi Nakada)
04:38 AM Revision c924e2db (git): parse.y: do after cmdarg in paren
* parse.y: `do` after cmdarg in parentheses should be `do_block`
and bound to the outer method. [ruby-core:72482] [Bug #11873]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:36 AM Revision b458aef0 (git): parse.y: remove spaces [ci skip]
* parse.y (cmd_brace_block, do_block): remove spaces before tab in
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:32 AM Revision ceddc8f5 (git): * 2016-09-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:32 AM Revision 7b4b01bf (git): parse.y: block bodies
* parse.y (brace_body, do_body): extract block bodies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/20/2016

02:11 PM Bug #12421: Please backport r53816, r53817
I do not consider this a feature change but a bug fix. According to wget specification of the no_proxy environment variable, leading dots are supposed to be supported. I would even argue that using leading dots in the no_proxy list is th... Obfuscoder (Kai Lehmann)
02:02 PM Bug #12777 (Closed): NoMethodError: undefined method `garbage_collect' for GC:Module
Applied in changeset r56194.
----------
gc.c: fix rdoc of garbage_collect [ci skip]
* gc.c (gc_start_internal): [DOC] add ObjectSpace.garbage_collect
and fix GC#garbage_collect. [Bug #12777]
nobu (Nobuyoshi Nakada)
12:28 PM Bug #12777 (Closed): NoMethodError: undefined method `garbage_collect' for GC:Module
RDoc says `GC.garbage_collect` is equal to `GC.start`. But `GC.garbage_collect` is a normal method. It is not a singleton method.
So `GC.garbage_collect` raises ``NoMethodError: undefined method `garbage_collect' for GC:Module``.
Which...
znz (Kazuhiro NISHIYAMA)
02:02 PM Revision 25049e98 (git): gc.c: fix rdoc of garbage_collect [ci skip]
* gc.c (gc_start_internal): [DOC] add ObjectSpace.garbage_collect
and fix GC#garbage_collect. [Bug #12777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:51 PM Bug #12778 (Closed): Segmentation Fault in win32ole on Ruby 2.3.1p112 [x64-mingw32] when creating Windows Share
Whilst using ruby to create a shared folder on Windows I encountered a seg fault. This reproduces the issue on Windows 2012R2.
`\Ruby23-x64\bin\ruby -rwin32ole -e 'wmi = WIN32OLE.connect("winmgmts://"); share = wmi.get("Win32_Share");...
rlaveycal (Richard Lavey)
12:25 PM Revision f4b566df (git): * doc/extension.ja.rdoc: translate r56189 (rb_gc_adjust_memory_usage). [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:00 PM Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31
I have removed the asterisk from the x and got a bit further to:
~~~
gmake[3]: Entering directory '/tmp/stable-snapshot/ext/fiddle/libffi-3.2.1'
gmake 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-g -warn all' 'CXXFLAGS=-g ' 'CFLAGS_FOR_BUI...
michael-o (Michael Osipov)
11:40 AM Bug #12396: Compilation crashes with segmentation fault in HP-UX 11.31
Just retried with a stable snapshot:
~~~
compiling ./missing/strlcpy.c
/opt/aCC/bin/aCC -Ae -g -c ia64.s
compiling addr2line.c
compiling dmyenc.c
linking miniruby
generating encdb.h
./tool/generic_erb.rb:2: [BUG] Segmentatio...
michael-o (Michael Osipov)
11:12 AM Revision 45d62ec9 (git): describe "0.class == Integer" to detect the feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:52 AM Revision 49587922 (git): * gems/bundled_gems: Update rake-11.3.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
07:52 AM Feature #12690 (Closed): Improve GC with external library that may use large memory
Applied in changeset r56189.
----------
gc.c: rb_gc_adjust_memory_usage
* gc.c (rb_gc_adjust_memory_usage): notify memory usage to the GC
engine by extension libraries, to trigger GC. [Feature #12690]
nobu (Nobuyoshi Nakada)
07:52 AM Revision 5039300f (git): * 2016-09-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:52 AM Revision 68aa1d81 (git): gc.c: rb_gc_adjust_memory_usage
* gc.c (rb_gc_adjust_memory_usage): notify memory usage to the GC
engine by extension libraries, to trigger GC. [Feature #12690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:20 AM Bug #12776: Flaky test case: TestThread#test_thread_name
In Fedora CI, I observe from time to time this test failure:
```
1) Failure:
TestThread#test_thread_name [/builddir/build/BUILD/ruby-2.3.1/test/ruby/test_thread.rb:1061]:
<"#<TestThread::Thread:0x0055db68186ef8@/builddir/build/BU...
vo.x (Vit Ondruch)
07:14 AM Bug #12776 (Closed): Flaky test case: TestThread#test_thread_name
vo.x (Vit Ondruch)
06:05 AM Feature #12775: Random subset of array
Nobuyoshi Nakada wrote:
> Do you mean random size subset?
> ...
Yes, I mean random subset with random size. The use cases are mainly for testing.
sawa (Tsuyoshi Sawada)
06:03 AM Feature #12775 (Feedback): Random subset of array
Do you mean random size subset?
I can't get how/why it is useful.
Please elaborate with the use cases.
nobu (Nobuyoshi Nakada)
04:50 AM Feature #12775 (Rejected): Random subset of array
I often see use cases to randomly sample a subset from an array like this:
```ruby
a = [3, 2, 6, 2, 6, 1]
a.sample(rand(a.length + 1)) # => [2, 6, 6, 3]
```
I request extending `Array#sample` to let it take an option (such as `:...
sawa (Tsuyoshi Sawada)
04:21 AM Bug #8996: pthread_mutex_lock EINVAL
Also occurs on latest head of master (Git commit c9dd5918f40dc6df3a237f634b9689bfbb591662, git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e).
noahgibbs (Noah Gibbs)
12:56 AM Feature #12760: Optional block argument for `itself`
What about `let` ?:
```ruby
some.long.method.chain.constructing.string
.let { |s| "(" + s + ")" }
```
nobu (Nobuyoshi Nakada)
12:48 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
It causes `SystemStackError` as expected, with ruby 2.3. nobu (Nobuyoshi Nakada)

09/19/2016

09:35 PM Bug #12720: Ruby segmentation issue
References:
Same issue on stackoverflow.com (maybe by the same reporter):
http://stackoverflow.com/questions/39290593/ruby-on-rails-segmentation-error
Issue of eventmachine:
https://github.com/eventmachine/eventmachine/issues/670...
wanabe (_ wanabe)
12:39 PM Bug #8996: pthread_mutex_lock EINVAL
still happening on 2.3.1 sylvain.joyeux (Sylvain Joyeux)
12:38 PM Bug #9244: unexpected behaviour of 'require' when $LOAD_PATH gets changed
and on 2.3.1 sylvain.joyeux (Sylvain Joyeux)
10:09 AM Bug #12771 (Feedback): Allow setting max memory consumption
Do you mean `Process::setrlimit(Process::RLIMIT_AS, 100 * 1024 * 1024)` does not work for you? If that is the case please explain why? shyouhei (Shyouhei Urabe)
09:49 AM Feature #12760: Optional block argument for `itself`
Thanks a lot! (But, sorry for bothering, could it be discussed as "Optional block argument for itself OR another name for `yield self` method"? Like, in hope for final solution, not "optional block argument for itself is rejected, and th... zverok (Victor Shepelev)
09:23 AM Feature #12760: Optional block argument for `itself`
Victor Shepelev wrote:
> Please-please-please, could somebody add this topic to next developer's meeting agenda?..
Done, please see https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20161011Japan.
duerst (Martin Dürst)
08:21 AM Revision c9dd5918 (git): bundled_gems: minitest certificate expired
* gems/bundled_gems: certificate of minitest-5.9.0 has expired.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 AM Feature #12739 (Closed): deprecate_constant :Fixnum, :Bignum
Applied in changeset r56187.
----------
deprecate Fixnum and Bignum
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
Fixnum and Bignum. this may be reverted after previews.
[Feature #12739]
nobu (Nobuyoshi Nakada)
08:05 AM Revision 772fd010 (git): deprecate Fixnum and Bignum
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
Fixnum and Bignum. this may be reverted after previews.
[Feature #12739]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:48 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
Any update on this issue? I ran into this bug yesterday and spent hours investigating the source of the segfault. Here is the code that caused the issue for me:
```ruby
def foo
define_singleton_method(:method_missing) { |...
backus (John Backus)
07:00 AM Feature #12734: `Array#flat?`
Herwin W wrote:
> This is pretty trivial to implement yourself:
Oh, you're right. I didn't realize that this is merely a type check.
May someone close this feature request?
sos4nt (Stefan Schüßler)
03:00 AM Feature #12770: Hash#left_merge
Robert A. Heiler wrote:
> I think that the name appears to be a bit strange - if we have a left_merge, do we have a right_merge, an up_merge, a bottom_merge? :)
Given that it comes from SQL's [JOIN](https://en.wikipedia.org/wiki/Join...
phluid61 (Matthew Kerwin)
02:02 AM Feature #12770: Hash#left_merge
I think that the name appears to be a bit strange - if we have a left_merge, do we have a right_merge, an up_merge, a bottom_merge? :)
I can relate an example from molecular biology by the way, and how they "find names". :D
There w...
shevegen (Robert A. Heiler)
01:37 AM Feature #6183 (Closed): Enumerator::Lazy performance issue
Applied in changeset r56185.
----------
enumerator.c: lazy enum improvement
* enumerator.c (lazy_init_yielder): directly call stored functions.
[Feature #6183]
* enumerator.c (lazy_add_method): create lazy enumerator which
uses laz...
nobu (Nobuyoshi Nakada)
01:36 AM Revision abe087e5 (git): * 2016-09-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:36 AM Revision 856afbef (git): enumerator.c: lazy enum improvement
* enumerator.c (lazy_init_yielder): directly call stored functions.
[Feature #6183]
* enumerator.c (lazy_add_method): create lazy enumerator which
uses lazy_init_yielder().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56185 b2d...
nobu (Nobuyoshi Nakada)

09/18/2016

01:56 PM Bug #12773: useless lines in lib/rss/rss.rb
その通りなので削除しました。 kou (Kouhei Sutou)
01:52 PM Bug #12773 (Closed): useless lines in lib/rss/rss.rb
Applied in changeset r56184.
----------
* lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
[Bug #12773][ruby-dev:49813]
Reported by Kazuhiro NISHIYAMA. Thanks!!!
kou (Kouhei Sutou)
10:31 AM Bug #12773 (Closed): useless lines in lib/rss/rss.rb
`lib/rss/rss.rb` に
```
attr = attr.id2name if attr.kind_of?(Integer)
```
という行が複数ありますが、`Fixnum#id2name` はもうないので、不要なのではないでしょうか。
znz (Kazuhiro NISHIYAMA)
01:51 PM Revision 671e1d89 (git): * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes.
[Bug #12773][ruby-dev:49813]
Reported by Kazuhiro NISHIYAMA. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
01:38 PM Bug #12774: TkDND cannot handle text/plain, text/uri-list type well
# I'm sorry that I posted this to ruby-core unintentionally.
# It seems that I cannot change the property of this ticket
# by myself, so I try to explain this in English
ext/tk/lib/tkextlib/tkdnd.rb cannot handle text and filelis...
dogatana (Toshihiko Ichida)
01:29 PM Bug #12774 (Rejected): TkDND cannot handle text/plain, text/uri-list type well
dogatana (Toshihiko Ichida)
10:40 AM Bug #12767: Since r56169, compile error of vsnprintf.c with Oracle Solaris Studio 12.x
これは完全に考慮漏れでした。ごめんなさい。 shyouhei (Shyouhei Urabe)
10:24 AM Revision 2c2a111e (git): * lib/sync.rb: Fix NameError when error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:23 AM Revision b9e96915 (git): common.mk: use EXTOUT to benchmark [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:21 AM Revision 26a1ebf0 (git): * 2016-09-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:21 AM Revision f9b36a39 (git): mkmf.rb: fix for bundled gems
* lib/mkmf.rb (install_dirs): enable extout in RUBYARCHDIR only
when extmk.
* lib/mkmf.rb (create_makefile): ditto for TIMESTAMP_DIR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/17/2016

07:58 PM Feature #12770: Hash#left_merge
Ah, hmm. I think new example was a bit off as well. The return value should be:
`{ a: 1, b: 2, c: 3, d: nil, e: nil }`
dkniffin (Derek Kniffin)
07:47 AM Feature #12770 (Feedback): Hash#left_merge
Derek Kniffin wrote:
> I've also got a first draft of the method definition:
> ...
If the definition is as easy as that, it doesn't look really worthwhile to create a new method. There are lots of different ways to merge hashes, and th...
duerst (Martin Dürst)
02:21 AM Feature #12770: Hash#left_merge
Ah, yep, here's a better example:
````ruby
a = {a: 1, b: nil, c: 3, d: nil}
b = {a: 1, b: 2, c: 4, e:nil}
a.left_merge(b) # => {a: 1, b: 2, c: 3, d: nil}
````
And yea, I admit it's not a great name. The reason I chose left_merg...
dkniffin (Derek Kniffin)
03:30 PM Bug #12772: stderr: /home/webui/production/vendor/bundle/ruby/2.1.0/gems/ref-1.0.2/lib/ref/weak_reference/pure_ruby.rb:45: [BUG] Segmentation fault at 0x00000000000018
Updating the ref dependency to 2.0.0 makes the issue no longer reproducible. mulander (Adam Wolk)
03:09 PM Bug #12772: stderr: /home/webui/production/vendor/bundle/ruby/2.1.0/gems/ref-1.0.2/lib/ref/weak_reference/pure_ruby.rb:45: [BUG] Segmentation fault at 0x00000000000018
Reproduced without backports enabled. Same error. mulander (Adam Wolk)
02:18 PM Bug #12772 (Closed): stderr: /home/webui/production/vendor/bundle/ruby/2.1.0/gems/ref-1.0.2/lib/ref/weak_reference/pure_ruby.rb:45: [BUG] Segmentation fault at 0x00000000000018
I'm testing a rails application on debian jessy that was previously running on debian wheezy.
Running `RAILS_ENV=production bundle exec /usr/bin/rake assets:clean` reliably leads to a segmentation fault.
The target machine is a vir...
mulander (Adam Wolk)
01:46 PM Revision a333b8e6 (git): * vm_insnhelper.c (vm_throw_start): Remove too much ";"
[fix GH-1432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
11:46 AM Feature #12760: Optional block argument for `itself`
>> But, to be completely honest, I'm fascinated by how this simple, easy to
implement and useful functionality have drowned for ages in "better-name-ever"
discussions.
> ...
things to get "right".
I can understand your point, but...
zverok (Victor Shepelev)
10:19 AM Revision 014da912 (git): openssl: really fix test failure on Ubuntu 16.04
* test/openssl/test_ssl.rb (test_ctx_options): Fix test failure on
Ubuntu 16.04. The fix in r56147 was incomplete. This is a cherry-pick
of the commit b039f3e268c2 at ruby/openssl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
rhenium (Kazuki Yamaguchi)
09:22 AM Revision cf6ca2d8 (git): objspace_dump.c: dc is no longer used [ci skip]
* ext/objspace/objspace_dump.c (heap_i): remove no longer used
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Revision 151536d4 (git): * doc/extension.ja.rdoc: translate r56130 (rb_check_arity). [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
 

Also available in: Atom