Project

General

Profile

Activity

From 03/19/2021 to 03/25/2021

03/25/2021

11:29 PM Feature #17749 (Open): Const source location without name
Hi,
I would like to be able to ask a class or module what its source location is without knowing the name. For ex...
tenderlovemaking (Aaron Patterson)
06:39 PM Feature #17743: Show argument types in backtrace
ufuk (Ufuk Kayserilioglu) wrote in #note-4:
> p8 (Petrik de Heus) wrote in #note-3:
> > ```
> > from hi.rb:2:in `s...
p8 (Petrik de Heus)
06:36 PM Bug #17748: Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
> maybe we can just revert the behavior on Linux. #12838 is a corner case, certainly the timeout for invalid domains... byroot (Jean Boussier)
03:04 PM Bug #17748: Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
I couldn't reproduce the bug on Windows or OpenBSD. Since the bug appears to be limited to Linux, maybe we can just ... jeremyevans0 (Jeremy Evans)
12:41 PM Bug #17748: Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
The bug seem to be introduced by https://github.com/ruby/ruby/commit/9682db065158da5fa4ec8a3bc267da45b429b92c
Reve...
byroot (Jean Boussier)
12:28 PM Bug #17748: Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
I ran a quick profiler:
All the time is spent waiting on the socket to be readable:
```
========================...
byroot (Jean Boussier)
12:16 PM Bug #17748: Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
I was able to reproduce on both 3.0.0-p0 as well as the current `ruby_3_0` branch.
However it seems to be limited ...
byroot (Jean Boussier)
11:07 AM Bug #17748 (Closed): Ruby 3.0 takes a long time to resolv DNS of nonexistent domains
I'm running into a subtle bug when trying to resolv a nonexistent domain.
```
$ ruby -v
ruby 2.7.2p137 (...
xdmx (Eric Bloom)
03:38 PM Revision 041a4f9a (git): Stop downloading Unicode files twice
These files should have been downloaded in update-remote. nobu (Nobuyoshi Nakada)
03:37 PM Feature #12125: Proposal: Shorthand operator for Object#method
@cvss, your two other examples are also not convincing. Here is how one can write them:
```ruby
some_even_set = s...
marcandre (Marc-Andre Lafortune)
03:32 PM Feature #12125: Proposal: Shorthand operator for Object#method
cvss (Kirill Vechera) wrote in #note-31:
> @marcandre, comparing performance, the `#method` way is better:
>
> The `...
marcandre (Marc-Andre Lafortune)
03:25 PM Feature #12125: Proposal: Shorthand operator for Object#method
I agree, `to_h` is better, but for hashes only. When we have no such a shorthand with other classes or other construc... cvss (Kirill Vechera)
02:55 PM Feature #12125: Proposal: Shorthand operator for Object#method
@marcandre, comparing performance, the `#method` way is better:
The `map{File.basename(_1)}` code has two performa...
cvss (Kirill Vechera)
06:32 AM Feature #12125: Proposal: Shorthand operator for Object#method
Since then, we have `_1`:
```ruby
Dir["*/*.c"].map{File.basename(_1)}
```
My understanding is that a syntax f...
marcandre (Marc-Andre Lafortune)
02:26 AM Feature #12125 (Open): Proposal: Shorthand operator for Object#method
Re-opened as this feature has been reverted. nobu (Nobuyoshi Nakada)
02:19 PM Misc #17720: Cirrus CI to check non-x86_64 architecture cases by own machines
> I and naruse (and others) hope to maintain non-x86 platform. But we don't have enough resources that are working ti... jaruga (Jun Aruga)
12:00 PM Misc #17720: Cirrus CI to check non-x86_64 architecture cases by own machines
> Do you interest to maintain it as a ruby committer?
@hsbt, @mame, yes! I am interested in maintaining Cirrus CI ...
jaruga (Jun Aruga)
07:43 AM Misc #17720: Cirrus CI to check non-x86_64 architecture cases by own machines
hsbt (Hiroshi SHIBATA) wrote in #note-4:
> @jaruga
>
> Do you interest to maintain it as a ruby committer?
+1
mame (Yusuke Endoh)
07:03 AM Misc #17720: Cirrus CI to check non-x86_64 architecture cases by own machines
Interesting.
I and naruse (and others) hope to maintain non-x86 platform. But we don't have enough resources that a...
hsbt (Hiroshi SHIBATA)
09:54 AM Revision ad8842c0 (git): [ruby/irb] Cache completion files to require
https://github.com/ruby/irb/commit/612ebcb311 aycabta (aycabta .)
09:06 AM Revision f45bed0a (git): Use XRUBY to expand path instead of platform dependent
znz (Kazuhiro NISHIYAMA)
08:10 AM Revision e7dc6f2a (git): Generate encoding header before enc.mk
As some encodings need the corresponding header. nobu (Nobuyoshi Nakada)
06:55 AM Feature #17744: Accumulate `Enumerable#tally` results
Go ahead.
Matz.
matz (Yukihiro Matsumoto)
06:45 AM Revision cda60ee6 (git): Keep unicode_normalize/tables.rb as-is
Define no dependency unless ALWAYS_UPDATE_UNICODE is set to yes,
so that `make prog` works in a just-checkedout worki...
nobu (Nobuyoshi Nakada)
06:44 AM Bug #17747 (Closed): `make up` is broken with clean repo.
`make up` is broken when after cloning git repo like https://github.com/ruby/ruby.
expected instructions
```
....
hsbt (Hiroshi SHIBATA)
05:59 AM Revision 12812c2b (git): Fix test-bundler-parallel errors when out-of-place build
znz (Kazuhiro NISHIYAMA)

03/24/2021

11:58 PM Feature #12125: Proposal: Shorthand operator for Object#method
Since the proposed feature was reverted in #16275, maybe this issue should be re-opened to continue discussion and "r... cvss (Kirill Vechera)
10:09 PM Feature #17743: Show argument types in backtrace
p8 (Petrik de Heus) wrote in #note-3:
> ```
> from hi.rb:2:in `say_hi' called with NilClass, Numeric, String
> ```...
ufuk (Ufuk Kayserilioglu)
08:39 PM Feature #17743: Show argument types in backtrace
Eregon (Benoit Daloze) wrote in #note-2:
> How would your format when the method takes multiple arguments?
```
f...
p8 (Petrik de Heus)
07:54 PM Feature #17743: Show argument types in backtrace
How would your format when the method takes multiple arguments?
Should we show the value or just the class?
I thi...
Eregon (Benoit Daloze)
09:05 AM Feature #17743 (Open): Show argument types in backtrace
Given the following Ruby program:
``` ruby
def say_hi(person)
puts message(person)
end
def message(person)
...
p8 (Petrik de Heus)
09:02 PM Feature #17745: `IO#close_on_exec=` returns different value when called with `send, __send__, public_send` or not
I also think the "returns nil" example should be removed simply. nobu (Nobuyoshi Nakada)
07:38 PM Feature #17745: `IO#close_on_exec=` returns different value when called with `send, __send__, public_send` or not
The PR looks good to me.
As you may know `recv.foo= value` always return `value`, no matter what the `foo=` method...
Eregon (Benoit Daloze)
04:22 PM Feature #17745 (Closed): `IO#close_on_exec=` returns different value when called with `send, __send__, public_send` or not
```console
$ ruby -v -e 'p(STDIN.close_on_exec = 42)'
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin2...
kachick (Kenichi Kamiya)
06:31 PM Revision b25361f7 (git): Change heap walking to be safe for object allocation
peterzhu2118 (Peter Zhu)
06:15 PM Bug #17746 (Closed): Backport f9f13a4f6d8be706b17efc089c28f7bc617ef549 to Ruby 3.0
This is necessary fix a bug in Kernel#caller missing frames, introduced with the fix for #17581. This should be back... jeremyevans0 (Jeremy Evans)
06:15 PM Revision f9f13a4f (git): Ensure that caller respects the start argument
Previously, if there were ignored frames (iseq without pc), we could
go beyond the requested start frame. This has t...
jeremyevans (Jeremy Evans)
05:22 PM Feature #17524: resolv: add some more characters in IPv6 link local zone id
I just faced this issue where `cni-podman0` including `-` is used as string matching with `Resolv::IPv6::Regex_Compre... jaruga (Jun Aruga)
03:20 PM Revision 91ab024d (git): * 2021-03-25 [ci skip]
git[bot]
03:20 PM Revision 2c3ac0fe (git): Update bundled_gems
znz (Kazuhiro NISHIYAMA)
02:35 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
@jeremyevans0 indeed that fixes the issue. Thanks a lot! byroot (Jean Boussier)
02:11 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
@byroot https://github.com/ruby/ruby/pull/4237 hasn't been merged yet, I'm guessing that may fix your example. jeremyevans0 (Jeremy Evans)
12:08 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
@jeremyevans I'm not sure this was properly fixed:
```ruby
def label
p caller.first
end
def label_caller
...
byroot (Jean Boussier)
02:29 PM Feature #17682: String#casecmp performance improvement
bump.
I'll be happy to make any suggested changes to the PR.
I hope `casecmp` performance is important enough to de...
Dan0042 (Daniel DeLorme)
02:14 PM Bug #17665 (Closed): Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
peterzhu2118 (Peter Zhu)
02:13 PM Bug #17652 (Closed): GC compaction crash on mprotect
peterzhu2118 (Peter Zhu)
02:11 PM Feature #17744: Accumulate `Enumerable#tally` results
~~Is there an issue using `merge`?~~
I retract my question, this change sounds simple enough
marcandre (Marc-Andre Lafortune)
01:10 PM Feature #17744 (Closed): Accumulate `Enumerable#tally` results
A [feature request] at [DevelopersMeeting20200317Japan]:
> * ko1: want to accumulate `Enumerable#tally` results
>
...
nobu (Nobuyoshi Nakada)
01:29 PM Feature #17718: a method paramaters object that can be pattern matched against
nobu (Nobuyoshi Nakada) wrote in #note-3:
> I think there was a proposal for a similar concept, "rest keywords includ...
Dan0042 (Daniel DeLorme)
11:34 AM Bug #17655: Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
This seems similar to the following fixed issue: https://bugs.ruby-lang.org/issues/17728 p8 (Petrik de Heus)
11:13 AM Revision 1f08b0d1 (git): Removed dln_a_out
a.out format is considered extinct nowadays. nobu (Nobuyoshi Nakada)
10:25 AM Bug #17742: Random.rand gets wrong after using Ractor and requiring benchmark
I think that it is fixed by 3acc81d9.
```
$ cat test.rb
10.times do
r = 100.times.map { Ractor.new{ Ractor.yie...
wanabe (_ wanabe)
08:22 AM Bug #17742: Random.rand gets wrong after using Ractor and requiring benchmark
> It is possible that this issue has already been fixed
I think so too. I compiled the `ruby_3_0` branch (what wil...
byroot (Jean Boussier)
02:41 AM Bug #17742: Random.rand gets wrong after using Ractor and requiring benchmark
I cannot reproduce this with a recent development version (3.1.0dev) on Git. It is possible that this issue has alrea... xtkoba (Tee KOBAYASHI)
07:39 AM Feature #17685 (Feedback): Marshal format for out of band buffer objects
mrkn (Kenta Murata)
07:10 AM Revision 2dcbc6ef (git): [ruby/irb] fix completion test when out-of-place build
nobu (Nobuyoshi Nakada)
06:43 AM Revision 89caf51d (git): [ruby/reline] Suppress crashing when completer_{quote,word_break}_characters is empty
https://github.com/ruby/reline/commit/c6f1164942 aycabta (aycabta .)
06:43 AM Revision 758f2b35 (git): [ruby/reline] Support preposing and postposing for Reline.completion_proc
https://github.com/ruby/reline/commit/1f469de90c aycabta (aycabta .)
06:43 AM Revision 4b33d860 (git): [ruby/reline] Reline.delete_text removes the current line in multiline
https://github.com/ruby/reline/commit/da90c094a1 aycabta (aycabta .)
06:43 AM Revision b764c8d3 (git): [ruby/reline] Add Reline.ungetc to control buffer
https://github.com/ruby/reline/commit/43ac03c624 aycabta (aycabta .)
06:26 AM Revision a5b6baae (git): Fix test-bundler failures when XDG_CONFIG_HOME is not writable
https://github.com/ruby/actions/runs/2175399707?check_suite_focus=true
```
Errno::EACCES: Permission denied @ dir_s_m...
znz (Kazuhiro NISHIYAMA)
06:11 AM Revision 0927756e (git): [ruby/irb] Complete require and require_relative
https://github.com/ruby/irb/commit/1c61178b4c aycabta (aycabta .)
05:39 AM Revision 0259ee60 (git): [ruby/irb] Change ripper_lex_without_warning to a class method
https://github.com/ruby/irb/commit/d9f8abc17e aycabta (aycabta .)
04:23 AM Revision c9d0053e (git): Fixed compilation errors when USE_DLN_A_OUT
nobu (Nobuyoshi Nakada)
04:02 AM Revision 850448ab (git): Fix leaked file descriptor in passwd test
peterzhu2118 (Peter Zhu)

03/23/2021

08:59 PM Bug #17742 (Closed): Random.rand gets wrong after using Ractor and requiring benchmark
Dear All,
I use Ruby v3.0.0 on Ubuntu 18.04 x64 compiled from source the recommended way and when I run the follow...
[email protected] (Andras Horvath)
08:10 PM Revision 061edf6b (git): * 2021-03-24 [ci skip]
git[bot]
08:10 PM Revision 417c648f (git): Free iv index table
IV index tables weren't being freed. This program would leak memory:
```ruby
loop do
k = Class.new do
def ini...
tenderlovemaking (Aaron Patterson)
07:52 PM Revision d3779ab3 (git): * 2021-03-24 [ci skip]
git[bot]
07:52 PM Revision 2efda212 (git): Merge RubyGems-3.2.15 and Bundler-2.2.15 (#4311)
hsbt (Hiroshi SHIBATA)
08:20 AM Revision 607aa117 (git): Ignore useless separators preceding a file encoding comment
nobu (Nobuyoshi Nakada)
08:10 AM Bug #17732: rb_enc_interned_str crashes if called with a not yet loaded encoding
> I'm afraid that this can be happen in earlier than 3.0 too.
Hum. `rb_enc_interned_str` was introduced in 3.0.
...
byroot (Jean Boussier)
07:44 AM Revision a58f9aa3 (git): Assertion for colon-separated encoding pragma
nobu (Nobuyoshi Nakada)
07:32 AM Revision c83bd2a5 (git): Refined failure messages in TestFileExhaustive#test_test
nobu (Nobuyoshi Nakada)
03:20 AM Revision 81d52978 (git): test/zlib/test_zlib.rb: stop a failure on armv7l
The platform defines a constant File::TMPFILE, but it seems unavailable
(maybe depending on the file system?).
http:...
mame (Yusuke Endoh)
03:20 AM Revision 17550c64 (git): test/ruby/test_fiber.rb: relax timeout on Solaris
... of test_many_fibers_with_threads because the test seems to take
about 180 sec. on Solaris. This change extends th...
mame (Yusuke Endoh)
01:24 AM Feature #17741: Ruby links to `objc` for convenience - this should be moved into a native ext
As far as I remember, I've heard that libobjc needs to be linked against the executable file instead of dynamically l... nobu (Nobuyoshi Nakada)

03/22/2021

11:33 PM Bug #17732 (Closed): rb_enc_interned_str crashes if called with a not yet loaded encoding
I missed that the link was only in the pull-request description but not in the commit log.
I'm afraid that this ca...
nobu (Nobuyoshi Nakada)
03:11 PM Bug #17732: rb_enc_interned_str crashes if called with a not yet loaded encoding
@nobu thanks for merging https://github.com/ruby/ruby/pull/4290
Do you think it should be backported to 3.0?
Ei...
byroot (Jean Boussier)
11:20 PM Revision 4bc09c96 (git): Suppress verbose messages
Get rid of warnings in the parallel test.
```
unknown command: "Switch to inspect mode."
```
nobu (Nobuyoshi Nakada)
10:42 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
rickmark (Rick Mark) wrote in #note-9:
> naruse (Yui NARUSE) wrote in #note-7:
> > duerst (Martin Dürst) wrote in #...
naruse (Yui NARUSE)
07:50 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
rickmark (Rick Mark) wrote in #note-8:
> nobu (Nobuyoshi Nakada) wrote in #note-5:
> > The Security framework is li...
rickmark (Rick Mark)
07:38 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
naruse (Yui NARUSE) wrote in #note-7:
> duerst (Martin Dürst) wrote in #note-6:
> > rickmark (Rick Mark) wrote:
> ...
rickmark (Rick Mark)
07:37 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
nobu (Nobuyoshi Nakada) wrote in #note-5:
> The Security framework is linked only when it is available but CommonRan...
rickmark (Rick Mark)
02:58 AM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
duerst (Martin Dürst) wrote in #note-6:
> rickmark (Rick Mark) wrote:
>
> > Further CoreFoundation is only used f...
naruse (Yui NARUSE)
07:56 PM Feature #17741 (Open): Ruby links to `objc` for convenience - this should be moved into a native ext
As a convenance to extension developers Ruby on macOS always links to libobjc. This could be better handled with a n... rickmark (Rick Mark)
04:30 PM Revision c1497080 (git): * 2021-03-23 [ci skip]
git[bot]
04:30 PM Revision 37abe1a2 (git): [Doc] Standardize wording s/sweeped/swept/
kachick (Kenichi Kamiya)
02:32 PM Revision 816a1d97 (git): coroutine mac m1 update.
using proper link register and frame pointer which equal x30/x29. David CARLIER
02:32 PM Revision 35d30c6a (git): vm dump display return address in the abscence of X30 in Mac ARM64.
David CARLIER
01:51 PM Revision 5e16c3a1 (git): solaris/illumos build fix.
David Carlier
12:37 PM Revision 7e8a9af9 (git): rb_enc_interned_str: handle autoloaded encodings
If called with an autoloaded encoding that was not yet
initialized, `rb_enc_interned_str` would crash with
a NULL poi...
byroot (Jean Boussier)
12:16 PM Revision 5b272a64 (git): [Doc] Fix a typo around Hash#compare_by_identity
kachick (Kenichi Kamiya)
09:59 AM Revision ad0fa532 (git): [DOC] some methods of Fiber do not need to require anymore [Feature #17407]
znz (Kazuhiro NISHIYAMA)
06:33 AM Revision ec4a41c4 (git): [Doc] Fix a typo s/interseting/interesting/
kachick (Kenichi Kamiya)
05:10 AM Revision 7d3fdfb2 (git): Hash#transform_values! ensures receiver modifiable in block [Bug #17736]
kachick (Kenichi Kamiya)

03/21/2021

03:20 PM Revision db0ad483 (git): * 2021-03-22 [ci skip]
git[bot]
03:20 PM Revision 5e2e8ad9 (git): Add `RbConfig::CONFIG["platform"]`
Means the platform with the actual CPU info on universal binary.
The CPU in "arch" is fixed as "universal" to refer t...
nobu (Nobuyoshi Nakada)
10:16 AM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
rickmark (Rick Mark) wrote:
> Further CoreFoundation is only used for one call in the entire codebase of `CFString...
duerst (Martin Dürst)
08:57 AM Revision cb396d42 (git): Share variables defined in common GNUmakefile also in cygwin/mingw
nobu (Nobuyoshi Nakada)
07:01 AM Revision 94254117 (git): [ruby/irb] Have some right padding
instead of filling out an entire line
https://github.com/ruby/irb/commit/6ac8f45f5f
k0kubun (Takashi Kokubun)
06:57 AM Revision 450d1f2c (git): [ruby/irb] Deal with different screen sizes
e.g. http://rubyci.s3.amazonaws.com/centos8/ruby-master/log/20210321T063003Z.fail.html.gz
https://github.com/ruby/ir...
k0kubun (Takashi Kokubun)
06:50 AM Revision 75b38f18 (git): [ruby/irb] Fix step's argument
cols.size was calling Integer#size, which returns 8.
Fixing a bug of https://github.com/ruby/irb/pull/209
https://g...
k0kubun (Takashi Kokubun)
06:19 AM Revision d0b044a8 (git): [ruby/irb] Fix column overflow on ls output
https://github.com/ruby/irb/commit/6115754623 k0kubun (Takashi Kokubun)
06:14 AM Feature #17411 (Closed): Allow expressions in pattern matching
Applied in changeset commit:git|21863470d965b8cc299b1f82417c70d5d26f8ab2.
----------
Pattern matching pin operator a...
ktsj (Kazuki Tsujimoto)
06:14 AM Revision 21863470 (git): Pattern matching pin operator against expression [Feature #17411]
This commit is based on the patch by @nobu. ktsj (Kazuki Tsujimoto)
05:43 AM Revision c761586b (git): I gave up tentatively to support autoconf 2.70 in ruby_2_7 and remove failing build on GitHub Actions MinGW
nagachika (Tomoyuki Chikanaga)
05:27 AM Revision 338d7ec9 (git): * 2021-03-21 [ci skip]
git[bot]
05:27 AM Revision ad8d6dcb (git): Revert "merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255:"
This reverts commit cfd1a17292ae37db4d09c1452a4a84e7fd58e7cf. nagachika (Tomoyuki Chikanaga)
05:19 AM Revision cfd1a172 (git): merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255:
Update for autoconf 2.70
---
configure.ac | 232 +++++++++++++++++----------...
nagachika (Tomoyuki Chikanaga)
04:40 AM Revision 232433f2 (git): [ruby/irb] Add whereami command
https://github.com/ruby/irb/commit/bc822e4aac k0kubun (Takashi Kokubun)
03:59 AM Revision 5f72962a (git): [ruby/irb] Implement ls command
https://github.com/ruby/irb/commit/19b6c20604 k0kubun (Takashi Kokubun)
02:27 AM Misc #17733: Add peterzhu2118 as a committer
Thank you user:hsbt, I've sent an email with my information. peterzhu2118 (Peter Zhu)
01:21 AM Misc #17733: Add peterzhu2118 as a committer
@peterzhu2118
Can you provide the your information about https://bugs.ruby-lang.org/projects/ruby/wiki/CommitterHo...
hsbt (Hiroshi SHIBATA)
01:07 AM Revision d36ac283 (git): Ensure the receiver hash modifiable before updating [Bug #17736]
Close https://github.com/ruby/ruby/pull/4298 nobu (Nobuyoshi Nakada)
12:38 AM Revision d319eb60 (git): Add Hash#{update, merge!} test to ensure receiver modifiable in block
kachick (Kenichi Kamiya)

03/20/2021

10:56 PM Bug #17740 (Closed): Segmentation Fault on const_get when running `srb init` (sorbet gem)
Duplicate with https://bugs.ruby-lang.org/issues/17622 hsbt (Hiroshi SHIBATA)
10:37 PM Bug #17740: Segmentation Fault on const_get when running `srb init` (sorbet gem)
Apparently it's fixed in https://github.com/ruby/ruby/pull/4175 dorianmariefr (Dorian Marié)
10:33 PM Bug #17740: Segmentation Fault on const_get when running `srb init` (sorbet gem)
It's from an ActiveAdmin gem.
Also removed Bootsnap and it didn't fix it.
dorianmariefr (Dorian Marié)
10:29 PM Bug #17740: Segmentation Fault on const_get when running `srb init` (sorbet gem)
Added a puts debugging, and I get:
```
puts "CONSTANT #{constant.inspect} CONST_GET NAME #{name.inspect}"
(oth...
dorianmariefr (Dorian Marié)
10:26 PM Bug #17740 (Closed): Segmentation Fault on const_get when running `srb init` (sorbet gem)
Here is the full logs of the segfault: https://gist.github.com/dorianmariefr/c414a7c2d48671be12fbf0fe6769882b
The ...
dorianmariefr (Dorian Marié)
09:57 PM Revision 54bfa057 (git): Add ins_methods_type_i function
S_H_ (Shun Hiraoka)
08:04 PM Bug #17739: Array#sort! changes the order even if the receiver raises FrozenError in given block
Is there a usecase for this? marcandre (Marc-Andre Lafortune)
07:37 PM Bug #17739: Array#sort! changes the order even if the receiver raises FrozenError in given block
I think the point of `#sort!` is that it sorts in-place - so not creating a copy. If we want to be able to restore th... chrisseaton (Chris Seaton)
07:06 PM Bug #17739 (Closed): Array#sort! changes the order even if the receiver raises FrozenError in given block
I think this is a similar issue of https://bugs.ruby-lang.org/issues/17736
```ruby
array = [1, 2, 3, 4, 5]
begin...
kachick (Kenichi Kamiya)
05:11 PM Bug #17738: Ruby can still freeze ENV
I believe so, yes. marcandre (Marc-Andre Lafortune)
09:11 AM Bug #17738 (Rejected): Ruby can still freeze ENV
After https://bugs.ruby-lang.org/issues/15920 and https://github.com/ruby/ruby/commit/f53d7e4bfd604be6f8131c5460c29f4... kachick (Kenichi Kamiya)
03:23 PM Revision 2d66f8e0 (git): * 2021-03-21 [ci skip]
git[bot]
03:11 PM Revision 298edfa4 (git): Refactor hash aset callback
nobu (Nobuyoshi Nakada)
02:53 PM Revision cfadbf2f (git): Add write-barrier in tally
nobu (Nobuyoshi Nakada)
02:42 PM Revision 0b6554e6 (git): Refactor hash update callbacks
nobu (Nobuyoshi Nakada)
12:00 PM Revision 71ba0963 (git): Remove unneeded declarations
S_H_ (Shun Hiraoka)
11:55 AM Revision 178a2a1a (git): Remove unneeded declarations in bignum.c
S_H_ (Shun Hiraoka)
11:46 AM Revision 7954bb05 (git): Some Hash destructive methods ensure the receiver modifiable [Bug #17736]
refs:
* https://bugs.ruby-lang.org/issues/17736
* https://github.com/ruby/ruby/pull/4296
This commit aims to cover ...
kachick (Kenichi Kamiya)
11:25 AM Revision 278522f0 (git): [ruby/irb] Don't call Ruby 2.4+'s String#pretty_print
https://github.com/ruby/irb/commit/89bcf107be k0kubun (Takashi Kokubun)
10:16 AM Bug #17736 (Closed): Destructive methods inconsistently handle `receiver frozen state` in given block
Applied in changeset commit:git|e019dd24df4ed7063ad80d4c2e4070141793f598.
----------
Ensure the receiver is modifiab...
nobu (Nobuyoshi Nakada)
07:12 AM Bug #17736 (Closed): Destructive methods inconsistently handle `receiver frozen state` in given block
When I interested around https://bugs.ruby-lang.org/issues/17735, I found following behaviors.
```ruby
array = [1...
kachick (Kenichi Kamiya)
10:15 AM Revision e019dd24 (git): Ensure the receiver is modifiable before shrinking [Bug #17736]
* Ensure the receiver is modifiable before shinking [Bug #17736]
* Assert the receivers are not modified
nobu (Nobuyoshi Nakada)
09:07 AM Revision bf3eaf39 (git): Remove unused rb_ast_parse_array declaration
S_H_ (Shun Hiraoka)
08:52 AM Bug #17735: `Hash#transform_keys!` drops non evaluated keys
These are just a bug, not a spec.
```ruby
ruby_version_is ""..."2.5.1" do
it "partially modifies the conte...
nobu (Nobuyoshi Nakada)
06:33 AM Bug #17735 (Closed): `Hash#transform_keys!` drops non evaluated keys
```ruby
hash = {a: 1, b: 2, c: 3}
hash.transform_values!(){ raise } rescue
p hash #=> {:a=>1, :b=>2, :c=>3}
```
...
kachick (Kenichi Kamiya)
08:01 AM Bug #17737 (Rejected): `Array#permutation` does not immediately check the arity when no block is given
```ruby
p [].permutation(1) #=> #<Enumerator: []:permutation(1)>
p [].permutation(1, 3) #=> #<Enumerator: []:permut...
kachick (Kenichi Kamiya)
07:41 AM Revision 16f3ebd7 (git): merge revision(s) 737da8d383e116c83fb356386322626f039deb06:
Add another missing cast
---
iseq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
nagachika (Tomoyuki Chikanaga)
07:38 AM Revision 23bb717d (git): Partially merged 79df14c04b452411b9d17e26a398e491bca1a811 to suppress compiler warning.
nagachika (Tomoyuki Chikanaga)
07:31 AM Bug #17731: Integer downflow with inject/reduce
ruby_2_7 364c8595884808315aaec9605bf2423963ed81c0 merged revision(s) a85ed626f18d1014d09fb37eb0a703976c3d2b53. nagachika (Tomoyuki Chikanaga)
07:30 AM Bug #17729: Fix infinite loop when parsing RUBYLIB with locale-invalid bytes
ruby_2_7 ec779aa56f4d6df465e721818d73d0d48fdf03f2 merged revision(s) f748b911c9157a0bb86f38280ddfba72a55049b6. nagachika (Tomoyuki Chikanaga)
07:30 AM Bug #17519: set_visibility fails when a prepended module and a refinement both exist
ruby_2_7 6e962f02b266c3a6c47e50cf2e9ab7b1db25e515 merged revision(s) 58660e943488778563b9e41005a601e9660ce21f. nagachika (Tomoyuki Chikanaga)
07:16 AM Revision 364c8595 (git): merge revision(s) a85ed626f18d1014d09fb37eb0a703976c3d2b53: [Backport #17731]
Fix Enumerable#inject with high negative fixnums [Bug #17731]
---
enum.c | 2 +-
...
nagachika (Tomoyuki Chikanaga)
07:15 AM Revision ec779aa5 (git): merge revision(s) f748b911c9157a0bb86f38280ddfba72a55049b6: [Backport #17729]
Fix infinite loop at illegal sequence [Bug #17729]
As mblen returns -1 on failure, skip the first byte and t...
nagachika (Tomoyuki Chikanaga)
07:14 AM Revision 6e962f02 (git): merge revision(s) 58660e943488778563b9e41005a601e9660ce21f: [Backport #17519]
Skip refined method when exporting methods with changed visibility
Previously, attempting to change the visi...
nagachika (Tomoyuki Chikanaga)
07:08 AM Bug #17142 (Open): Ruby fails to build in AIX
I reopen this ticket since the pull request (https://github.com/ruby/ruby/pull/3717) was not merged yet. nagachika (Tomoyuki Chikanaga)
07:04 AM Revision ce02265d (git): merge revision(s) 0dc95266e8c36dbc3bfdcb88d820cb7f897166d7:
Fix the failing test with XDG_CONFIG_HOME
---
test/irb/test_init.rb | 4 ++++
1 file change...
nagachika (Tomoyuki Chikanaga)
06:59 AM Bug #16814: Segmentation fault in GC while running test/ruby/test_fiber.rb on s390x
ruby_2_7 755a349a3a66f5731995296fe3bb7d2b1712167f merged revision(s) 4bff8e84232594ecb9914e2a8437b7c40a63b799. nagachika (Tomoyuki Chikanaga)
06:54 AM Revision 755a349a (git): merge revision(s) 4bff8e84232594ecb9914e2a8437b7c40a63b799: [Backport #16814]
Ensure that the head of the vacancy list is correctly inserted into
the linked list.
See <https://b...
nagachika (Tomoyuki Chikanaga)
06:52 AM Bug #17428: Method#inspect bad output for class methods
MEMO: Though there should be some preceding changesets, I gave up to find it for the time being. nagachika (Tomoyuki Chikanaga)
06:42 AM Bug #17725: Prepend breaks ability to override optimized methods
Another example:
```ruby
'' != nil
module Blah
def == other
'blah blah'
end
end
String.prepend(Blah...
xtkoba (Tee KOBAYASHI)
06:35 AM Bug #17218: Range#step sometimes behaves unexpectedly with Rational endpoints and increment
ruby_2_7 82bce422ba9e131e62b528854dea69a6e8cc0c04 merged revision(s) 254bed302752a401b5fcc3b6c65a9c93711d91d6,fad3023... nagachika (Tomoyuki Chikanaga)
06:35 AM Revision 82bce422 (git): merge revision(s) 254bed302752a401b5fcc3b6c65a9c93711d91d6,fad3023e94c45e7f03478732f7641b6f39ba9d12,3156fb0f2c3ebf8229f392c8502c08fe165ab181: [Backport #17218]
Renamed `nurat_sub` compliant with `rb_rational_plus`
---
internal/rational.h | 1 +
ration...
nagachika (Tomoyuki Chikanaga)
06:02 AM Bug #17321: Having a singleton class makes cloning imperfect
ruby_2_7 82d72f14e7071218f3fd710f770d1ba31390f027 merged revision(s) ebb96fa8808317ad53a4977bff26cf755d68077e. nagachika (Tomoyuki Chikanaga)
06:02 AM Bug #17352: Backport Subsecond of Time::tm should be 0
ruby_2_7 a85982553935b81de02eb8cca9476df5d4442fd8 merged revision(s) 276f6a225d18561cbe5282b798cb4e416c66079f,95bef7b... nagachika (Tomoyuki Chikanaga)
06:02 AM Bug #16809: Fiber crashes with --with-coroutine=copy
ruby_2_7 d84cc717020be1da7d89b6bda02d1427f9593968 merged revision(s) 15e23312f6abcbf1afc6fbbf7917a57a0637f680. nagachika (Tomoyuki Chikanaga)
06:01 AM Revision c02f4c1c (git): merge revision(s) e0dd072978e6c2c8180e75617e7ee37830caefa3,85f99f4b715a5954124d5014002c16652995b128:
Fix errors when XDG_CONFIG_HOME points to non-writable directory
`$HOME/.config` is not writable on CI
...
nagachika (Tomoyuki Chikanaga)
05:57 AM Revision d84cc717 (git): merge revision(s) 15e23312f6abcbf1afc6fbbf7917a57a0637f680: [Backport #16809]
Rework the order of operations to avoid stack smashing.
---
coroutine/copy/Context.c | 59 +++++++++...
nagachika (Tomoyuki Chikanaga)
05:43 AM Revision a8598255 (git): merge revision(s) 276f6a225d18561cbe5282b798cb4e416c66079f,95bef7b69a6fb42687a6200b338060be307259f5: [Backport #17352]
Don't double fractional seconds when passing timezone object to
Time.new
I found that fractional se...
nagachika (Tomoyuki Chikanaga)
05:36 AM Bug #17150: Dumping/loading an Exception object dumps core
MEMO: 369cfabd5936ccb522f8e95e0f9cc65b59ea4039 seems depend on the preceding changeset 0b81a484f3453082d28a48968a063f... nagachika (Tomoyuki Chikanaga)
05:26 AM Revision 82d72f14 (git): merge revision(s) ebb96fa8808317ad53a4977bff26cf755d68077e: [Backport #17321]
Fix singleton class cloning
Before this commit, `clone` gave different results depending on whether the orig...
nagachika (Tomoyuki Chikanaga)
05:24 AM Bug #17215: Backport for arm64 optimizations that exist for power/x86
ruby_2_7 6ef46f71c743507a0e2ae0eef14dce0539b0ff52 merged revision(s) 511b55bcefc81c036294dc9a544d14bd342acd3b. nagachika (Tomoyuki Chikanaga)
05:23 AM Revision 6ef46f71 (git): merge revision(s) 511b55bcefc81c036294dc9a544d14bd342acd3b: [Backport #17215]
Enable arm64 optimizations that exist for power/x86 (#3393)
* Enable unaligned accesses on arm64
64...
nagachika (Tomoyuki Chikanaga)
04:57 AM Bug #17130: Method#super_method is broken for aliased methods
ruby_2_7 c98aa2db60f43e839d7a82897c22b5ceecbed417 merged revision(s) c60aaed1856b2b6f90de0992c34771830019e021. nagachika (Tomoyuki Chikanaga)
04:57 AM Bug #16774: Don't require sub-word atomics
ruby_2_7 ba6f0879448ebc80c7a595c369c59b6d8dfbdf3e merged revision(s) abe2e7de4d1f2d5861d7c9ab9c7e778f2ee1dcd2. nagachika (Tomoyuki Chikanaga)
04:56 AM Bug #16787: [patch] allow Dir.home to work for non-login procs when $HOME not set
ruby_2_7 ef1ed1b53afdff80cb217d77f3fbcbe7906c729e merged revision(s) c15cddd1d515c5bd8dfe8fb2725e3f723aec63b8. nagachika (Tomoyuki Chikanaga)
04:56 AM Revision ef1ed1b5 (git): merge revision(s) c15cddd1d515c5bd8dfe8fb2725e3f723aec63b8: [Backport #16787]
Allow Dir.home to work for non-login procs when $HOME not set
Allow the 'Dir.home' method to reliably locate...
nagachika (Tomoyuki Chikanaga)
04:50 AM Misc #17733: Add peterzhu2118 as a committer
I agree. Go ahead.
Matz.
matz (Yukihiro Matsumoto)
04:33 AM Revision ba6f0879 (git): merge revision(s) abe2e7de4d1f2d5861d7c9ab9c7e778f2ee1dcd2: [Backport #16774]
Don't require sub-word atomics
On some architectures (like RISC-V) sub-word atomics are only available
...
nagachika (Tomoyuki Chikanaga)
04:29 AM Revision c98aa2db (git): merge revision(s) c60aaed1856b2b6f90de0992c34771830019e021: [Backport #17130]
Fix Method#super_method for aliased methods
Previously, Method#super_method looked at the called_id to
...
nagachika (Tomoyuki Chikanaga)
04:19 AM Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting ruby
ruby_2_7 30942fc4d89a04792e9eba7d3c4e5009c54e81da merged revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb. nagachika (Tomoyuki Chikanaga)
04:19 AM Bug #17645: `shorten-64-to-32` errors with Clang 11.1.0 for 32-bit targets w.r.t. `time_t` (maybe Y2038?)
ruby_2_7 9994860dcb56697fad1799128d1493adc06b23c7 merged revision(s) 2a6bfd22468343003463e0cbf91953a01b0dbba5,3ac28de... nagachika (Tomoyuki Chikanaga)
04:19 AM Bug #17658: DNS resolution failure with multiple named resolvers
ruby_2_7 70c3a195f39763dccdf9367d0c9b7e815431a41a merged revision(s) 9682db065158da5fa4ec8a3bc267da45b429b92c. nagachika (Tomoyuki Chikanaga)
04:18 AM Bug #12838: Duplication of UDP packets for DNS responses causing "no address" results for valid hostnames
ruby_2_7 70c3a195f39763dccdf9367d0c9b7e815431a41a merged revision(s) 9682db065158da5fa4ec8a3bc267da45b429b92c. nagachika (Tomoyuki Chikanaga)
04:18 AM Revision 70c3a195 (git): merge revision(s) 9682db065158da5fa4ec8a3bc267da45b429b92c: [Backport #12838] [Backport #17658]
Remove sender/message_id pair after response received in resolv
Once a response for a given DNS request has ...
nagachika (Tomoyuki Chikanaga)
04:02 AM Revision 9994860d (git): merge revision(s) 2a6bfd22468343003463e0cbf91953a01b0dbba5,3ac28de5414c81a0da8c8ec969ea74db5a0f1b0f: [Backport #17645]
Properly convert time_t [Bug #17645]
---
thread_sync.c | 2 +-
1 file changed, 1 insertion(...
nagachika (Tomoyuki Chikanaga)
03:55 AM Bug #17488: Regression in Ruby 3: Hash#key? is non-deterministic when argument uses DelegateClass
I believe 20a8425aa0f9a947e72b06cbd3a2afe9674dd18f is not need to be backported into ruby_2_7, since the test test_an... nagachika (Tomoyuki Chikanaga)
03:49 AM Revision 30942fc4 (git): merge revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb: [Backport #15852]
Destroy VM-wise locks before freeing [Bug #15852]
---
thread.c | 7 -------
vm.c | 2 ++...
nagachika (Tomoyuki Chikanaga)
02:51 AM Misc #17734 (Closed): DevelopersMeeting20210416Japan
# The next dev meeting
**Date: 2021/04/16 13:00-17:00**
Place/Sign-up/Agenda/Log: https://github.com/ruby/dev-mee...
mame (Yusuke Endoh)
02:12 AM Revision 2d6617d3 (git): Fix typos in rhash.h (#4292)
kachick (Kenichi Kamiya)
12:12 AM Revision 4ea9df01 (git): No longer aclocal is used [ci skip]
nobu (Nobuyoshi Nakada)

03/19/2021

11:51 PM Bug #13930 (Assigned): Exception is caught in rescue above ensure
Thanks to @wanabe's insight that this issue is related to the scope of the rescue catch entry, I came up with a pull ... jeremyevans0 (Jeremy Evans)
11:27 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
The Security framework is linked only when it is available but CommonRandom is not.
It is the case that the minimum ...
nobu (Nobuyoshi Nakada)
04:42 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
Looks like we applied the Foundation -> CoreFoundation patch.
What about the Security framework? It's the source of...
rickmark (Rick Mark)
07:41 AM Feature #17730 (Closed): Ruby on macOS transitively links to ~150 dylibs
Applied in changeset commit:git|dc7044eb48f475e5ac34e994e89115052574c451.
----------
Remove unneeded dependencies on...
Anonymous
10:36 PM Revision f9dc5db3 (git): [ruby/irb] Add all lib files automatically
https://github.com/ruby/irb/commit/ecc82336b7 k0kubun (Takashi Kokubun)
07:28 PM Misc #17733 (Closed): Add peterzhu2118 as a committer
Hi,
I'd like to recommend we add @peterzhu2118 as a committer. Peter has been helping with bugs in GC (specifical...
tenderlovemaking (Aaron Patterson)
06:05 PM Revision 2b0e5872 (git): * 2021-03-20 [ci skip]
git[bot]
06:04 PM Revision 1c6f5ca4 (git): configure.ac: enable FORCE_FILESYSTEM for Emscripten
mame (Yusuke Endoh)
02:34 PM Revision 0428c2e7 (git): [ruby/irb] Define "measure" command without forced override
https://github.com/ruby/irb/commit/9587ba13b5 aycabta (aycabta .)
10:50 AM Bug #17732 (Closed): rb_enc_interned_str crashes if called with a not yet loaded encoding
Reported by @yahonda in https://github.com/ruby/ruby/pull/4119#issuecomment-800189841
### The bug
`rb_enc_inter...
byroot (Jean Boussier)
09:56 AM Revision 9e71f1aa (git): Include CommonCrypto/CommonCryptoError.h for old Xcode
nobu (Nobuyoshi Nakada)
06:27 AM Revision dc7044eb (git): Remove unneeded dependencies on macOS [Feature #17730]
Rick Mark
06:23 AM Revision 4ea96f1d (git): Use CommonRandom if available
nobu (Nobuyoshi Nakada)
04:40 AM Bug #17731: Integer downflow with inject/reduce
akr (Akira Tanaka) wrote in #note-5:
> nobu changed it from LONG2NUM to ULONG2NUM at
> https://github.com/ruby/ruby...
marcandre (Marc-Andre Lafortune)
04:22 AM Bug #17731 (Closed): Integer downflow with inject/reduce
Applied in changeset commit:git|a85ed626f18d1014d09fb37eb0a703976c3d2b53.
----------
Fix Enumerable#inject with high...
Anonymous
03:38 AM Bug #17731: Integer downflow with inject/reduce
marcandre (Marc-Andre Lafortune) wrote in #note-3:
> Right, there's a `ULONG2NUM` that seem to assume the subtotal i...
akr (Akira Tanaka)
03:34 AM Bug #17731: Integer downflow with inject/reduce
Removing the letter 'U' fixes it...
https://github.com/ruby/ruby/pull/4288
marcandre (Marc-Andre Lafortune)
03:22 AM Bug #17731: Integer downflow with inject/reduce
Right, there's a `ULONG2NUM` that seem to assume the subtotal is always positive...
I'll make a PR for this
marcandre (Marc-Andre Lafortune)
01:05 AM Bug #17731: Integer downflow with inject/reduce
more interesting samples:
```ruby
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(:+)
#=...
Hanmac (Hans Mackowiak)
01:01 AM Bug #17731: Integer downflow with inject/reduce
Some more interesting samples:
``` ruby
3.0.0 :001 > [0,-2305843009213693953,-2305843009213693953].inject(:+)
=> ...
gaojun (Jun Gao)
12:37 AM Bug #17731 (Closed): Integer downflow with inject/reduce
Test case:
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(:+)
or
([-2**61-1] * 3).inject(...
gaojun (Jun Gao)
04:21 AM Revision a85ed626 (git): Fix Enumerable#inject with high negative fixnums [Bug #17731]
Marc-Andre Lafortune
03:35 AM Revision c576e63e (git): gc.c: Use dedicated APIs for conservative GC in Emscripten
Emscripten provides "emscripten_scan_stack" to get the beginning and end
pointers of the stack for conservative GC.
A...
mame (Yusuke Endoh)
03:32 AM Revision e79b42c9 (git): configure.ac: don't use pthread_sigmask in emscripten
mame (Yusuke Endoh)
03:30 AM Revision d97ed004 (git): configure.ac: avoid spaces in a LDFLAGS option
Seems like it confuses "make ruby" for emscripten. mame (Yusuke Endoh)
 

Also available in: Atom