Project

General

Profile

Activity

From 09/26/2018 to 10/02/2018

10/02/2018

08:29 PM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
This has been requested a lot :-)
I still feel like it would be very practical, introduces no incompatibility, and is also very intuitive (at least to me). I feel that no Rubyist would have trouble learning what `def initialize(@somet...
marcandre (Marc-Andre Lafortune)
08:13 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
I personally tend to use (slower) setter-methods rather than initialization within `initialize()`
itself. Normally only for somewhat larger classes though; for small classes that do not do much,
I often don't bother writing setter meth...
shevegen (Robert A. Heiler)
06:42 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
This isn't Matz's but my experience. When "we want to do something more than just assigning instance variables", that "something" tends to include cancellation of creating new object -- maybe because we are returning a cached instance, ... shyouhei (Shyouhei Urabe)
06:18 AM Feature #15192: Introduce a new "shortcut assigning" syntax to convenient setup instance variables
Matz thinks this is handy only when you write `#initialize`, which only is not worth adding a new syntax for methods in general. Do you have any situations other than `#initialize` where this is useful? shyouhei (Shyouhei Urabe)
04:54 AM Feature #15192 (Assigned): Introduce a new "shortcut assigning" syntax to convenient setup instance variables
Motivation:
Introduce a new syntax for convenient setup instance variables for objects.
The problem:
Currently, setup instance variables in Ruby is too verbose.
Basically, we need to write the meaningless assigning code again ...
jjyr (Jinyang Jiang)
07:14 PM Revision 3cfe3051 (git): lldb_rp: reload debug info if not loaded yet [ci skip]
As debug infos in shared libraries are not accessible until loaded,
retry loading the infos when needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:52 PM Bug #15190: Null pointer dereference in process_options -- OOB read (size of 8 bytes)
2.5 also segfaults.
2.4 and earlier don't segfault, but fail with exit code 1.
As just a shebang code is also valid code, this should be backported to those versions.
nobu (Nobuyoshi Nakada)
06:51 PM Bug #15190 (Closed): Null pointer dereference in process_options -- OOB read (size of 8 bytes)
Applied in changeset trunk|r64900.
----------
Just a shebang is valid code
[ruby-core:89240] [Bug #15190]
nobu (Nobuyoshi Nakada)
06:51 PM Revision 4e133fdb (git): Just a shebang is valid code
[ruby-core:89240] [Bug #15190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:03 PM Revision e1966b31 (git): Get rid of calling to_f in rat2dbl_without_to_f
[Bug #15189]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:55 PM Bug #15189: Multiple OOB reads (of size 4) in rb_bigzero_p
I'm not sure what caused the difference, and `call_cfunc_1` does not appear in both code on my machine.
That function should be simple enough to be eliminated by tail-call optimization.
nobu (Nobuyoshi Nakada)
04:42 PM Bug #15189 (Closed): Multiple OOB reads (of size 4) in rb_bigzero_p
Applied in changeset trunk|r64897.
----------
Fix Rational of Float
[ruby-core:89239] [Bug #15189]
nobu (Nobuyoshi Nakada)
02:25 PM Bug #15189: Multiple OOB reads (of size 4) in rb_bigzero_p
nobu (Nobuyoshi Nakada) wrote:
> Thank you for the report.
> ...
Thank you for the info about `\0`, I'll keep an eye out for that.
The reproducers were deduplicated based on a hash of their crash backtrace, using `afl-collect` from ...
bannable (Joe Truba)
12:26 PM Bug #15189: Multiple OOB reads (of size 4) in rb_bigzero_p
Thank you for the report.
Your reproducers seem often duplicated, and note that `\0` is treated as the EOF in the parser and anything after it has no effect at all.
Reduced (but not smallest) code are:
```
crash01/reproducer:111r...
nobu (Nobuyoshi Nakada)
04:42 PM Revision 80359687 (git): * 2018-10-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:42 PM Revision 603f95a0 (git): Fix Rational of Float
[ruby-core:89239] [Bug #15189]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:23 PM Feature #15181: Azure pipelines vc builds? help needed
@naruse
I've got vc12, vc14, and mingw all building and passing btest and test-basic.
Given that the current Appveyor build takes approx 90 minutes, and an Azure pipelines build could cut that down to approx 35 to 40 minutes, I tho...
MSP-Greg (Greg L)
07:28 AM Feature #14839: How to deal with capitalizing Georgian in Unicode 11.0.0
Changed from Misc to Feature. The Feature would be to add some option(s) to relevant methods such as `String#upcase`. The baseline (Feature rejected) is that there is no need for options.
`String#downcase` is unproblematic. `String#sw...
duerst (Martin Dürst)
07:13 AM Misc #15129: DevelopersMeeting20181010Japan
* [Feature #14839] How to deal with capitalizing Georgian in Unicode 11.0.0
I need feedback on this to be able to implement in in time for the Ruby 2.6 release.
duerst (Martin Dürst)
01:56 AM Revision 25ea4dc6 (git): * 2018-10-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:56 AM Revision 92b469e7 (git): Install HTML docs if produced
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

10/01/2018

09:36 PM Bug #15191: Segfault in bignum.c bigtrunc()
And a second, slightly different, reproducer:
~~~
5555i**-515*45E555i**-511581115i**515*45E555i**-511555i**-51E555i**-511581115i**-515*45E55 == 5**-511551158111111
~~~
bannable (Joe Truba)
09:31 PM Bug #15191 (Closed): Segfault in bignum.c bigtrunc()
Reproducer:
~~~
jtruba@sf201:~/crashes/ruby/crash09$ cat reproducer
?% "a"*1*1**111%11**-11911**111
jtruba@sf201:~/crashes/ruby/crash09$
~~~
Crash and valgrind report:
~~~
jtruba@sf201:~/crashes/ruby$ valgrind ~/rubies/ruby-tru...
bannable (Joe Truba)
09:13 PM Bug #15190 (Closed): Null pointer dereference in process_options -- OOB read (size of 8 bytes)
When passed "#!" with no newline as a script, rb_parser_compile_string and load_file can return null, causing process_options to later perform a null pointer dereference.
This happens in 2.5 and trunk, but not 2.3 or 2.4.
Reproduce...
bannable (Joe Truba)
08:21 PM Bug #15189 (Closed): Multiple OOB reads (of size 4) in rb_bigzero_p
An AFL fuzzing session against 6b4d78fc43 this weekend and turned up 17 crashes in rb_bigzero_p.
I suspect that all of these are the same underlying bug -- they are all a 4 byte OOB read in rb_bigzero_p -- so I'm including all of them...
bannable (Joe Truba)
08:05 PM Misc #15186: `SecureRandom.random_number` is not documented
nobu (Nobuyoshi Nakada) wrote:
> It is a method of `Random::Formatter`, not of `SecureRandom`.
> ...
Oh... Nobuyoshi, thank you for pointing out! I missed it completely :(.
artur86 (Artur *)
12:44 PM Misc #15186 (Closed): `SecureRandom.random_number` is not documented
It is a method of `Random::Formatter`, not of `SecureRandom`.
https://ruby-doc.org/core-2.6.0.preview2/Random/Formatter.html#method-i-random_number
nobu (Nobuyoshi Nakada)
11:17 AM Misc #15186 (Closed): `SecureRandom.random_number` is not documented
I wonder if there is any reason why `SecureRandom.random_number` is not documented.
https://ruby-doc.org/stdlib-2.4.4/libdoc/securerandom/rdoc/SecureRandom.html
artur86 (Artur *)
07:01 PM Feature #14143: Thread.report_on_exception should be true by default
headius (Charles Nutter) wrote:
> I am really liking the flow of
> ...
Has these been any more discussion/movement around such a feature? my google-fu is failing me, and this is something that would be very useful so that I can push th...
stefan.sedich (Stefan Sedich)
06:36 PM Bug #15188 (Closed): Incorrect warning "assigned but unused variable" when using ripper with $VERBOSE = true
The following code:
require 'ripper'

class Parser < Ripper
def warn(fmt, *args)
puts "#{filename}:#{lineno} - #{fmt % args}"
end
end

if __FILE__ == $0 then
$VERBOSE = true
...
cout (Paul Brannan)
02:59 PM Feature #15151: String#slice!(0,..) creates a duplicate of original string
@nobu can you look into this? Thank you. chopraanmol1 (Anmol Chopra)
02:48 PM Revision 6b4d78fc (git): lldb_cruby.py: T_DATA support [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:45 PM Bug #15187 (Closed): IPv6 x-forwarded-host results in "bad URI" error
A request that normally works with IPv4 is failing for IPv6. The webrick server is running behind Apache2, which is setting the x-forwarded-* headers.
```
$ curl -k https://[fd20:8b1e:b255:8154:250:56ff:fea8:4d84]/something
<!DOCTYP...
kwinters (Ken Winters)
01:33 PM Bug #15179: Segfault caused by only 'loop{ x<<[] }'
## 補足
overcommitを無効とした場合でも,ubuntu 18.04LTSの場合でのみsegfaultが発生する事象はまだ残りました.ただし,ここで示したコードだけで再現できる事象ではなく,適当な検証コードを用意は出来ていません.大量のオブジェクトを割り当てた場合である点は同じですが,異なる原因であるかもしれません.
OS側に原因を求めるべきであるようにも思いますが,記録のため書き残しておきます.
aki.k (亜樹 小林)
04:09 AM Bug #15179: Segfault caused by only 'loop{ x<<[] }'
ありがとうございます.
~~~
$ cat /proc/sys/vm/overcommit_memory
0
$ sudo sh -c "echo 2 > /proc/sys/vm/overcommit_memory"
$ cat /proc/sys/vm/overcommit_memory
2
$ ruby -e 'x=[]; loop { x<<[] }'
[FATAL] failed to allocate memory
~~~
ご指...
aki.k (亜樹 小林)
03:32 AM Bug #15179 (Feedback): Segfault caused by only 'loop{ x<<[] }'
Linuxのオーバーコミットが怪しいと思うんですが、`vm.overcommit_memory` を無効に設定しても同じ現象が発生しますか? yugui (Yuki Sonoda)
12:02 PM Bug #14897: Unexpected behavior of `if` in specific code
ruby_2_5 r64893 merged revision(s) 63868,63870. nagachika (Tomoyuki Chikanaga)
12:02 PM Revision 06289734 (git): merge revision(s) 63868,63870: [Backport #14897]
Fix a bug of peephole optimization
```
if L1
L0:
jump L2
L1:
...
L2:
```
was wrongly optimized to:
```
unless L2
L0:
L1:...
nagachika (Tomoyuki Chikanaga)
08:53 AM Feature #14839: How to deal with capitalizing Georgian in Unicode 11.0.0
Some notes summarizing some discussions on Unicode-related lists and my current conclusions from these discussions:
- One problem is that fonts supporting MTAVRULI (using upper case to make it easier for everybody) are not yet availab...
duerst (Martin Dürst)
07:50 AM Revision b74f7fc3 (git): Removed Windows version condition
Seems all MSVC runtimes fails with EINVAL, regardless Windows version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:22 AM Revision 574d844a (git): * 2018-10-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:22 AM Revision f0eecb15 (git): remove old VM profile counters.
* vm_insnhelper.c: remove `vm_profile_counter` because
it is replaced with debug_counters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:16 AM Bug #15137: Can't run brew cleanup
I guess this is a same issue as https://github.com/Homebrew/brew/issues/4923 = https://github.com/Homebrew/brew/issues/4943 = https://github.com/Homebrew/brew/pull/4949. wanabe (_ wanabe)
03:05 AM Feature #14802: Update Unicode data to Unicode Version 11.0.0
naruse (Yui NARUSE) wrote:
> Just a note, the definition of extended grapheme cluster is changed in Unicode 11
This is mentioned at http://www.unicode.org/versions/Unicode11.0.0/, so I was (vaguely) aware of it, but thanks for the re...
duerst (Martin Dürst)
02:23 AM Feature #15182 (Closed): Update extended grapheme cluster implementation for Unicode 11
Reported by naruse (Yui NARUSE) at https://bugs.ruby-lang.org/issues/14802#change-74213:
The definition of extended grapheme cluster is changed in Unicode 11 (Unicode® Standard Annex #29
UNICODE TEXT SEGMENTATION revision 33: https:/...
duerst (Martin Dürst)

09/30/2018

08:04 PM Feature #14097: Add union and difference to Array
@nobu this is not closed yet as https://github.com/ruby/ruby/pull/1758 is not merged yet. I have just rebased. ;) ana06 (Ana Maria Martinez Gomez)
07:03 PM Feature #15181 (Closed): Azure pipelines vc builds? help needed
Wasn't long ago that all the Appveyor CI did was a vc120 job. Now, with three jobs, it can get quite backed up. Also, Appveyor seems to be inconsistent, as the test times can vary quite a bit, along with intermittent failure issues.
...
MSP-Greg (Greg L)
04:53 PM Bug #15180 (Third Party's Issue): Segmentation fault at 0x00000001097ffffe
I have an alias called brewitup in my .zshrc that runs
~~~
brew update; brew upgrade; brew prune; brew cleanup; brew doctor
~~~
When I ran this it got hung up and gave me the error:
~~~
/usr/local/Homebrew/Library/Homebrew/cache...
hdaugherty (Holden Daugherty)
04:12 PM Bug #15130: Nested Timeouts hang on cygwin
@duerst
I thought that Cygwin & MSYS2/MinGW share some code (or may have some time ago). When running the code above, output as below:
```
ruby 2.6.0dev (2018-09-30 trunk 64889) [x64-mingw32]
Before sleeping
After sleeping, bef...
MSP-Greg (Greg L)
09:19 AM Bug #15130: Nested Timeouts hang on cygwin
duerst (Martin Dürst) wrote:
> This then also 'hangs', with CPU usage 0.0%. My understanding would be that this means that `strace` doesn't have much to show because there's nothing going on on the Ruby side.
Attached is the rest o...
duerst (Martin Dürst)
09:08 AM Bug #15130: Nested Timeouts hang on cygwin
normalperson (Eric Wong) wrote:
Eric, many thanks for your answers, and sorry to be late with my replies.
> If you don't hit Ctrl-C, what is the CPU usage of that script?
> ...
Using the Windows Task Manager, it's 0.0%.
> Als...
duerst (Martin Dürst)
12:16 PM Feature #11815: Proposal for method `Array#difference`
And analogously an method 'Array#intersection' would be valuable. Implementation could share most code. febeling (Florian Ebeling)
09:22 AM Bug #15179 (Closed): Segfault caused by only 'loop{ x<<[] }'
Segmentation fault is caused after many objects allocation instead of '強制終了'.
About 30sec and 16-26GB memory used.
## 環境
OS: Ubuntu 18.04LTS ja (日本語Remix) on VMware ESXi 6.7
RAM: 32GB
`apt install ruby-dev`
`user@ruby:~$ ruby...
aki.k (亜樹 小林)
02:22 AM Revision f886d716 (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:22 AM Revision d7ea94fb (git): mjit_compile.c: improve assertion message
intentionally inserting tab to this line to test svn bot.
Also expanding the all tabs in this file, since this file does not exist
in old versions and so there's no risk of conflict on backport.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
k0kubun (Takashi Kokubun)

09/29/2018

05:49 PM Revision ef69efef (git): no-op if it is T_STRING
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:49 PM Revision 47a02bff (git): * 2018-09-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:49 PM Revision 19e6af9f (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:49 PM Revision 7bcc535a (git): Remove unnecessary use of function pointer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:54 PM Bug #14807: 2.6.0-preview2 segfaults on OpenBSD due to missing pthread_condattr_init call
Hi,
Wheather `PTHREAD_COND_INITIALIZER` is work on OpenBSD or not, it should be used for initialize `pthread_cond_t` variable and
it should not be used for initialize `pthread_condattr_t` variable since they are diffrernet type and i...
taca (Takahiro Kambe)
03:43 PM Bug #15178 (Closed): Wrong paramaters passing to pthread_setname_np(3)
Ruby 2.6.0-preview2の動作を調べている途中で見つけました。
[Bug #9586]の修正r45713で、NetBSDの場合のpthread_setname_np(3)の引数を修正しています。
ここは第2引数と第3引数を入れ替えるのではなく、単に二重引用符を適切にquoteするだけとすべき
だったのではないでしょうか。
また、実際にthread_pthread.cで`SET_CURRENT_THREAD_NAME`を介してpthread_...
taca (Takahiro Kambe)
02:14 PM Feature #11815: Proposal for method `Array#difference`
I could use this method for fixing this bug [1] in ActiveRecord.
To me it looks like a valuable addition.
It's about replacing collection associations which can be partially persisted, with persisted records being handled differen...
febeling (Florian Ebeling)
11:12 AM Bug #15177 (Closed): 起動した後にTZを変更するとTime#utcがずれることがある
起動時に `TZ` を `right/Asia/Tokyo` にしていると `Time#utc` でローカルタイムと同じ時分秒になりますが、 `TZ=Asia/Tokyo` で起動してから `ENV['TZ']='right/Asia/Tokyo'` で変更すると `Time#utc` の結果がうるう秒のぶんだけずれます。
```
$ TZ=Asia/Tokyo ruby -ve "ENV['TZ']='right/Asia/Tokyo';t=Time.at(2...
znz (Kazuhiro NISHIYAMA)
07:21 AM Revision fe0818c4 (git): common.mk: upgrade benchmark_driver
since maybe r64870 implicitly depends on
https://github.com/benchmark-driver/benchmark-driver/pull/47 too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
07:04 AM Revision a0ff2a6a (git): Expand gemspec path to the real path
`make install` has loaded forwardable.rb twice, from
forwardable.gemspec and prime.gemspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Bug #15162 (Closed): Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
Applied in changeset trunk|r64879.
----------
transcode.c: add GC guard on raise
* transcode.c (econv_s_search_convpath): add GC guard to fix SEGV
on raise.
[Bug #15162] [ruby-core:89172]
Anonymous
06:46 AM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
Thank you for test.
This issue seems to be related to #12411 fix.
h.shirosaki (Hiroshi Shirosaki)
06:47 AM Revision b8c23ce3 (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:47 AM Revision 29b2ea6b (git): Revert search_convpath spec
Remove .name since SEGV on MinGW is fixed.
[ruby-core:89200]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
06:47 AM Revision b965781e (git): transcode.c: add GC guard on raise
* transcode.c (econv_s_search_convpath): add GC guard to fix SEGV
on raise.
[Bug #15162] [ruby-core:89172]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
12:45 AM Bug #15175 (Closed): Segfault (Invalid read of size 4) in rb_bigzero_p
Applied in changeset trunk|r64877.
----------
rational.c: may be float
* rational.c (f_muldiv): Integer#** can return Rational with Float
right now. [ruby-core:89212] [Bug #15175]
nobu (Nobuyoshi Nakada)
12:45 AM Revision 4add701a (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:45 AM Revision 36c4713e (git): rational.c: may be float
* rational.c (f_muldiv): Integer#** can return Rational with Float
right now. [ruby-core:89212] [Bug #15175]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 AM Revision c655db52 (git): * 2018-09-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:43 AM Revision 85aee954 (git): Split assertion expressions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

09/28/2018

10:56 PM Bug #15175 (Closed): Segfault (Invalid read of size 4) in rb_bigzero_p
My build is built with jemalloc, but the crash also happens without.
Note: this error only happens when ruby is run with --disable=gems. I'm unsure why.
Reproducer:
~~~
jtruba@sf201:~/rubies/ruby-trunk-clean$ cat poc
V = 1118111...
bannable (Joe Truba)
10:45 PM Bug #15174 (Rejected): Sorting array of elements using "&:size" block, in which more than 1 element
An expected behavior. nobu (Nobuyoshi Nakada)
10:25 PM Bug #15174: Sorting array of elements using "&:size" block, in which more than 1 element
You want `sort_by`, not `sort`:
~~~ ruby
[1..2, 4..5].sort_by(&:size)
# => [1..2, 4..5]
~~~
The difference in behavior between `{ |x| x.size }` and `(&:size)` is due to how ruby handles `Symbol#to_proc` when multiple arguments a...
jeremyevans0 (Jeremy Evans)
09:30 PM Bug #15174 (Rejected): Sorting array of elements using "&:size" block, in which more than 1 element
Example with ranges(first with what defined bug), but also tested on strings, symbols, integers
Good
~~~ ruby
[1..2].sort { |x| x.size }
[1..2, 4..5].sort { |x| x.size }
[1..2].sort(&:size)
~~~
Bad
~~~ ruby
[1..2, 4..5].sort...
Mr_Cartoon (Mr Cartoon)
06:04 PM Misc #15129: DevelopersMeeting20181010Japan
* [Feature #15144] `Enumerator#chain` zverok (Victor Shepelev)
12:50 PM Bug #15173: Segmentation fault
When I replace this:
~~~ ruby
16 return [] unless s3.file_exists?(date, region_dirname)
17 CSV.parse(s3.contents(date, region_dirname)).drop(1).map do |value|
18 with_date = value.push(date.to_s)
...
dmartindelorme (Dorian Martin)
08:05 AM Bug #15173 (Closed): Segmentation fault
Here is the code I'm trying to run:
~~~ ruby
6 def self.sync(db, s3, from, to)
7 db.create_table(SQL::Schema.table(TABLE_NAME))
8 from = Date.parse(from)
9 to = Date.parse(to)
10 keys = SQL::Sch...
dmartindelorme (Dorian Martin)
09:23 AM Revision a9375ab3 (git): Adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:16 AM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
MSP-Greg (Greg L) wrote:
> Benoit - I can't seem to ping you using either @eregon or @Eregon
Odd, not sure why it doesn't work.
Eregon (Benoit Daloze)
12:43 AM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
@hsbt & @h.shirosaki
I apologize for that mistake. I hope to not make it again.
We have a saying something like 'foot in mouth' referring to speech. I'm not sure what the equivalent is for written... Thanks, Greg
MSP-Greg (Greg L)
12:24 AM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
@MSP-Greg
You mistake to mention about `@shirosaki`, not `@hsbt`.
hsbt (Hiroshi SHIBATA)
06:25 AM Revision 41aa841a (git): Add Range#% to call-seq [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:28 AM Revision f251ce9f (git): don't use GC::Profiler on default.
* benchmark/gc/gcbench.rb: disable GC::Profiler on default.
add -p option instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:35 AM Revision aa1023ed (git): add debug counters more.
* debug_counter.h: add debug counters to count frame state transitions:
* frame_R2R: Ruby frame to Ruby frame
* frame_R2C: Ruby frame to C frame
* frame_C2C: C frame to C frame
* frame_C2R: C frame to Ruby frame
* vm_insnhelper....
ko1 (Koichi Sasada)
03:32 AM Revision cebd2c4a (git): add small utility for benchmarking.
* benchmark/lib/load.rb: add small utility which requires
benchmark-driver.rb. You can load this file and can
use benchmark-driver.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:42 AM Feature #13618: [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
shannonskipper@gmail.com wrote:
> Thread::Light seems nice. Or how about Thread::Feather? A
> thread as lights as a feather.

Sorry, but no to "Feather". Again, I don't want to introduce new
usage of words.

"Light" is common us...
normalperson (Eric Wong)
02:19 AM Feature #14697 (Closed): Introducing Range#% as an alias to Range#step
Applied in changeset trunk|r64869.
----------
range.c: Add Range#%
[Feature #14697] [ruby-core:86588]
mrkn (Kenta Murata)
02:18 AM Revision 85f192b0 (git): range.c: Add Range#%
[Feature #14697] [ruby-core:86588]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:10 AM Revision b7d63679 (git): * 2018-09-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:10 AM Revision df5ec410 (git): add debug counters more.
* debug_counter.h: add the following counters.
* frame_push: control frame counts (total counts).
* frame_push_*: control frame counts per every frame type.
* obj_*: add free'ed counts for each type.
* gc.c: ditto.
* vm_insnhelpe...
ko1 (Koichi Sasada)
12:48 AM Feature #15166: 2.5 times faster implementation than current gcd implmentation
No, no. You can just use `__builtin_ctzl` when it is available. All you need is check if it is available or not, and keep the original code for the case where `__builtin_ctzl` is unavailable. Gcc and clang provide it, so it is actuall... mame (Yusuke Endoh)

09/27/2018

11:17 PM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
@hsbt
I just did twenty runs of core/encoding, then twenty runs of the full spec suite. No silent SEGV's.
Hence, the patch works. Thank you. Whoever does the commmit, please remember to remove the two `.name` method calls on...
MSP-Greg (Greg L)
10:37 PM Feature #15166: 2.5 times faster implementation than current gcd implmentation
Hi
I just submitted this issue feature request:
https://bugs.ruby-lang.org/issues/15172
to deal with the issue of using (or not) the ``__builtin_ctz`` compiler directive.
I implemented code that mimicked it that also greatl...
jzakiya (Jabari Zakiya)
10:18 PM Feature #15170: Allow WEBrick::HTTPServlet::initialize to accept an array in server[:CGIInterpreter]
I do not have any pro or con opinion (I rarely use webrick these days) but I
think if you can retain backward compatibility then this may make any patch
in this regard a lot easier.
If you have the time, I would like to suggest to ...
shevegen (Robert A. Heiler)
03:54 PM Feature #15170 (Closed): Allow WEBrick::HTTPServlet::initialize to accept an array in server[:CGIInterpreter]
There is currently no nice way to give WEBrick::HTTPServlet a command with arguments as an array. This force scripts to escape the paths to the given command.
One way to let people specify either a string or an array of strings would ...
remi.lapeyre (Rémi Lapeyre)
10:08 PM Feature #15172 (Open): Performance: create method(s) to mimic __builtin_ctz compiler directive functionality
**Background**
This proposal emanates from issues I raised with regard to speeding up Ruby's implementation of it's ``gcd``.
https://bugs.ruby-lang.org/issues/15166
The use case for these proposed methods exists for many mathema...
jzakiya (Jabari Zakiya)
09:40 PM Feature #15171: [patch] Use OpenSSL 1.1.1 for Appveyor MinGW build
@naruse
I guess I was referring to the two VC builds on Appveyor. With three serial builds on Appveyor, the CI can get quite backed up. Sometimes I've started a new ruby-loco build just to check...
I'm probably mistaken but I thi...
MSP-Greg (Greg L)
09:09 PM Feature #15171: [patch] Use OpenSSL 1.1.1 for Appveyor MinGW build
MSP-Greg (Greg L) wrote:
> Lastly, given any thought to moving the VC builds to Azure? I may see if I can make both VC12 and VC14 OpenSSL packages. Seems inappropriate to load different runtimes with (I think) VC12.
It is bad if VC...
naruse (Yui NARUSE)
08:36 PM Feature #15171 (Closed): [patch] Use OpenSSL 1.1.1 for Appveyor MinGW build
@nobu
Thanks for your work with the Appveyor testing. It took three revisions, but MSYS2 has jumped from OpenSSL 1.0.2 to 1.1.1. The package release 1.1.1-4 should build fine on Appveyor MinGW. I don't think it has hit the MSYS2 re...
MSP-Greg (Greg L)
09:12 PM Bug #15163 (Closed): [BUG] Segmentation fault at 0x0000000000000000
Duplicated with #14959 naruse (Yui NARUSE)
07:17 PM Bug #15169: rb_funcallv crashes when argc is -1
nobu (Nobuyoshi Nakada) wrote:
> `argc` is the number of arguments, pointed by `argv`.
> ...
No, it's actually a bug in the fuzzer I'm building to pass -1 to that function. But I'm getting that crash when I do that. The actual code is ...
ddom (Daniel Dominguez)
12:25 PM Bug #15169 (Rejected): rb_funcallv crashes when argc is -1
`argc` is the number of arguments, pointed by `argv`.
Do you want to pass -1 arguments?
nobu (Nobuyoshi Nakada)
11:39 AM Bug #15169 (Rejected): rb_funcallv crashes when argc is -1
The native function rb_funcallv casues a segmentation fault on 0xffffffffffffffd8 when the argc parameter is -1.
Example:
~~~ c
VALUE argv[1];
argv[0] = Qnil;
rb_funcallv(INT2NUM(1), rb_intern("round"), -1, argv);
~~~
Atta...
ddom (Daniel Dominguez)
10:22 AM Revision 0e3e0f82 (git): Fix messages for too small year
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:22 AM Revision ce77c385 (git): Sort in alphabetical order [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:15 AM Revision 0fb505d2 (git): NEWS: Replace tab with spaces
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
10:03 AM Feature #14802: Update Unicode data to Unicode Version 11.0.0
Just a note, the definition of extended grapheme cluster is changed in Unicode 11 (Unicode® Standard Annex #29
UNICODE TEXT SEGMENTATION revision 33: https://www.unicode.org/reports/tr29/tr29-33.html)
This affects Regexp /\X/ which is ...
naruse (Yui NARUSE)
09:29 AM Revision 00e21090 (git): NEWS: Add ArithmeticSequence related things
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
09:25 AM Bug #15160: ArgumentError: year too big to marshal
This is a limit of current marshal format of `Time`, not a bug.
This is a [patch] to extend the limit, but it has a little problem on marshal data compatibility.
```
$ ./ruby -e 'Marshal.dump(Time.new(1900), STDOUT)'|ruby -e 'p Ma...
nobu (Nobuyoshi Nakada)
04:33 AM Revision 55702df2 (git): move GCC version check from marshal.c to configure.ac
I think it should be done in configure
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)

09/26/2018

11:33 PM Feature #15166 (Assigned): 2.5 times faster implementation than current gcd implmentation
Thanks. Assigned to @watson1978.
It would be very helpful if you could provide us a patch and perform the benchmark with Ruby implementation, not a toy benchmark program. Note that `__builtin_ctzl` is not available on some compilers...
mame (Yusuke Endoh)
06:30 PM Feature #15166 (Assigned): 2.5 times faster implementation than current gcd implmentation
This is to be more explicit (and accurate) than https://bugs.ruby-lang.org/issues/15161
This is my modified gcd benchmarks code, originally presented by Daniel Lemire (see 15161).
https://gist.github.com/jzakiya/44eae4feeda8f6b048e...
jzakiya (Jabari Zakiya)
11:29 PM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
@hsbt, thanks for the work on this. I (quickly) did a lambda in a block, and that didn't cause the SEGV.
Using existing ruby-loco builds (I save all of them locally), I found that the issue doesn't exist on:
`ruby 2.6.0dev (2018-09-...
MSP-Greg (Greg L)
11:42 AM Bug #15162: Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
I found a smaller test to reproduce SEGV.
```
$ ./miniruby -ve "loop do loop do loop do Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::ASCII_8BIT) end end end"
ruby 2.6.0dev (2018-09-26 trunk 64852) [x64-mingw32...
h.shirosaki (Hiroshi Shirosaki)
09:35 AM Bug #15162 (Closed): Encoding::Converter.search_convpath(Encoding::ASCII_8BIT, Encoding::Emacs_Mule) crashes on MinGW
It seems to work fine with String arguments, but not Encoding objects where it SEGV, at least in some runs.
See https://github.com/ruby/ruby/commit/f00bf242724d40d59a242c6bf9e567d18c9e1872#commitcomment-30650955
cc @MSP-Greg
Eregon (Benoit Daloze)
09:25 PM Misc #15129: DevelopersMeeting20181010Japan
[[Feature #14912]](https://bugs.ruby-lang.org/issues/14912) Introduce pattern matching syntax (greggzst)
Many modern languages have introduced pattern matching. I used it in scala and found it very easy to utilize and understand especia...
greggzst (Grzegorz Jakubiak)
05:24 PM Bug #15164 (Closed): mkmf doesn't work with miniruby on Windows
Applied in changeset trunk|r64860.
----------
fallback env encoding to ASCII-8BIT
* hash.c (env_enc_str_new): as no locale/filesystem encoding is
available in miniruby on Windows, fallback the encoding to
ASCII-8BIT so it is valid ...
nobu (Nobuyoshi Nakada)
03:29 PM Bug #15164 (Closed): mkmf doesn't work with miniruby on Windows
After r59449 `nmake` failes to run when making ripper and so on.
It because miniruby sets UTF-8 encoding even though the content is CP932 (on Japanese Windows).
It should set ASCII-8BIT and handle as it is.
```
ripper:
" Could...
naruse (Yui NARUSE)
05:24 PM Revision ea4b9f8f (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:24 PM Revision 7f0d337b (git): fallback env encoding to ASCII-8BIT
* hash.c (env_enc_str_new): as no locale/filesystem encoding is
available in miniruby on Windows, fallback the encoding to
ASCII-8BIT so it is valid encoding when the conversion failed.
[ruby-core:89177] [Bug #15164]
git-svn-id: s...
nobu (Nobuyoshi Nakada)
05:14 PM Bug #15165: heap-use-after-free (READ of size 8) in obj_free (gc.c:2266)
ko1 (Koichi Sasada) wrote:
> Thank you.
> ...
Yes, both are needed.
ASAN needs the -fsanitize=address passed for both compile and linking. The ASAN library also has to be linked to the final executable, so you need to use clang inst...
bannable (Joe Truba)
04:56 PM Bug #15165: heap-use-after-free (READ of size 8) in obj_free (gc.c:2266)
Thank you.
I want to know how to use clang's ASAN. You specified CFLAGS and LDFLAGS. both needed?
ko1 (Koichi Sasada)
04:51 PM Bug #15165 (Closed): heap-use-after-free (READ of size 8) in obj_free (gc.c:2266)
Applied in changeset trunk|r64857.
----------
fix use-after-free in obj_free.
* gc.c (obj_free): a table can be accessed for debug counters.
[Bug #15165] [Fix GH-1964]
A patch from Joe Truba <jtruba@meraki.com>
Also check USE_D...
ko1 (Koichi Sasada)
04:17 PM Bug #15165 (Closed): heap-use-after-free (READ of size 8) in obj_free (gc.c:2266)
This is triggered while compiling 22de2030c5 on my Debian machine. Compiled with:
~~~
CC=clang CXX=clang++ LDFLAGS="-O0 -fno-omit-frame-pointer -g3 -fsanitize=address -fsanitize-coverage=trace-pc-guard" ASAN_OPTIONS=detect_leaks=0 CF...
bannable (Joe Truba)
04:51 PM Revision 2fa31671 (git): * 2018-09-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:51 PM Revision 9cf53c45 (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:51 PM Revision e0b3e5e1 (git): fix use-after-free in obj_free.
* gc.c (obj_free): a table can be accessed for debug counters.
[Bug #15165] [Fix GH-1964]
A patch from Joe Truba <jtruba@meraki.com>
Also check USE_DEBUG_COUNTER macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64857 b2...
ko1 (Koichi Sasada)
02:15 PM Bug #15163 (Closed): [BUG] Segmentation fault at 0x0000000000000000
Hi guys, I'm working with the ruby-2.6.0-preview2 in a Ubuntu 18.04.
When I try to run a "rails server" command I get a intermitenty error:
"/home/alexvirtualbr/.rvm/gems/ruby-2.6.0-preview2/gems/bootsnap-1.3.2/lib/bootsnap/compile_...
alexVIRTUALbr (Alexandre Ferreira)
11:13 AM Bug #11667: Ruby process crashes when TracePoint.new(:raise) is enabled and SystemStackError is raised
We recently ran into this same problem in Ruby 2.4.x, however this appears to be fixed in Ruby 2.5.
In the command below you should see an exception in the output, but instead the application crashes with no output.
~~~ text
$ rub...
tleish (Tony Fenleish)
10:24 AM Bug #15027: When Struct#each method is overriden Struct#select and Struct#to_a use wrong collections
Hi,
let me know if you have any further feedback on this one?
bruno (Bruno Sutic)
09:33 AM Revision 22de2030 (git): * ext/win32ole/lib/win32ole.rb (methods): COM method elements should be
symbol in return value of methods.
* test/win32ole/test_win32ole.rb ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
09:32 AM Revision 38989c76 (git): Use String arguments for #search_convpath
* Otherwise it seems to SEGV on Windows, see
https://github.com/ruby/ruby/commit/f00bf242724d40d59a242c6bf9e567d18c9e1872#commitcomment-30650955
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
08:11 AM Revision d3a9ebeb (git): fix OPT_CALL_THREADED_CODE issue.
* insns.def (opt_send_without_block): reorder insn position because
`opt_str_freeze` insn refer this insn (function) when
OPT_CALL_THREADED_CODE is true.
* vm_opts.h (OPT_THREADED_CODE): introduce new macro to select
threaded code...
ko1 (Koichi Sasada)
07:28 AM Revision ee819b0d (git): add some debug counters.
* debug_counter.h: new debug counters obj_promote, obj_wb_unprotect
and obj_struct_(ptr|embed) are added.
* gc.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:16 AM Revision bc2d493e (git): use configure-defined macro instead of __GNUC__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:10 AM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
I hope so too (not confident enough since it was a random failure). Thank you for your attention to these CIs. k0kubun (Takashi Kokubun)
04:09 AM Bug #13167: Dir.glob is 25x slower since Ruby 2.2
k0kubun (Takashi Kokubun) wrote:
> After this commit is merged, some CIs that has -DVM_CHECK_MODE=2 and continue to test latest revision started to randomly crash "TestGem#test_load_plugins":
> ...
Is that fixed by r64849? Thanks for t...
h.shirosaki (Hiroshi Shirosaki)
02:38 AM Revision 8ab2230b (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:38 AM Revision 6e62e59e (git): revert r64847, r64846 and r64839
because r64849 seems to fix issues which we were confused about.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
02:23 AM Revision fa3d1ca0 (git): fix "initialize miss".
* dir.c (glob_helper): initialize `args.pathtype`.
missed at r64810.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:02 AM Revision 226b9159 (git): yet another -Wparentheses tweak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
01:11 AM Revision 1d782010 (git): * expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:11 AM Revision e08f4182 (git): revert r64838 and r64839
because some build failures persisted
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
k0kubun (Takashi Kokubun)
 

Also available in: Atom