Activity
From 03/18/2021 to 03/24/2021
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 "re-introduce with a big picture".
And I'd like add another perspective:
```
upcased = somehash.each_pair.map{|key,... -
10:09 PM Feature #17743: Show argument types in backtrace
- p8 (Petrik de Heus) wrote in #note-3:
> ```
> ...
What about keyword arguments that could have been supplied in any order? What about the block argument, if it was `nil` or not?
> Maybe for Boolean values showing true and false.
... -
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?
```
from hi.rb:2:in `say_hi' called with NilClass, Numeric, String
```
> ...
Values could possibly generate a lot of outp... -
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 think in general this can be useful, but at the same time it's not nearly as useful as a debugger,
and it can be a signifi... -
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)
"hi: #{person.name}"
end
say_hi(nil)
```
It would be helpful if the backtrace contained the types of the argum... -
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.
-
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 returns.
So in general the return value of assignment methods might differ and is probably best to be ignored. -
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-darwin20]
42
```
```console
$ ruby -v -e 'p(STDIN.__send__ :close_on_exec=, 42)'
ruby 3.0.0p0 (2020-12-25 revision 95aff... -
06:31 PM Revision b25361f7 (git): Change heap walking to be safe for object allocation
-
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 backported to Ruby 3.0 before Ruby 3.0.1, otherwise one of the Rails tests will break.
-
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 two changes:
1) Ensure that we don't look beyond the start frame by using
last_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(last... -
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_CompressedHexLinkLocal`.
```
$ ruby -rsocket -e 'p Socket.ip_address_list[8]'
#<Addrinfo: fe80::9856:24ff:fe1b:f759%cni-p... - 03:20 PM Revision 91ab024d (git): * 2021-03-25 [ci skip]
-
03:20 PM Revision 2c3ac0fe (git): Update bundled_gems
-
02:35 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
- @jeremyevans0 indeed that fixes the issue. Thanks a lot!
-
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.
-
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
label
end
p RUBY_VERSION
puts 'raw call'
label_caller
puts 'call from group_by'
[1].group_by { label_caller }
... -
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 deserve consideration.
-
02:14 PM Bug #17665 (Closed): Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
-
02:13 PM Bug #17652 (Closed): GC compaction crash on mprotect
-
02:11 PM Feature #17744: Accumulate `Enumerable#tally` results
- ~~Is there an issue using `merge`?~~
I retract my question, this change sounds simple enough -
01:10 PM Feature #17744 (Closed): Accumulate `Enumerable#tally` results
- A [feature request] at [DevelopersMeeting20200317Japan]:
> * ko1: want to accumulate `Enumerable#tally` results
> ...
[DevelopersMeeting20200317Japan]: https://hackmd.io/nNo0Sb3nRCmQpIwR8XvusA#Other-topics-3
[feature request]: https:/... -
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 including all keywords", but can't find it now.
I believe you're talking about #15049. In #16253 there was also brief talk of... -
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
-
11:13 AM Revision 1f08b0d1 (git): Removed dln_a_out
- a.out format is considered extinct nowadays.
-
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.yield(receive.inspect) } }
r.each{|x| x.send(rand) }
s = r.map{|x| x.take }.min_by(&:size)
puts s
if s.size < 1... -
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 will later be 3.0.1) and can't reproduce there. However I can repro with `3.0.0-p0`. -
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 already been fixed, although I cannot point out exactly when it was fixed.
FWIW, I can reproduce this with Ruby 3.0.0p0, a... -
07:39 AM Feature #17685 (Feedback): Marshal format for out of band buffer objects
-
07:10 AM Revision 2dcbc6ef (git): [ruby/irb] fix completion test when out-of-place build
-
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
-
06:43 AM Revision 758f2b35 (git): [ruby/reline] Support preposing and postposing for Reline.completion_proc
- https://github.com/ruby/reline/commit/1f469de90c
-
06:43 AM Revision 4b33d860 (git): [ruby/reline] Reline.delete_text removes the current line in multiline
- https://github.com/ruby/reline/commit/da90c094a1
-
06:43 AM Revision b764c8d3 (git): [ruby/reline] Add Reline.ungetc to control buffer
- https://github.com/ruby/reline/commit/43ac03c624
-
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_mkdir - /home/runner/.config/irb
``` -
06:11 AM Revision 0927756e (git): [ruby/irb] Complete require and require_relative
- https://github.com/ruby/irb/commit/1c61178b4c
-
05:39 AM Revision 0259ee60 (git): [ruby/irb] Change ripper_lex_without_warning to a class method
- https://github.com/ruby/irb/commit/d9f8abc17e
-
04:23 AM Revision c9d0053e (git): Fixed compilation errors when USE_DLN_A_OUT
-
04:02 AM Revision 850448ab (git): Fix leaked file descriptor in passwd test
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 following code:
require "benchmark"; r = []; 3.times.map{ r << Ractor.new{ p receive } }; r.map{|x| x.send(rand) }; rand
... - 08:10 PM Revision 061edf6b (git): * 2021-03-24 [ci skip]
-
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 initialize
@a = 1
@b = 1
@c = 1
@d = 1
@e = 1
@f = 1
@g = 1
end
end
k.new... - 07:52 PM Revision d3779ab3 (git): * 2021-03-24 [ci skip]
-
07:52 PM Revision 2efda212 (git): Merge RubyGems-3.2.15 and Bundler-2.2.15 (#4311)
-
08:20 AM Revision 607aa117 (git): Ignore useless separators preceding a file encoding comment
-
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.
Unless you think other string functions are vulnerable to the same issue? -
07:44 AM Revision a58f9aa3 (git): Assertion for colon-separated encoding pragma
-
07:32 AM Revision c83bd2a5 (git): Refined failure messages in TestFileExhaustive#test_test
-
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://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210322T171707Z.fail.html.gz
This change adds some rescue cluases... -
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 the limit to 300 sec on
Solaris.
BTW, 180 sec. is too long for other normal environments, so this reverts
Related to 6ab7d... -
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 loaded modules for startup routines.
I'm not sure if still it is true though.
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 can be happen in earlier than 3.0 too. -
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?
Either way this ticket can now be closed. -
11:20 PM Revision 4bc09c96 (git): Suppress verbose messages
- Get rid of warnings in the parallel test.
```
unknown command: "Switch to inspect mode."
``` -
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:
> ...
Ruby also has UTF-8-MAC, but HFS+/APFS's one is sometimes updated.
We first used our own encoding table for the usage, but finally we switched to use... -
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:
> ...
Nevermind - I just recompiled ruby from head. Looks like the linking is correct now. Must have been Foundation brining in Security causing my co... -
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:
> ...
Yep - the normalization is called `UTF-8-MAC` on libicu. This implies we can use other code to do this. Also since CF is opensource we could just b... -
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 CommonRandom is not.
> ...
From compiling recently it looks like `Security.framework` is always linked (see the static linkage r... -
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:
> ...
Why it uses `CFStringNormalize(m, kCFStringNormalizationFormC);` is because it needs to just the same conversion as HFS+/APFS, which is different from standard... -
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 native ObjC extension so that one could `require 'objc'` to add this to the process.
The extension would link to libob... - 04:30 PM Revision c1497080 (git): * 2021-03-23 [ci skip]
-
04:30 PM Revision 37abe1a2 (git): [Doc] Standardize wording s/sweeped/swept/
- 02:32 PM Revision 816a1d97 (git): coroutine mac m1 update.
- using proper link register and frame pointer which equal x30/x29.
- 02:32 PM Revision 35d30c6a (git): vm dump display return address in the abscence of X30 in Mac ARM64.
- 01:51 PM Revision 5e16c3a1 (git): solaris/illumos build fix.
-
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 pointer exception.
See: https://github.com/ruby/ruby/pull/4119#issuecomment-800189841 -
12:16 PM Revision 5b272a64 (git): [Doc] Fix a typo around Hash#compare_by_identity
-
09:59 AM Revision ad0fa532 (git): [DOC] some methods of Fiber do not need to require anymore [Feature #17407]
-
06:33 AM Revision ec4a41c4 (git): [Doc] Fix a typo s/interseting/interesting/
-
05:10 AM Revision 7d3fdfb2 (git): Hash#transform_values! ensures receiver modifiable in block [Bug #17736]
03/21/2021
- 03:20 PM Revision db0ad483 (git): * 2021-03-22 [ci skip]
-
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 the header and
library paths. -
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 `CFStringNormalize(m, kCFStringNormalizationFormC);` - if we can replace this, Ruby could work with only `libSystem` and `libgmp`... -
08:57 AM Revision cb396d42 (git): Share variables defined in common GNUmakefile also in cygwin/mingw
-
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 -
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/irb/commit/ddb3472ba2 -
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://github.com/ruby/irb/commit/c93ae4be71 -
06:19 AM Revision d0b044a8 (git): [ruby/irb] Fix column overflow on ls output
- https://github.com/ruby/irb/commit/6115754623
-
06:14 AM Feature #17411 (Closed): Allow expressions in pattern matching
- Applied in changeset commit:git|21863470d965b8cc299b1f82417c70d5d26f8ab2.
----------
Pattern matching pin operator against expression [Feature #17411]
This commit is based on the patch by @nobu. -
06:14 AM Revision 21863470 (git): Pattern matching pin operator against expression [Feature #17411]
- This commit is based on the patch by @nobu.
-
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
- 05:27 AM Revision 338d7ec9 (git): * 2021-03-21 [ci skip]
-
05:27 AM Revision ad8d6dcb (git): Revert "merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255:"
- This reverts commit cfd1a17292ae37db4d09c1452a4a84e7fd58e7cf.
-
05:19 AM Revision cfd1a172 (git): merge revision(s) c32375883a696fcf8e9e99875f1339ee5474a255:
- Update for autoconf 2.70
---
configure.ac | 232 +++++++++++++++++------------------
tool/m4/ruby_check_builtin_setjmp.m4 | 8 +-
tool/m4/ruby_check_printf_prefix.m4 | 9 +-
... -
04:40 AM Revision 232433f2 (git): [ruby/irb] Add whereami command
- https://github.com/ruby/irb/commit/bc822e4aac
-
03:59 AM Revision 5f72962a (git): [ruby/irb] Implement ls command
- https://github.com/ruby/irb/commit/19b6c20604
-
02:27 AM Misc #17733: Add peterzhu2118 as a committer
- Thank you user:hsbt, I've sent an email with my information.
-
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/CommitterHowto#What-to-do-for-registering-you-as-a-committer ? -
01:07 AM Revision d36ac283 (git): Ensure the receiver hash modifiable before updating [Bug #17736]
- Close https://github.com/ruby/ruby/pull/4298
-
12:38 AM Revision d319eb60 (git): Add Hash#{update, merge!} test to ensure receiver modifiable in block
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
-
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
-
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. -
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}"
(other constants)
...
CONSTANT InheritedResources CONST_GET NAME "BaseHelper"
``` -
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 issue I raised on the sorbet gem: https://github.com/sorbet/sorbet/issues/4104 -
09:57 PM Revision 54bfa057 (git): Add ins_methods_type_i function
-
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?
-
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 the unsorted array after an exception happens half-way through sorting, we'd need to create a copy to either swap back in ...
-
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
array.sort! do |a, b|
array.freeze if a == 3
1
end
rescue => err
p err #=> #<FrozenError: can't mod... -
05:11 PM Bug #17738: Ruby can still freeze ENV
- I believe so, yes.
-
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/f53d7e4bfd604be6f8131c5460c29f4af16da117, `ENV.freeze` raises TypeError.
But we can still freeze ENV as below.
```ruby
Kernel.instance_method(:fre... - 03:23 PM Revision 2d66f8e0 (git): * 2021-03-21 [ci skip]
-
03:11 PM Revision 298edfa4 (git): Refactor hash aset callback
-
02:53 PM Revision cfadbf2f (git): Add write-barrier in tally
-
02:42 PM Revision 0b6554e6 (git): Refactor hash update callbacks
-
12:00 PM Revision 71ba0963 (git): Remove unneeded declarations
-
11:55 AM Revision 178a2a1a (git): Remove unneeded declarations in bignum.c
-
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 following methods
* Hash#select!
* Hash#filter!
* Hash#keep_if
* Hash#reject!
* Hash#delete_if
I think these are not a... -
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
-
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 modifiable before shrinking [Bug #17736]
* Ensure the receiver is modifiable before shinking [Bug #17736]
* Assert the receive... -
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, 2, 3, 42]
array.select! do
array.freeze
false
end
p array #=> []
```
```ruby
array = [1, 2, 3, 42, 2, 3]... -
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 -
09:07 AM Revision bf3eaf39 (git): Remove unused rb_ast_parse_array declaration
-
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 contents if we broke from the block" do
@hash.transform_keys! do |v|
break if v == :c
v.succ
... -
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}
```
```ruby
hash = {a: 1, b: 2, c: 3}
hash.transform_keys!(){ raise } rescue
p hash #=> {}
```
Is this an intention... -
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: []:permutation(1, 3)>
p [].permutation(1, 3).to_a #=> `permutation': wrong number of arguments (given 2, expected 0..1) (Argumen... -
07:41 AM Revision 16f3ebd7 (git): merge revision(s) 737da8d383e116c83fb356386322626f039deb06:
- Add another missing cast
---
iseq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) -
07:38 AM Revision 23bb717d (git): Partially merged 79df14c04b452411b9d17e26a398e491bca1a811 to suppress compiler warning.
-
07:31 AM Bug #17731: Integer downflow with inject/reduce
- ruby_2_7 364c8595884808315aaec9605bf2423963ed81c0 merged revision(s) a85ed626f18d1014d09fb37eb0a703976c3d2b53.
-
07:30 AM Bug #17729: Fix infinite loop when parsing RUBYLIB with locale-invalid bytes
- ruby_2_7 ec779aa56f4d6df465e721818d73d0d48fdf03f2 merged revision(s) f748b911c9157a0bb86f38280ddfba72a55049b6.
-
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.
-
07:16 AM Revision 364c8595 (git): merge revision(s) a85ed626f18d1014d09fb37eb0a703976c3d2b53: [Backport #17731]
- Fix Enumerable#inject with high negative fixnums [Bug #17731]
---
enum.c | 2 +-
test/ruby/test_enum.rb | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-) -
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 try the
succeeding bytes in that case.
Close https://github.com/ruby/ruby/pull/4281
---
... -
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 visibility of a method in a
singleton class for a class/module that is prepended to and refined
would raise ... -
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.
-
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 changed, 4 insertions(+) -
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.
-
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://bugs.ruby-lang.org/issues/16814> for more details.
---
cont.c | 1 +
1 file changed, 1 insertion(+) -
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.
-
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)
p 'a' == 'b' # => false
```
It seems that `rb_vm_check_redefinition_opt_method` is not working correctly in the... -
06:35 AM Bug #17218: Range#step sometimes behaves unexpectedly with Rational endpoints and increment
- ruby_2_7 82bce422ba9e131e62b528854dea69a6e8cc0c04 merged revision(s) 254bed302752a401b5fcc3b6c65a9c93711d91d6,fad3023e94c45e7f03478732f7641b6f39ba9d12,3156fb0f2c3ebf8229f392c8502c08fe165ab181.
-
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 +
rational.c | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
Fix ArithmeticSequence#last ... -
06:02 AM Bug #17321: Having a singleton class makes cloning imperfect
- ruby_2_7 82d72f14e7071218f3fd710f770d1ba31390f027 merged revision(s) ebb96fa8808317ad53a4977bff26cf755d68077e.
-
06:02 AM Bug #17352: Backport Subsecond of Time::tm should be 0
- ruby_2_7 a85982553935b81de02eb8cca9476df5d4442fd8 merged revision(s) 276f6a225d18561cbe5282b798cb4e416c66079f,95bef7b69a6fb42687a6200b338060be307259f5.
-
06:02 AM Bug #16809: Fiber crashes with --with-coroutine=copy
- ruby_2_7 d84cc717020be1da7d89b6bda02d1427f9593968 merged revision(s) 15e23312f6abcbf1afc6fbbf7917a57a0637f680.
-
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
because I think tests should not corrupt user's data.
And GitHub Actions CI sets `XDG_CONFIG_HOME`
s... -
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 ++++++++++++++++++++++++++++++++----------------
1 file changed, 40 insertions(+), 19 deletions(-) -
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 seconds were doubled when using the timezone
feature of Time in Sequel's named_timezones extension (which uses
... -
05:36 AM Bug #17150: Dumping/loading an Exception object dumps core
- MEMO: 369cfabd5936ccb522f8e95e0f9cc65b59ea4039 seems depend on the preceding changeset 0b81a484f3453082d28a48968a063fd907daa5b5.
0b81a484f3453082d28a48968a063fd907daa5b5 is one of the series fixes about initialization of RBasic::flags. -
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 original object
had an attached singleton class or not.
Consider the following setup:
```
c... -
05:24 AM Bug #17215: Backport for arm64 optimizations that exist for power/x86
- ruby_2_7 6ef46f71c743507a0e2ae0eef14dce0539b0ff52 merged revision(s) 511b55bcefc81c036294dc9a544d14bd342acd3b.
-
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-bit Arm platforms support unaligned accesses.
Running the string benchmarks this change improves performance
... -
04:57 AM Bug #17130: Method#super_method is broken for aliased methods
- ruby_2_7 c98aa2db60f43e839d7a82897c22b5ceecbed417 merged revision(s) c60aaed1856b2b6f90de0992c34771830019e021.
-
04:57 AM Bug #16774: Don't require sub-word atomics
- ruby_2_7 ba6f0879448ebc80c7a595c369c59b6d8dfbdf3e merged revision(s) abe2e7de4d1f2d5861d7c9ab9c7e778f2ee1dcd2.
-
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.
-
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 the user's home directory when
all three of the following are true at the same time:
1. Ruby is ru... -
04:50 AM Misc #17733: Add peterzhu2118 as a committer
- I agree. Go ahead.
Matz.
-
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
when linking against -latomic, but the configure script doesn't do that,
causing the atomic checks to fail an... -
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
determine the method id to use, but that isn't correct for
aliased methods, because the super target depends ... -
04:19 AM Bug #15852: APPLICATION_VERIFIER_LOCKS_LOCK_IN_FREED_HEAP on exiting ruby
- ruby_2_7 30942fc4d89a04792e9eba7d3c4e5009c54e81da merged revision(s) 2a83650b0fd25719fb6c03bfec7bd895734d3ceb.
-
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,3ac28de5414c81a0da8c8ec969ea74db5a0f1b0f.
-
04:19 AM Bug #17658: DNS resolution failure with multiple named resolvers
- ruby_2_7 70c3a195f39763dccdf9367d0c9b7e815431a41a merged revision(s) 9682db065158da5fa4ec8a3bc267da45b429b92c.
-
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.
-
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 been received (which
requires a matching message id), the [sender, message_id] pair
should be removed fr... -
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(+), 1 deletion(-)
Explicitly cast __s64 to time_t [Bug #17645]
A workaround of shorten-64-to-32 error ... -
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_any_hash_fixable passed without the patch to hash.c.
-
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 ++
2 files changed, 2 insertions(+), 7 deletions(-) -
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-meeting-log/blob/master/DevelopersMeeting20210416Japan.md
- Dev meeting *IS NOT* a decision-making place. All decisions ... -
02:12 AM Revision 2d6617d3 (git): Fix typos in rhash.h (#4292)
-
12:12 AM Revision 4ea9df01 (git): No longer aclocal is used [ci skip]
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 request that avoids the issues @wanabe identified in his patch: https://github.com/ruby/ruby/pull/4291. Instead of tryi...
-
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 required macOS version is 10.7(Lion)..10.9(Mavericks).
I'm not sure whether other sources are available on these old ve... -
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 the worst dependencies like Metal, CoreML, etc...
(I know my patch proposal moves HEAD to macOS 10.10 or later, but th... -
07:41 AM Feature #17730 (Closed): Ruby on macOS transitively links to ~150 dylibs - Applied in changeset commit:git|dc7044eb48f475e5ac34e994e89115052574c451.
----------
Remove unneeded dependencies on macOS [Feature #17730] -
10:36 PM Revision f9dc5db3 (git): [ruby/irb] Add all lib files automatically
- https://github.com/ruby/irb/commit/ecc82336b7
-
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 (specifically bugs we found) as well as ObjectSpace issues and improvements. I have been reviewing Peter's work and I think he wou... - 06:05 PM Revision 2b0e5872 (git): * 2021-03-20 [ci skip]
-
06:04 PM Revision 1c6f5ca4 (git): configure.ac: enable FORCE_FILESYSTEM for Emscripten
-
02:34 PM Revision 0428c2e7 (git): [ruby/irb] Define "measure" command without forced override
- https://github.com/ruby/irb/commit/9587ba13b5
-
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_interned_str` doesn't properly handle autoloaded encodings that are not yet loaded:
```
[BUG] Segmentation fault at 0x000... -
09:56 AM Revision 9e71f1aa (git): Include CommonCrypto/CommonCryptoError.h for old Xcode
- 06:27 AM Revision dc7044eb (git): Remove unneeded dependencies on macOS [Feature #17730]
-
06:23 AM Revision 4ea96f1d (git): Use CommonRandom if available
-
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
> ...
Thanks.
The other changes were for counts (always positive) and most were considered as integers. In the `inject` case, the values can be any f... -
04:22 AM Bug #17731 (Closed): Integer downflow with inject/reduce - Applied in changeset commit:git|a85ed626f18d1014d09fb37eb0a703976c3d2b53.
----------
Fix Enumerable#inject with high negative fixnums [Bug #17731] -
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 is always positive...
> ...
nobu changed it from LONG2NUM to ULONG2NUM at
https://github.com/ruby/ruby/commit/6bb70c11b... -
03:34 AM Bug #17731: Integer downflow with inject/reduce
- Removing the letter 'U' fixes it...
https://github.com/ruby/ruby/pull/4288 -
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 -
01:05 AM Bug #17731: Integer downflow with inject/reduce
- more interesting samples:
```ruby
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(:+)
#=> 11529215046068469757
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(&:+)
#=> -6917529027641... -
01:01 AM Bug #17731: Integer downflow with inject/reduce
- Some more interesting samples:
``` ruby
3.0.0 :001 > [0,-2305843009213693953,-2305843009213693953].inject(:+)
=> 13835058055282163710
3.0.0 :002 > [-2305843009213693953,-2305843009213693953].inject(:+)
=> -4611686018427387906
3... -
12:37 AM Bug #17731 (Closed): Integer downflow with inject/reduce
- Test case:
[-2305843009213693953,-2305843009213693953,-2305843009213693953].inject(:+)
or
([-2**61-1] * 3).inject(:+)
Expected Result:
-6917529027641081859
Actual Result:
11529215046068469757
Some clues:
* Downflow seems n... - 04:21 AM Revision a85ed626 (git): Fix Enumerable#inject with high negative fixnums [Bug #17731]
-
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.
Also, "emscripten_scan_registers" allows the GC to mark local variables
in WASM. -
03:32 AM Revision e79b42c9 (git): configure.ac: don't use pthread_sigmask in emscripten
-
03:30 AM Revision d97ed004 (git): configure.ac: avoid spaces in a LDFLAGS option
- Seems like it confuses "make ruby" for emscripten.
03/18/2021
-
11:30 PM Feature #17730: Ruby on macOS transitively links to ~150 dylibs
- `-lobjc` has been intentionally linked to link startup code with Objective-C support, by the request for extension libraries written in it.
-
07:16 PM Feature #17730 (Closed): Ruby on macOS transitively links to ~150 dylibs
- By using `-framework Security` and `-framework Foundation` Ruby 3 pulls in about 150 dylibs when compiled for macOS
By using CoreCrypto / CoreFoundation I was able to reduce this to ~50. This greatly reduces Ruby's surface area and d... -
10:16 PM Bug #17729 (Closed): Fix infinite loop when parsing RUBYLIB with locale-invalid bytes
- Applied in changeset commit:git|f748b911c9157a0bb86f38280ddfba72a55049b6.
----------
Fix infinite loop at illegal sequence [Bug #17729]
As mblen returns -1 on failure, skip the first byte and try the
succeeding bytes in that case.
Clo... -
11:17 AM Bug #17729 (Closed): Fix infinite loop when parsing RUBYLIB with locale-invalid bytes
- https://github.com/ruby/ruby/pull/4281
> `ruby.c` sets up the interpreter `$LOAD_PATH` by parsing a path
> ...
> ``` -
10:15 PM Revision f748b911 (git): Fix infinite loop at illegal sequence [Bug #17729]
- As mblen returns -1 on failure, skip the first byte and try the
succeeding bytes in that case.
Close https://github.com/ruby/ruby/pull/4281 -
10:07 PM Revision cc281bd7 (git): Remove duplicated float_arg defination
-
07:47 PM Misc #17720: Cirrus CI to check non-x86_64 architecture cases by own machines
- Hello there,
I'm founder of Cirrus CI and will be happy to answer any of your questions and help you in any capacity.
Cirrus persistent workers are implemented via Cirrus CLI[1] which is written in Go so we can support any target t... - 07:03 PM Revision dae71be2 (git): * 2021-03-19 [ci skip]
-
07:03 PM Revision b9908ea6 (git): Make a few functions static
-
03:33 PM Bug #17728 (Feedback): [BUG] Segmentation fault at 0x0000000000000000
- The crash report doesn't provide a C-level backtrace of the crashed thread. There are quite a few external C extensions in use, any of which could possibly cause this null pointer dereference. Unfortunately, unless you can provide a re...
-
10:57 AM Bug #17728 (Closed): [BUG] Segmentation fault at 0x0000000000000000
- Hi guys, getting segment fault from time to time. Sorry, don't know the exact reproducing steps. Attached crash reports.
```
Started POST "/graphql" for 127.0.0.1 at 2021-03-18 13:49:07 +0300
/Users/den/.rvm/gems/ruby-3.0.0@RestaAPI... -
02:38 PM Bug #16608: ConditionVariable#wait should return false when timeout exceeded
- That looks like an error of `rbs` actually, cc @soutaro
-
12:06 AM Bug #16608: ConditionVariable#wait should return false when timeout exceeded
- @matz agreed to change the return value of Mutex#sleep at the last developer meeting. However, that breaks a Mutex_m test: https://github.com/ruby/ruby/pull/4256/checks?check_run_id=2135513377#step:15:1295
So the Mutex_m test needs t... -
01:50 PM Bug #17623: irb starts with some local variables already defined
- I think this is a nice solution: https://github.com/ruby/irb/pull/206
-
11:35 AM Bug #16996 (Closed): Hash should avoid doing unnecessary rehash - Applied in changeset commit:git|d094c3ef046aba0bb99fd08bcbc72ff87216e736.
----------
Avoid rehashing in Hash#select/reject [Bug #16996] - 11:34 AM Revision 0ef2923c (git): Avoid rehashing in Hash#replace/dup/initialize_copy [Bug #16996]
- 11:34 AM Revision d094c3ef (git): Avoid rehashing in Hash#select/reject [Bug #16996]
-
09:07 AM Revision 85f99f4b (git): Try to fix errors in TestIRB::TestHistory too
- https://github.com/ruby/actions/runs/2137935523?check_suite_focus=true#step:9:562
```
1) Error:
TestIRB::TestHistory#test_history_concurrent_use:
Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb
/home/runne... -
06:20 AM Revision e0dd0729 (git): Fix errors when XDG_CONFIG_HOME points to non-writable directory
- `$HOME/.config` is not writable on CI
because I think tests should not corrupt user's data.
And GitHub Actions CI sets `XDG_CONFIG_HOME`
since `Version: 20210309.1`.
https://github.com/ruby/actions/runs/2130811016?check_suite_focus=tru... -
04:35 AM Bug #17725: Prepend breaks ability to override optimized methods
- FWIW,
```ruby
# bug17725-test.rb
eval <<EOS
# encoding: ascii-8bit
MY_STRING = ''
EOS
MY_STRING + ''
String.prepend(Module.new)
class String
def + other
'blah blah'
end
end
p 'a' + 'b'
```
gives
```
$ ruby...