Project

General

Profile

Activity

From 07/30/2017 to 08/05/2017

08/05/2017

07:54 PM Feature #13784: Add Enumerable#filter as an alias of Enumerable#select
I made a pull request: https://github.com/ruby/ruby/pull/1672. adp90 (Alexander Patrick)
03:18 AM Feature #13784: Add Enumerable#filter as an alias of Enumerable#select
+1. I don't always agree with new aliases but for this one. I actually wanted Enumerable#filter several times before. shyouhei (Shyouhei Urabe)
04:21 PM Bug #13537: ruby crash in rb_gc_mark
I see r59063 went into ruby_2_4 yesterday.
I've been running the Pry rspec suite repeatedly with
ruby 2.5.0dev (2017-08-05 trunk 59519) [x86_64-linux]
ruby 2.4.2p181 (2017-08-05 revision 59520) [x86_64-linux]
and I don't ...
djellemah (John Anderson)
10:50 AM Feature #13780: String#each_grapheme
shan (Shannon Skipper) wrote:
> shevegen (Robert A. Heiler) wrote:
> ...
Elixir's `grapheme` and Swift's `Character` refer Unicode® Standard Annex #29's "Grapheme Cluster".
http://unicode.org/reports/tr29/
The document says grapheme ...
naruse (Yui NARUSE)
07:00 AM Bug #13775: Ruby hangs when calling scope and belongs_to many times (with mongomapper)
ruby_2_4 r59520 merged revision(s) 59457. nagachika (Tomoyuki Chikanaga)
07:00 AM Revision 5013a509 (git): merge revision(s) 59457: [Backport #13775]
should not copy promoted flags.
* include/ruby/ruby.h (rb_clone_setup): should not copy some flags
(FL_PROMOTED0|FL_PROMOTED1|FL_FINALIZE).
[Bug #13775]
* test/ruby/test_object.rb: add a test (note t...
nagachika (Tomoyuki Chikanaga)
06:58 AM Bug #10856 (Closed): Splat with empty keyword args gives unexpected results
Applied in changeset trunk|r59519.
----------
splat keyword hash
* compile.c (compile_array_keyword_arg): set keyword splat flag if
explicitly splatted. [ruby-core:68124] [Bug #10856]
* vm_args.c (setup_parameters_complex): try key...
nobu (Nobuyoshi Nakada)
06:58 AM Misc #11131 (Closed): Unexpected splatting of empty kwargs
Applied in changeset trunk|r59519.
----------
splat keyword hash
* compile.c (compile_array_keyword_arg): set keyword splat flag if
explicitly splatted. [ruby-core:68124] [Bug #10856]
* vm_args.c (setup_parameters_complex): try key...
nobu (Nobuyoshi Nakada)
06:58 AM Bug #13717 (Closed): Calling lambda with keyword arguments inconsistent behavior
Applied in changeset trunk|r59519.
----------
splat keyword hash
* compile.c (compile_array_keyword_arg): set keyword splat flag if
explicitly splatted. [ruby-core:68124] [Bug #10856]
* vm_args.c (setup_parameters_complex): try key...
nobu (Nobuyoshi Nakada)
06:58 AM Revision 26aed9c5 (git): splat keyword hash
* compile.c (compile_array_keyword_arg): set keyword splat flag if
explicitly splatted. [ruby-core:68124] [Bug #10856]
* vm_args.c (setup_parameters_complex): try keyword hash splat if
given.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)
06:51 AM Revision d11dfab5 (git): vm_core.h: vm_call_flag_bits
* vm_core.h (vm_call_flag_bits): define VM_CALL flags by using
enum constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:46 AM Bug #13753: Segfault when calling `Random::DEFAULT.rand` in forked child
ruby_2_4 r59517 merged revision(s) 59368. nagachika (Tomoyuki Chikanaga)
06:46 AM Revision 23390a82 (git): merge revision(s) 59368: [Backport #13753]
random.c: ensure initialized
* random.c (get_rnd, try_get_rnd): ensure initialized to get rid
of crash in forked processes. [ruby-core:82100] [Bug #13753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4...
nagachika (Tomoyuki Chikanaga)
06:35 AM Bug #13772: Memory leak recycling stacks for threads in 2.4.1
ruby_2_4 r59516 merged revision(s) 59462,59474. nagachika (Tomoyuki Chikanaga)
06:35 AM Revision 01cfae3b (git): merge revision(s) 59462,59474: [Backport #13772]
release VM stack properly.
* cont.c: r55766 change the handling method of Fiber's VM stack.
Resumed Fiber points NULL as VM stack and running Thread has
responsibility to manage it (marking and releasing).
...
nagachika (Tomoyuki Chikanaga)
03:24 AM Bug #13669: Enumerable#uniq is ignoring second and following block arguments
ruby_2_4 r59515 merged revision(s) 59128. nagachika (Tomoyuki Chikanaga)
03:24 AM Revision 90645fd4 (git): merge revision(s) 59128: [Backport #13669]
Fix Enumerable#uniq with non single yield arguments
* enum.c (uniq_func, uniq_iter): need packed value as the unique
key. [ruby-core:81734] [Bug #13669] [Fix GH-1658]
Author: Kenichi Kamiya <kachick1@gmail...
nagachika (Tomoyuki Chikanaga)
02:43 AM Bug #13578: Another iseq_set_sequence: adjust bug
ruby_2_4 r59514 merged revision(s) 58810,58894. nagachika (Tomoyuki Chikanaga)
02:43 AM Revision 5cf36324 (git): merge revision(s) 58810,58894: [Backport #13578]
compile.c: fix catch-table labels optimization
* compile.c (remove_unreachable_chunk): do not eliminate chunks
followed by labels in catch-table entries.
compile.c: fix possible use of uninitialized value
...
nagachika (Tomoyuki Chikanaga)
02:22 AM Bug #13540: can't set length of shared string (RuntimeError) when interpolating __FILE__ in a heredoc
ruby_2_4 r59513 merged revision(s) 58561. nagachika (Tomoyuki Chikanaga)
02:22 AM Revision f177c73e (git): merge revision(s) 58561: [Backport #13540]
parse.y: make shared string modifiable
* parse.y (dedent_string): ensure that the string is modifiable,
not to set the length of shared string.
[ruby-core:80987] [Bug #13540]
git-svn-id: svn+ssh://ci.ruby-la...
nagachika (Tomoyuki Chikanaga)
01:56 AM Bug #13380: [PATCH] Remove unused Init_frozen_strings declaration
ruby_2_4 r59512 merged revision(s) 58205. nagachika (Tomoyuki Chikanaga)
01:56 AM Revision 11d5ad0b (git): merge revision(s) 58205: [Backport #13380]
Remove unused Init_frozen_strings declaration
Init_frozen_strings definition is removed in r51511.
https://bugs.ruby-lang.org/issues/11423
Patch by Kohei Suzuki <[email protected]>
* internal.h: Remove...
nagachika (Tomoyuki Chikanaga)
01:53 AM Bug #13539: uninitialized class variable @@accept_charset in #<Class:CGI> when calling CGI.unescape
ruby_2_4 r59511 merged revision(s) 57501,58576. nagachika (Tomoyuki Chikanaga)
01:53 AM Revision b2c7e974 (git): merge revision(s) 57501,58576: [Backport #13539]
escape.c: check argument
* ext/cgi/escape/escape.c (optimized_unescape): check
accept_charset encoding argument.
share `@@accept_charset`
* lib/cgi/{core,util}.rb: include CGI::Util not only extending,...
nagachika (Tomoyuki Chikanaga)
01:45 AM Bug #13528: Calling #denominator on a whole number floating point number causes segfault with mathn loaded.
ruby_2_4 r59510 merged revision(s) 58523. nagachika (Tomoyuki Chikanaga)
01:45 AM Revision 61277d47 (git): merge revision(s) 58523: [Backport #13528]
rational.c: canonicalization case
* rational.c (float_numerator, float_denominator): fix for
canonicalization case where `Float#to_r` could return an Integer
not a Rational. although mathn.rb has been remove...
nagachika (Tomoyuki Chikanaga)

08/04/2017

05:21 PM Bug #13781: Should the safe navigation operator invoke `nil?`
> is there an actual use case? I very much doubt there is one
This is what some filed issues appear to be - a mostly theoretical
view that does not appear to be likely to emerge.
When Hiroshi filed the request, I do not think tha...
shevegen (Robert A. Heiler)
04:59 AM Bug #13781: Should the safe navigation operator invoke `nil?`
Short answer is "no".
Longer answer is:
- is there an actual use case? I very much doubt there is one
- BasicObject does not respond to `nil?`, so the safe operator would not work in that case?
- other Ruby conditional (like `if fo...
marcandre (Marc-Andre Lafortune)
03:18 AM Bug #13781 (Closed): Should the safe navigation operator invoke `nil?`
In the following example:
~~~
class Later < BasicObject
def initialize(&block)
raise ::ArgumentError, "Block required" unless block

if block.arity > 0
raise ::ArgumentError, "Cannot store a promise that requires an ar...
ioquatix (Samuel Williams)
05:05 PM Revision 206596c8 (git): * 2017-08-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:05 PM Revision 60c253e2 (git): * man/ruby.1: Move paragraph which is related to -S, not -s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
04:20 PM Feature #13784 (Closed): Add Enumerable#filter as an alias of Enumerable#select
Ruby has a full set of functional tools in the Enumerable module under the "-ect" methods (viz. collect, select, inject). However the usual industry terms for these are map, filter, and reduce.
For example, Swift, Python, and ECMAScr...
davidarnold (David Arnold)
04:13 PM Bug #13755: Null pointer dereference in hash_table_index()
ruby_2_4 r59507 merged revision(s) 59374. nagachika (Tomoyuki Chikanaga)
04:13 PM Revision f7bd8a08 (git): merge revision(s) 59374: [Backport #13755]
compile.c: restore stack at return
* compile.c (iseq_compile_each0): restore the stack depth after
return to the previous depth, to fix the stack depth at
returning from rescue iseq. [ruby-core:82108] [Bug #...
nagachika (Tomoyuki Chikanaga)
03:55 PM Bug #13759: SEGV in StringScanner
ruby_2_4 r59506 merged revision(s) 59384. nagachika (Tomoyuki Chikanaga)
03:55 PM Revision 2badceae (git): merge revision(s) 59384: [Backport #13759]
strscan.c: fix segfault in aref
* ext/strscan/strscan.c (strscan_aref): fix segfault after
get_byte or getch which do not apply regexp.
[ruby-core:82116] [Bug #13759]
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nagachika (Tomoyuki Chikanaga)
03:29 PM Bug #13599: Float#ceil(n) doesn't work for small floats
ruby_2_4 r59505 merged revision(s) 58913. nagachika (Tomoyuki Chikanaga)
03:29 PM Revision 2072eccd (git): merge revision(s) 58913: [Backport #13599]
numeric.c: fix for small number
* numeric.c (flo_floor, flo_ceil): should not return zero for small
number. [ruby-core:81394] [Bug #13599]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59505 b2dd03c8-...
nagachika (Tomoyuki Chikanaga)
03:06 PM Bug #13605: GC bug calling `ObjectSpace.each_object`
ruby_2_4 r59503 merged revision(s) 59063. nagachika (Tomoyuki Chikanaga)
03:06 PM Revision 00992ff8 (git): * 2017-08-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 8343847b (git): merge revision(s) 59063: [Backport #13605]
* proc.c (get_local_variable_ptr): return found env ptr. Returned env
will be used by write barrier at `bind_local_variable_set()'.
[Bug #13605]
* test/ruby/test_proc.rb: add a test for this issue.
git-svn-...
nagachika (Tomoyuki Chikanaga)
02:57 PM Revision 41e1670a (git): use stable sort.
* lib/rubygems/resolver.rb (sort_dependencies): use stable sort.
TestGemRequestSetLockfile#test_to_s_gem_dependency_non_default
fails because this method return unstable results.
Note that Enumerable#sort_by is unstable.
I'm not...
ko1 (Koichi Sasada)
02:39 PM Bug #13411: Need to add OPTDIR to rpath earlier in configure
ruby_2_4 r59501 merged revision(s) 58287. nagachika (Tomoyuki Chikanaga)
02:39 PM Revision b7f7b0a2 (git): merge revision(s) 58287: [Backport #13411]
configure.in: rpath with OPTDIR
* configure.in: add rpath flags which is needed for OPTDIR as well
as -L options, when it is given. [ruby-dev:50065] [Bug #13411]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/r...
nagachika (Tomoyuki Chikanaga)
02:31 PM Bug #13391: wrong number of arguments error for Hash#map when lambda given
ruby_2_4 r59500 merged revision(s) 59357,59358. nagachika (Tomoyuki Chikanaga)
02:31 PM Revision 56847290 (git): merge revision(s) 59357,59358: [Backport #13391] [Backport #13404]
proc.c: rb_block_min_max_arity
* proc.c (rb_block_min_max_arity): new function to get arity range
from the current block.
vm_eval.c: rb_lambda_call
* enum.c (enum_collect): make the block arity same as...
nagachika (Tomoyuki Chikanaga)
01:57 PM Feature #13780 (Assigned): String#each_grapheme
Accepted.
I'll introduce this in Ruby 2.5.
naruse (Yui NARUSE)
12:10 PM Bug #13783 (Feedback): Memory allocation / GC does not free unused memory
Hmm, I don't know exactly why so this might not fork for you but at least on my machine, the situation seems fixed in latest trunk. Can you test?
```
zsh % rbenv shell 2.4.1
zsh % ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053)...
shyouhei (Shyouhei Urabe)
10:30 AM Bug #13783 (Closed): Memory allocation / GC does not free unused memory
100.times {x=[]; 1000000.times {|i| x.push [i,i*3]} }
100.times should use (more or less) the same memory as 3.times,
also GC.start after x=[] doesn't help!
Problem: system begins swapping if doing that many times (using large data a...
opti (Andreas Opti)
12:00 PM Revision 92c52f08 (git): Fix `NameError: uninitialized constant Net`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:59 AM Revision 01eb8d77 (git): Use `register_scanner` instead of `regist_scanner`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:59 AM Revision 3b1987fb (git): Add deprecated warning to ERB::Compiler::SimpleScanner2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:55 AM Bug #13782 (Closed): Backport r57733: kwrest arg name in --dump=parsetree
Please backport r57733.
kwrest arg name

* compile.c (iseq_set_arguments_keywords): make keyword rest
argument name nd_vid consistently, regardless of whether other
keyword arguments are present. [Fix GH-1...
nobu (Nobuyoshi Nakada)
04:39 AM Revision 2b770b46 (git): string.c: improve String#scan
* string.c (rb_str_rstrip_bang): improve the performance in 50%
for a string pattern, and in 10% for a regexp pattern. get rid
of making MatchData in middle, which is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5949...
nobu (Nobuyoshi Nakada)
04:25 AM Revision 8ba320a4 (git): * 2017-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:25 AM Revision c751bad5 (git): benchmarks for String#scan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

08/03/2017

09:11 PM Feature #13780: String#each_grapheme
shevegen (Robert A. Heiler) wrote:
> My only concern is about the name "grapheme".
> ...
I think the term is correct and it complements #codepoints and #each_codepoint. In Elixir for example:
~~~
"🇺🇸🇦🇫" |> String.codepoints #=> ["🇺...
shan (Shannon Skipper)
07:09 PM Feature #13780: String#each_grapheme
My only concern is about the name "grapheme".
I don't know how it is for others but ... this is the first time that I even heard the
term.
shevegen (Robert A. Heiler)
06:35 PM Feature #13780 (Closed): String#each_grapheme
Ruby's regex engine has support for graphemes via `\X`:
https://github.com/k-takata/Onigmo/blob/791140951eefcf17db4e762e789eb046ea8a114c/doc/RE#L117-L124
This is really useful when working with Unicode strings. However, code like `...
rbjl (Jan Lelis)
04:00 PM Bug #13682: return inside of ensure causes [BUG]
ruby_2_4 r59493 merged revision(s) 59183,59184. nagachika (Tomoyuki Chikanaga)
04:00 PM Revision 91b51140 (git): merge revision(s) 59183,59184: [Backport #13682]
fix return in toplevel rescue/ensure
* compile.c (iseq_compile_each0): throw TAG_RETURN at return in
toplevel rescue/ensure to adjust VM stack properly.
[ruby-core:81777] [Bug #13682]
* vm_insnhelper...
nagachika (Tomoyuki Chikanaga)
03:41 PM Bug #13690: next in once causes [BUG]
ruby_2_4 r59492 merged revision(s) 59202. nagachika (Tomoyuki Chikanaga)
03:41 PM Revision b17da781 (git): merge revision(s) 59202: [Backport #13690]
compile.c: disallow next in once
* compile.c (iseq_compile_each0): turned dregx context in "once"
into "guarded" type from "block" type, to disallow `next`,
`break`, `redo` as well as outside "once".
...
nagachika (Tomoyuki Chikanaga)
03:40 PM Bug #13680: break in once causes [BUG]
ruby_2_4 r59491 merged revision(s) 59181. nagachika (Tomoyuki Chikanaga)
03:40 PM Revision 47a35742 (git): merge revision(s) 59181: [Backport #13680]
vm_insnhelper.c: break in once
* vm_insnhelper.c (vm_throw_start): size of catch table has been
included in iseq_catch_table struct, which could be NULL, since
2.2. e.g., proc-closure in `once'.
[r...
nagachika (Tomoyuki Chikanaga)
02:00 PM Bug #13678: toplevel return causes [BUG]
ruby_2_4 r59490 merged revision(s) 59169. nagachika (Tomoyuki Chikanaga)
02:00 PM Revision 9b586688 (git): merge revision(s) 59169: [Backport #13678]
compile.c: toplevel return in argument
* compile.c (iseq_compile_each0): adjust the stack before return
in an evstr/argument (reported by Balazs <[email protected]>)
to fix stack consistency error. [ruby-co...
nagachika (Tomoyuki Chikanaga)
01:43 PM Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2
ruby_2_4 r59489 merged revision(s) 58742,59081. nagachika (Tomoyuki Chikanaga)
01:43 PM Revision b08e0ade (git): merge revision(s) 58742,59081: [Backport #11033]
Search SSL libraries by testing various filename patterns
* ext/openssl/extconf.rb (find_openssl_library): should search by more flexible
method, especially for LibreSSL on Windows.
openssl: import v2.0.4
...
nagachika (Tomoyuki Chikanaga)
01:29 PM Bug #13523: negative line numbers in instance_eval are misinterpreted in 32-bit ruby-trunk
ruby_2_4 r59488 merged revision(s) 58503. nagachika (Tomoyuki Chikanaga)
01:29 PM Revision 16acdaef (git): merge revision(s) 58503: [Backport #13523]
node.h: sign-extend
* node.h (nd_line): should sign-extend. shifting `VALUE` extends
with zero bits if `sizeof(VALUE)` equals to `sizeof(int)`. the
zero bits are truncated if `sizeof(VALUE)` is bigger enoug...
nagachika (Tomoyuki Chikanaga)
12:31 PM Revision 9135c8c3 (git): Use the same variable name as in dir.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:39 AM Revision 2e5f59f8 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:39 AM Revision dc7f2cd5 (git): Add initial test for lldb extension
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:11 AM Revision 4f8107a4 (git): disable rdoc for internal constants [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:09 AM Revision 1ebd2b37 (git): ruby.h: NULL as empty array
* include/ruby/ruby.h (rb_yield_values, rb_funcall): call with
NULL when no arguments, for clang which defines static array
when an empty array is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59483 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
07:08 AM Revision 2d3c3315 (git): extract IDs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:13 AM Revision 76857f8e (git): dir.c: reduce syscalls
* dir.c (glob_helper): utilize d_type even if no recursive
pattern, to reduce stat/lstat syscalls in subsequent
glob_helper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:41 AM Revision 2a5c20ac (git): fix typo in help [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:39 AM Revision 1ef613dd (git): dir.c: relative path Dir base
* dir.c (glob_helper): fix globbing based on a relative path Dir.
[Feature #13056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:31 AM Revision 6c676acf (git): Should show the entity of $PATH_SEPARATOR
* win32/configure.bat (--help): should show the entity of $PATH_SEPARATOR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:25 AM Revision 3bec82c7 (git): Mention about `--with-opt-dir`
* win32/configure.bat (--help): mention about `--with-opt-dir`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:14 AM Revision 83a31e9e (git): dir.c: relax base option
* dir.c (dir_glob_options): relax base option. ignore when nil
or an empty string as :base option. [Feature #13056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:53 AM Revision 432e6805 (git): spec_helper.rb: pass jobserver fds
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension):
pass jobserver fds explicitly, because other specs might have
set close_on_exec flags on these fds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59475 b2dd03c8-3...
nobu (Nobuyoshi Nakada)

08/02/2017

09:48 PM Revision 46085e91 (git): fix stack storing for root fibers.
* cont.c (root_fiber_alloc): this function is called by fiber_current()
and fiber_store(). fiber_current() should clear VM stack information
in a fiber data because runnning thread knows stack information and has
responsibility to ...
ko1 (Koichi Sasada)
09:44 PM Bug #13779 (Third Party's Issue): Rails Console Crashing 2 Days in a Row
nobu (Nobuyoshi Nakada)
04:30 PM Bug #13779 (Third Party's Issue): Rails Console Crashing 2 Days in a Row
```
testlabserverold:plus_achieve admin$ rails c
Running via Spring preloader in process 21136
/Users/admin/.rvm/gems/ruby-2.4.1@global/gems/activerecord-5.1.2/lib/active_record/connection_adapters/sqlite3_adapter.rb:30: [BUG] Segment...
darkknightsds (shane stafford)
05:51 PM Feature #13570 (Closed): Using mkmf for ruby/spec C API specs
Eregon (Benoit Daloze)
03:10 PM Revision a2078e7c (git): Fix URI::FTP.build code example typo
ref https://github.com/rurema/doctree/pull/462
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:10 PM Revision c8247a6b (git): Fix variable name in example of net/pop
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:10 PM Revision b93aea84 (git): Fix net/pop code example syntax error
ref https://github.com/rurema/doctree/pull/455
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:10 PM Revision 58cef450 (git): * 2017-08-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision 42fbe19f (git): Fix cgi/core code example missing comma
ref https://github.com/rurema/doctree/pull/448
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
05:27 AM Revision bc5d11bc (git): Port more commands from .gdbinit to lldb
* misc/lldb_cury.py (dump_node, SDR, rb_count_objects): added
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:02 AM Revision 82389879 (git): suppress warnings when RUBY_USE_SETJMPEX
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:40 AM Revision 5ba4d948 (git): eval.c: suppress warnings
* eval.c (exc_setup_message): setup exception message as an
exception instance, and a cause from a previous exception.
split from setup_exception to suppress a warning when
RUBY_USE_SETJMPEX is enabled.
* eval.c (setup_exception):...
nobu (Nobuyoshi Nakada)
02:20 AM Revision 71d16ad5 (git): ipaddr is now a default gem with an upstream at: https://github.com/ruby/ipaddr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
02:19 AM Revision 8397de00 (git): Partly reverted email notification on travis configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:14 AM Bug #13778 (Feedback): net/http.rb:879 TCPSocket.open fail
2.2.4 is out of date.
Could you try more recent versions?
nobu (Nobuyoshi Nakada)
02:11 AM Bug #13537: ruby crash in rb_gc_mark
could you with check recent trunk (2.5dev)? I'm not sure recent 2.4 has backport patch (r59063).
ko1 (Koichi Sasada)
12:54 AM Revision a2fcfba5 (git): eval.c: fix state type
* eval.c (setup_exception): state is a raised thread flag, not for
EXEC_TAG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:50 AM Bug #13772 (Closed): Memory leak recycling stacks for threads in 2.4.1
Applied in changeset trunk|r59462.
----------
release VM stack properly.
* cont.c: r55766 change the handling method of Fiber's VM stack.
Resumed Fiber points NULL as VM stack and running Thread has
responsibility to manage it (mar...
ko1 (Koichi Sasada)
12:50 AM Revision 92f7813a (git): release VM stack properly.
* cont.c: r55766 change the handling method of Fiber's VM stack.
Resumed Fiber points NULL as VM stack and running Thread has
responsibility to manage it (marking and releasing).
However, thread_start_func_2()@thread.c and thread_...
ko1 (Koichi Sasada)
12:20 AM Revision b7f205d5 (git): * 2017-08-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:20 AM Revision 3ba550c1 (git): Remove "make update-rubyspec"
because it is no-op for compatibility
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)

08/01/2017

10:30 PM Bug #13778 (Closed): net/http.rb:879 TCPSocket.open fail
I had a error on use evil-proxy in ruby 2.2.4, please see attached. fitmap (Justin Peal)
12:14 PM Misc #13704 (Assigned): [PATCH] Exclude Changelog files from documentation.
I'm not sure that html page of Changelog is not valuable.
Example, permalink of changelog: https://docs.ruby-lang.org/en/2.4.0/ChangeLog-2_4_0.html#label-2016-11-07
I'm going to discuss this issue at next Developer Meeting.
hsbt (Hiroshi SHIBATA)
11:59 AM Revision ae6625c5 (git): assertions.rb: AllFailures#message encoding
* test/lib/test/unit/assertions.rb (AllFailures#message): put
indented messages back to the original encoding, to get rid of
Encoding::CompatibilityError when key has non-ASCII characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)
08:32 AM Revision 4eafec5e (git): parse.y: simplify parse_ident
* parse.y (parse_ident): simplified selecting identifier types by
the suffix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:15 AM Bug #13537: ruby crash in rb_gc_mark
I get the same error running the Pry rspec suite.
~~~
[BUG] rb_gc_mark(): 0x000000036d2bc8 is T_NONE
~~~
The value 0x000000036d2bc8 varies.
Using ruby 2.4.2p161 (2017-07-23 revision 59409) [x86_64-linux]
When I change RGENG...
djellemah (John Anderson)
05:08 AM Bug #13772: Memory leak recycling stacks for threads in 2.4.1
I'm going to set Backport field based on the report at https://bugs.ruby-lang.org/issues/13772#note-1
nagachika (Tomoyuki Chikanaga)
02:10 AM Bug #13775 (Closed): Ruby hangs when calling scope and belongs_to many times (with mongomapper)
Applied in changeset trunk|r59457.
----------
should not copy promoted flags.
* include/ruby/ruby.h (rb_clone_setup): should not copy some flags
(FL_PROMOTED0|FL_PROMOTED1|FL_FINALIZE).
[Bug #13775]
* test/ruby/test_object.rb: add...
ko1 (Koichi Sasada)
01:07 AM Bug #13775: Ruby hangs when calling scope and belongs_to many times (with mongomapper)
mtsmfm (Fumiaki Matsushima) wrote:
> Oops!
> ...
Thank you. reproduced.
I guess this is a GC issue.
Here is a reproducible code with cflags="-DRGENGC_CHECK_MODE=2" build.
this code works fine (= no [BUG]) without RGENGC_CHECK_MODE...
wanabe (_ wanabe)
02:10 AM Revision fb29a4dc (git): should not copy promoted flags.
* include/ruby/ruby.h (rb_clone_setup): should not copy some flags
(FL_PROMOTED0|FL_PROMOTED1|FL_FINALIZE).
[Bug #13775]
* test/ruby/test_object.rb: add a test (note that this test will fail
only when RGENGC_CHECK_MODE >= 2).
gi...
ko1 (Koichi Sasada)
12:19 AM Revision 66cc7e04 (git): * 2017-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:19 AM Revision 53b88cc6 (git): Use `&.` instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

07/31/2017

11:59 PM Bug #13772 (Assigned): Memory leak recycling stacks for threads in 2.4.1
hsbt (Hiroshi SHIBATA)
02:28 PM Bug #13772: Memory leak recycling stacks for threads in 2.4.1
On Friday I downgraded one of our clusters, this is how it looks.
![](https://pbs.twimg.com/media/DGEfFuaWAAALSvI.jpg:large)
sam.saffron (Sam Saffron)
02:22 PM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
there's a good article about this
https://research.swtch.com/glob
https://perl5.git.perl.org/perl.git/commitdiff/33252c318625f3c6c89b816ee88481940e3e6f95?hp=57ab6c610267dba697199c8256f4258af7d391c1
take a look at the python's implem...
ahorek (Pavel Rosický)
11:18 AM Feature #13770: Can't create valid Cyrillic-named class/module
I'm uncertain about the usage of `mbc_case_fold`.
```diff
diff --git i/parse.y w/parse.y
index 02d9412a2c..96f25d893e 100644
--- i/parse.y
+++ w/parse.y
@@ -7790,6 +7790,8 @@ parse_atmark(struct parser_params *parser, const enum ...
nobu (Nobuyoshi Nakada)
09:21 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
Just to add, Puma has a HTTP parser (and perhaps other bits) written in C, while Falcon is pure Ruby, yet Falcon has better/similar performance in my (hopefully unbiased) tests. Additionally, Falcon had significantly lower latency, and t... ioquatix (Samuel Williams)
09:19 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
I am following this thread and I find it really fascinating.
Thanks everyone for thinking about these issues and Eric for your insightful work and ideas. Just as an aside, I feel like something is being lost in translation w.r.t. the ...
ioquatix (Samuel Williams)
05:55 AM Bug #13775: Ruby hangs when calling scope and belongs_to many times (with mongomapper)
wanabe (_ wanabe) wrote:
> I couldn't reproduce because of lack of docker-compose.yml (and maybe Dockerfile).
> ...
Oops!
Sorry, I committed and pushed!
mtsmfm (Fumiaki Matsushima)
01:04 AM Bug #13775: Ruby hangs when calling scope and belongs_to many times (with mongomapper)
I couldn't reproduce because of lack of docker-compose.yml (and maybe Dockerfile).
```
$ docker-compose run ruby-2-4-1
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in ...
wanabe (_ wanabe)
04:04 AM Revision bf87195e (git): configure.in: use libtool
* configure.in: use libtool on macOS to suppress a warning against
debug_counter.o, which has no symbols unless USE_DEBUG_COUNTER
is set to non-zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59454 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
03:35 AM Revision 2fa38c59 (git): * 2017-07-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:35 AM Revision d9d2bbe4 (git): Improve error message
ref [Bug #13761]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)

07/30/2017

02:59 PM Revision 84d83482 (git): UNALIGNED_MEMBER_ACCESS only for clang
* eval_intern.h (UNALIGNED_MEMBER_ACCESS): enable only on clang.
gcc does not complain about pointers to member of unaligned
struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:48 PM Revision 2b582b7c (git): UNALIGNED_MEMBER_ACCESS
* eval_intern.h (UNALIGNED_MEMBER_ACCESS): suppress
address-of-packed-member warnings by clang 4.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:36 PM Feature #13777: Array#delete_all
I myself usually use .reject! and .select! and then apply the reverse prior to that
if I need to keep these entries as well (or respectively without the '!').
My approach also needs more lines.
If I understood it correctly so then...
shevegen (Robert A. Heiler)
07:12 AM Feature #13777 (Rejected): Array#delete_all
I want Array#delete_if which returns array of deleted values.
For following code,
~~~
array = ["a", "aa", "ab", "bb", "c"]
result = {}
until array.empty?
key = array.first
group, array = array.partition { |v| v.start_with?...
k0kubun (Takashi Kokubun)
02:56 AM Revision f9d5843f (git): hash.c: refactor env_enc_str_new
* hash.c (env_enc_str_new): convert to the expected encoding
without intermediate string, and set econv flags if default
internal encoding is set too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59449 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
02:56 AM Revision 8458e709 (git): string.c: rb_str_initialize
* string.c (rb_str_initialize): new function to (re)initialize a
string with data and encoding. extracted from
rb_external_str_new_with_enc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:40 AM Revision c3c215e2 (git): * 2017-07-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:40 AM Revision 44544c03 (git): compile.c: replace adjuststack
* compile.c (iseq_set_sequence): replace adjuststack with pop, or
remove if possible instead of two nops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom