Project

General

Profile

Activity

From 02/21/2021 to 02/27/2021

02/27/2021

11:07 PM Feature #17638: Support backtracing with the libbacktrace library
The patch attached here is to be applied after the main patch and the patch in #note-1, and is for an experiment of backtracing on Cygwin. To make it work correctly, the use of `sigaltstack(2)` has to be disabled, and thus this is not fo... xtkoba (Tee KOBAYASHI)
10:47 PM Feature #17638: Support backtracing with the libbacktrace library
The patch attached here presents an alternative way of using libbacktrace, in which the return addresses are retrieved by `backtrace(3)` and passed to the libbacktrace functions `backtrace_syminfo` and `backtrace_pcinfo`. This patch has ... xtkoba (Tee KOBAYASHI)
06:58 PM Feature #17660: Expose information about which basic methods have been redefined
Eregon (Benoit Daloze) wrote in #note-2:
> It sounds useful, +1 from me.
> ...
This sound good to me. I wasn't very happy with the name 😄
> Putting it under `RubyVM` increases the issue that `RubyVM` is becoming less and less CRuby-...
tenderlovemaking (Aaron Patterson)
06:52 PM Feature #17660: Expose information about which basic methods have been redefined
Oh, IIUC, knowing if a particular method (basic or not) has been redefined is available in pure Ruby, but not the information about which methods are "basic" methods (for any given Ruby version).
marcandre (Marc-Andre Lafortune)
04:36 PM Feature #17660: Expose information about which basic methods have been redefined
@marcandre the information about redefined basic methods is not available to Ruby or C extensions AFAIK (since it is some kind of VM implementation detail).
I guess your reply reinforces my point that we should clarify this is only ab...
Eregon (Benoit Daloze)
04:28 PM Feature #17660: Expose information about which basic methods have been redefined
I don't object (actually I needed that method for tests in `backports` gem), but I wonder why a C method is preferable to a pure Ruby gem? marcandre (Marc-Andre Lafortune)
03:51 PM Feature #17660: Expose information about which basic methods have been redefined
It sounds useful, +1 from me.
I think we should clarify in the name that only redefined basic methods are reported, and not all redefined methods.
How about `redefined_basic_methods`?
Putting it under `RubyVM` increases the issue th...
Eregon (Benoit Daloze)
12:32 AM Feature #17660: Expose information about which basic methods have been redefined
I forgot to attach the patch, so here it is 😄 tenderlovemaking (Aaron Patterson)
12:30 AM Feature #17660 (Open): Expose information about which basic methods have been redefined
I would like to tell if code is redefining methods that can impact
MRI's optimizations. This commit exposes which basic methods have been
redefined. For example:
```ruby
class Integer
def +(x); x ** self; end
end
p RubyVM....
tenderlovemaking (Aaron Patterson)
06:16 PM Misc #17662: The heredoc pattern used in tests does not syntax highlight correctly in many editors
In the suggested pattern, the here document seems not highlighted nor auto-indented by Emacs Ruby Mode. Would you please also suggest the configuration of Emacs Ruby Mode for the suggested pattern? xtkoba (Tee KOBAYASHI)
04:22 PM Misc #17662 (Assigned): The heredoc pattern used in tests does not syntax highlight correctly in many editors
This heredoc pattern
```ruby
assert_ruby_status([], "#{<<-"begin;"}\n#{<<-'end;'}", bug)
begin;
exit("1" == Thread.start(1, &:to_s).value)
end;
```
completely breaks syntax highlighting in at least:
* GitHub: ...
Eregon (Benoit Daloze)
05:23 PM Feature #17663 (Open): Enumerator#with, an alternative to Enumerator#with_object
**Enumerator#with** yields each element along with the arguments
``` ruby
class Enumerator
def with(*options)
return to_enum(:with, *options) unless defined? yield
each do |entry|
yield entry, *options
end
...
RichOrElse (Ritchie Buitre)
04:42 PM Revision 5c907975 (git): * 2021-02-28 [ci skip]
git[bot]
04:42 PM Revision 8305a484 (git): Add --timeout to try to find hanging spec
Eregon (Benoit Daloze)
04:30 PM Misc #17635: DevelopersMeeting20210317Japan
* [Feature #15752] A dedicated module for experimental features (eregon)
* I'd like to finish this discussion and then we can close it.
* matz said "we need to rewrite our programs when the feature graduated from the experimental s...
Eregon (Benoit Daloze)
04:23 PM Misc #17635: DevelopersMeeting20210317Japan
* [Misc #17662] The heredoc pattern used in tests does not syntax highlight correctly in many editors (eregon)
* Can we use something else in tests?
Eregon (Benoit Daloze)
12:00 PM Revision 36dde35e (git): Update to ruby/spec@37e52e5
Eregon (Benoit Daloze)
08:54 AM Bug #17643: Ruby 3 embedded - no GC methods?
Just following up. nobu any thoughts? I don't see any way of working around this currently when embedding Ruby. cfis (Charlie Savage)
06:01 AM Bug #17504: Allow UTC offset without colons per ISO-8601
ruby_2_7 commit:190ffd8761bec206582095028e5752ae5ccd7587 merged revision(s) commit:f4be7a510eebbe6507ba41d138d7d252f4a68e90,commit:9441f3f97087a4325ee80911859d37da41fa5050. nagachika (Tomoyuki Chikanaga)
04:49 AM Revision bad62355 (git): .github/workflows/macos.yml: Remove pre-installed gems before test on macos Actions.
nagachika (Tomoyuki Chikanaga)
04:46 AM Revision 190ffd87 (git): merge revision(s) f4be7a510eebbe6507ba41d138d7d252f4a68e90,9441f3f97087a4325ee80911859d37da41fa5050: [Backport #17504]
Added tests for Time#getlocal with UTC offset
---
test/ruby/test_time.rb | 8 ++++++++
1 file changed, 8 insertions(+)
Allow UTC offset without colons per ISO-8601 [Bug #17504]
---
tes...
nagachika (Tomoyuki Chikanaga)
02:46 AM Bug #17661: IO#each will segfault when if file is closed inside an `each_byte` block
Probably `'s|http://||'` to the reproducer? xtkoba (Tee KOBAYASHI)
12:45 AM Bug #17661 (Closed): IO#each will segfault when if file is closed inside an `each_byte` block
As reported here: https://twitter.com/asterite/status/1363487990203506689 when iterating through a file's contents with #each_byte, if the filehandle is closed inside of the block yielded to by #each byte, this condition is not detected,... tenderlovemaking (Aaron Patterson)
12:32 AM Bug #17585: DWARF5 support?
A minor mod to the patch in #note-13 (due to an issue similar to Bug #17645):
```
--- a/addr2line.c
+++ b/addr2line.c
@@ -1463,7 +1463,7 @@
}
break;
case DW_RLE_base_add...
xtkoba (Tee KOBAYASHI)
12:15 AM Bug #17652: GC compaction crash on mprotect
It seems that the `addr` argument for Cygwin's `munmap(2)` must be aligned to 64KB boundaries. A patch is attached to conform to this. xtkoba (Tee KOBAYASHI)

02/26/2021

11:07 PM Bug #4405 (Closed): WIN32OLE & Threads incompatible
From my testing, this was fixed between Ruby 1.9.3 and Ruby 2.0, printing WIN32OLE object instead of raising an exception. It still works on Ruby 3.0, so I think this can be closed. jeremyevans0 (Jeremy Evans)
10:55 PM Bug #5771 (Closed): WIN32OLERuntimeError using 1.9.2
I tried the example code in Ruby 2.6, Ruby 2.7, and Ruby 3.0. on Windows 10, and got the expected output each time (Internet Explorer opened), OK output on console. If you think this is still an issue with a supported version of Ruby an... jeremyevans0 (Jeremy Evans)
10:50 PM Bug #7758 (Closed): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
I cannot reproduce this bug on Windows 10 using Ruby 1.9.3, Ruby 2.0, Ruby 2.1, or Ruby 3.0. Windows 7 is now out of support. If you think this is still an issue with a supported version of Ruby and Windows, please reopen. jeremyevans0 (Jeremy Evans)
10:21 PM Bug #9016 (Closed): String#encoding is lying?
As Ruby 3.0 uses UTF-8 for ARGV, this is fixed.
With modified example:
```ruby
puts "Encoding of argument is reported as #{ARGV[0].encoding} and as #{ARGV[0].valid_encoding? ? "valid" : "invalid"}."
puts "Let us inspect the a-til...
jeremyevans0 (Jeremy Evans)
10:12 PM Bug #9930 (Closed): unicode filenames somehow don't work
As of Ruby 3.0, ARGV values are in UTF-8 encoding by default on Windows. jeremyevans0 (Jeremy Evans)
10:09 PM Bug #9715 (Closed): ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
As of Ruby 3.0, ENV values are now UTF-8 encoded on Windows. jeremyevans0 (Jeremy Evans)
10:07 PM Bug #9877 (Rejected): IRB::OutputMethod defines "pp", but it's actually "p"
This definitely isn't a bug, and I don't think it's worth breaking backwards compatibility for this consistency, so I'm going to reject this. If you would still like the change made, please submit a pull request to https://github.com/ru... jeremyevans0 (Jeremy Evans)
09:59 PM Bug #9931 (Closed): irb: Really weird behavior for x = "#{x\"}" (ex: irb(main:009:-4))
As of Ruby 3.0, I think this is fixed:
```
$ irb30
irb(main):001:0" x = "#{x\"}"
irb(main):002:0"
irb(main):003:0" }
irb(main):004:0" "
Traceback (most recent call last):
3: from /usr/local/bin/irb30:23:in `<main>'
...
jeremyevans0 (Jeremy Evans)
09:51 PM Revision dbea0be1 (git): [ruby/irb] Update help message for next context-mode of 4
While here, fixing tab/space issues in help message, and sync
rdoc for IRB class to match the help message.
https://github.com/ruby/irb/commit/ef8e3901cc
jeremyevans (Jeremy Evans)
09:38 PM Bug #13094 (Closed): Zlib::GzipReader eof?がfalseなのにgetsでnilが返ってくる
jeremyevans0 (Jeremy Evans)
09:21 PM Bug #14094 (Closed): IRB does not obey frame-level visibility modifiers
This was fixed in Ruby 3.0, with the change of the default irb context mode from 3 to 4. jeremyevans0 (Jeremy Evans)
09:03 PM Bug #15433 (Closed): OpenStruct NameError vs NoMethodError spec fails for method_missing
jeremyevans0 (Jeremy Evans)
08:55 PM Bug #15465: Tests failed on i386-cygwin
fd0 (Daisuke Fujimura) wrote in #note-2:
> In case of `make btest`, test_massign.rb and test_thread.rb succeeded.
> ...
I think that defeats the purpose of the test. The test is specifically to test with the smallest possible machine...
jeremyevans0 (Jeremy Evans)
08:42 PM Bug #15579 (Closed): make step when building ruby 2.4.5 on AIX 7.1 results in a Segmentation fault : ruby-2.4.5/lib/rdoc/markup/parser.rb:325
jeremyevans0 (Jeremy Evans)
08:31 PM Bug #16685 (Closed): IRB auto indent does not work for single-line method definitions
This behavior seems to have been fixed after the release of Ruby 3.0. I'm guessing this fix has already been backported and will make Ruby 3.0.1, but @aycabta could probably confirm that. jeremyevans0 (Jeremy Evans)
08:22 PM Bug #16679 (Closed): Test of Ruby fails under multiple OS user userland installations
jeremyevans0 (Jeremy Evans)
08:20 PM Bug #16814 (Closed): Segmentation fault in GC while running test/ruby/test_fiber.rb on s390x
jeremyevans0 (Jeremy Evans)
08:16 PM Bug #16849 (Closed): ObjectSpace.trace_object_allocations_stop fails if called before ObjectSpace.trace_object_allocations_start
This fix was merged at commit:a74df67244199d1fd1f7a20b49dd5a096d2a13a2. jeremyevans0 (Jeremy Evans)
06:23 PM Bug #17659 (Closed): Ractor: can't call io/wait methods
It seems that I can use IO.select inside a ractor, but not call IO.wait_writable, which seems odd.
```ruby
require "io/wait"
ractors = []
1.times do
ractors << Ractor.new do
$stdout.wait_writable(2) # this fails
# but ...
chucke (Tiago Cardoso)
06:06 PM Revision d45466dc (git): Oops! Add another test and fix to_proc implementation
tenderlovemaking (Aaron Patterson)
05:59 PM Revision 3d8e373a (git): * 2021-02-27 [ci skip]
git[bot]
05:57 PM Revision 0590e9b6 (git): Fiddle::Function responds to to_proc
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:
```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &f
```
tenderlovemaking (Aaron Patterson)
03:47 PM Bug #17658 (Closed): DNS resolution failure with multiple named resolvers
jeremyevans0 (Jeremy Evans)
10:04 AM Bug #17658: DNS resolution failure with multiple named resolvers
Fixing commit is below.
#12838 states that the problem is intermittent and due to duplicate responses. That's not what I have observed: I can consistently reproduce the problem. Can this one-line change + test please be back-ported to...
mcarpenter (Martin Carpenter)
09:38 AM Bug #17658: DNS resolution failure with multiple named resolvers
I tested ruby 3.0.0 and it works fine so I guess something got fixed:
```ruby
Resolv::DNS.new({nameserver: ['dns.google', 'one.one.one.one']}).getresources('example.com', Resolv::DNS::Resource::IN::A)
=> [#<Resolv::DNS::Resource::I...
mcarpenter (Martin Carpenter)
09:32 AM Bug #17658 (Closed): DNS resolution failure with multiple named resolvers
## Description
I created a `Resolv::DNS` resolver with two nameservers described using their domain names. Calling `#getresources` on this for an `A` or `NS` (and possibly other resource types) of domain `example.com` returns an empty...
mcarpenter (Martin Carpenter)
11:48 AM Bug #17657 (Rejected): Starting from ruby 2.3.0, LoadLibraryExA called in extension won't use PATH or current directory to find library and/or it's dependencies
hsbt (Hiroshi SHIBATA)
11:13 AM Bug #17657: Starting from ruby 2.3.0, LoadLibraryExA called in extension won't use PATH or current directory to find library and/or it's dependencies
Well, it turns out I did miss one thing
https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers#-dll-loading
Sorry, please close this issue.
egzi (Krzysztof Egzmont)
05:43 AM Bug #16842: `inspect` prints the UTF-8 character U+0085 (NEXT LINE) verbatim even though it is not printable
Why U+0085 is categorized as `Print` in Ruby is historically Oniguruma treats as that.
https://moriyoshi.hatenablog.com/entry/20090307/1236410006
I'm neutral about the change, but I want the change should have detailed comment or lin...
naruse (Yui NARUSE)
01:32 AM Revision 5c31a4b1 (git): * 2021-02-26 [ci skip]
git[bot]
01:32 AM Revision 46825a74 (git): Backport lib/reline, and lib/irb for 3.0.1 3rd (#4228)
* [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://github.com/ruby/irb/commit/96accf3b95
* [ruby/irb] Suppress colorize on Windows tests
https://github.com/ruby/irb/commit/5be9354cf9
* [ruby/irb] The command "irb_inf...
aycabta (aycabta .)
01:23 AM Bug #17652: GC compaction crash on mprotect
Changes made for this issue seem to break the Cygwin builds (for both i686 and x86_64). A backtrace for `miniruby` (without any options) from GDB:
```
Thread 1 received signal SIGSEGV, Segmentation fault.
heap_page_allocate (objspace=...
xtkoba (Tee KOBAYASHI)
12:31 AM Revision cfc23903 (git): Revert "Add tests for bug 17652"
This reverts commit a9920e7782f225b97e173a88640fe9e116b9964f. tenderlovemaking (Aaron Patterson)

02/25/2021

11:54 PM Bug #16842 (Assigned): `inspect` prints the UTF-8 character U+0085 (NEXT LINE) verbatim even though it is not printable
Behavior here seems to be dependent on the encoding:
```
$ LC_ALL=C ruby -e "p 0x85.chr(Encoding::UTF_8).inspect.b"
"\"\\u0085\""
$ LC_ALL=en_US.UTF-8 ruby -e "p 0x85.chr(Encoding::UTF_8).inspect.b"
"\"\xC2\x85\""
```
I've s...
jeremyevans0 (Jeremy Evans)
11:20 PM Bug #17027 (Closed): Connection leak possibility in Net::FTP#transfercmd
The original pull request was closed, but I committed a similar fix: https://github.com/ruby/net-ftp/pull/6 jeremyevans0 (Jeremy Evans)
10:27 PM Bug #16950: Stop nonsense keyword argument warnings in 2.6
@usa It looks like this hasn't yet been fixed in Ruby 2.6. Is it possible to fix this in Ruby 2.6 before Ruby 2.6 goes into security maintenance mode? jeremyevans0 (Jeremy Evans)
10:16 PM Bug #16623 (Closed): Windows ENV encoding
jeremyevans0 (Jeremy Evans)
10:16 PM Bug #16970 (Closed): Encoding of ENV value returns ASCII-8BIT in Ruby2.6 or later
Ruby 3.0 uses UTF-8 for ENV values on Windows by default, even if the code page is not UTF-8. So I think this and #16623 can be closed. jeremyevans0 (Jeremy Evans)
09:18 PM Bug #17585: DWARF5 support?
A (revised) patch is attached to avoid segfaults with GCC's DWARF 5.
In summary, there are three changes:
(1) correct the interpretation of `DW_LNS_advance_pc` statements when the minimum instruction length is not equal to 1 (which...
xtkoba (Tee KOBAYASHI)
08:24 PM Revision f0743dd2 (git): [ruby/reline] Version 0.2.4
https://github.com/ruby/reline/commit/462f971bd3 aycabta (aycabta .)
08:18 PM Bug #17003 (Closed): Segfault during bundler specs on Windows
jeremyevans0 (Jeremy Evans)
07:32 PM Bug #17657 (Rejected): Starting from ruby 2.3.0, LoadLibraryExA called in extension won't use PATH or current directory to find library and/or it's dependencies
I'm on windows 10 pro. The sample code runs successfully on ruby up to 2.2.5.
On newer versions I get "cannot load such file". The fallowing documentation lists PATH environment variable as one of the search paths, that are used to loc...
egzi (Krzysztof Egzmont)
07:02 PM Revision 04154b65 (git): * 2021-02-26 [ci skip]
git[bot]
07:01 PM Revision a9920e77 (git): Add tests for bug 17652
peterzhu2118 (Peter Zhu)
07:01 PM Revision 1c0e79e8 (git): Disable auto compaction on platforms that do not support it
peterzhu2118 (Peter Zhu)
07:01 PM Revision 1e135489 (git): Use mmap for allocating heap pages
peterzhu2118 (Peter Zhu)
05:35 PM Bug #17057 (Closed): CGI different behaviour with C vs Ruby version
I've merged the patch in the pull request after adding a test for it: https://github.com/ruby/cgi/pull/4 jeremyevans0 (Jeremy Evans)
05:08 PM Bug #17102 (Closed): openssl/buffering.rb:182: [BUG] Segmentation fault at 0x00001fa0fd774000
jeremyevans0 (Jeremy Evans)
05:05 PM Bug #17655 (Feedback): Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
Can you please test with the master branch to see if this issue has been resolved? If it still is present in the master branch, please try to develop a minimal self-contained reproducible example. jeremyevans0 (Jeremy Evans)
07:48 AM Bug #17655: Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
This reminds me #17536 vo.x (Vit Ondruch)
01:11 PM Revision fda162c7 (git): [ruby/irb] Version 1.3.4
https://github.com/ruby/irb/commit/ab9852ccc5 aycabta (aycabta .)
07:26 AM Revision 294c244a (git): rb_random_int: ended before it begins
It existed since f3d022543ef2afde3d53e7f6b3028eafe39d0ef4 until
96760236079b15674a6322a2ca41b1528b51afbd. No official releases included
the actual function. The declaration shall be deleted.
shyouhei (Shyouhei Urabe)
07:10 AM Bug #17653 (Closed): SEGFAULT in ossl_ssl_read_internal
vo.x (Vit Ondruch) wrote:
> ~~~
> ...
This sounds like the bug in Random fixed in master a while ago: https://github.com/ruby/ruby/commit/265c0022390e3dcd4ff692fc77d29b94e652c877
I'm attaching the commit for backporting to 3.0 since...
rhenium (Kazuki Yamaguchi)
02:22 AM Bug #17105: A single `return` can return to two different places in a proc inside a lambda inside a method
I added a pull request to fix this: https://github.com/ruby/ruby/pull/4223 jeremyevans0 (Jeremy Evans)

02/24/2021

11:23 PM Bug #17656 (Feedback): Improper functions shown in C level backtrace information
The following is an example of C backtrace output on aarch64-linux, where `sig_do_nothing` is shown in spite of segfault:
```
-- C level backtrace information -------------------------------------------
/var/tmp/build.debug/aarch64.cl...
xtkoba (Tee KOBAYASHI)
10:53 PM Bug #17655: Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
This looks like the method which caused the seg fault on line 317
``` ruby
# ~/.rvm/gems/ruby-3.0.0/gems/actionpack-6.1.2.1/lib/action_dispatch/routing/route_set.rb
--316 def define_url_helper(mod, name, helper, url_str...
jlevnhv (Josh Levinson)
10:50 PM Bug #17655: Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
Rails -v 6.1.2.1
jlevnhv (Josh Levinson)
10:07 PM Bug #17655 (Closed): Experiencing Repeated Segmentation Faults Using Puma with Ruby 3.0.0
Issue occurred with Puma and Ruby 3.0.0. I've attached the text scrollback from Puma, it's quite long. jlevnhv (Josh Levinson)
09:44 PM Revision 08d5db40 (git): Reverting PR #4221
It seems this breaks tests on Solaris, so I'm reverting it until we
figure out the right fix.
http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20210224T210007Z.fail.html.gz
tenderlovemaking (Aaron Patterson)
08:25 PM Revision f3c8e477 (git): * 2021-02-25 [ci skip]
git[bot]
08:25 PM Revision 59fb5d4f (git): Add tests for bug 17652
peterzhu2118 (Peter Zhu)
08:25 PM Revision a80366c9 (git): Disable auto compaction on platforms that do not support it
peterzhu2118 (Peter Zhu)
08:25 PM Revision 785f5eb8 (git): Use mmap for allocating heap pages
peterzhu2118 (Peter Zhu)
06:37 PM Bug #17486: Build fails on darwin due to libtool being removed
charlesbjohnson (Charles Johnson) wrote in #note-8:
> nobu (Nobuyoshi Nakada) wrote in #note-7:
> ...
Good news is that I was able to build 3.0.0. The culprit appeared to be that I'm using the GNU `coreutils` and related packages (ie. ...
charlesbjohnson (Charles Johnson)
06:40 AM Bug #17486: Build fails on darwin due to libtool being removed
nobu (Nobuyoshi Nakada) wrote in #note-7:
> Could you show mkmf.log file for a failed extension?
Here's what I have for `ext/bigdecimal/mkmf.log`: https://gist.github.com/charlesbjohnson/1b280cd5fe041824de68dd04bc6fafe1
charlesbjohnson (Charles Johnson)
05:12 PM Feature #17592 (Assigned): Ractor should allowing reading shareable class instance variables
This has been accepted 🎉
Follow-up question: could we introduce this change in 3.0.x line? Otherwise we have to wait until 3.1 and many developers might resort to the `const_set` hack in the meantime...
marcandre (Marc-Andre Lafortune)
03:49 PM Bug #17654 (Third Party's Issue): doc: trailing comments
ruby-doc.org is not an official Ruby site. They may need to update their version of rdoc, as this is related to a bug that was fixed in 2018. Both of these show up correctly on the official Ruby documentation site:
https://docs.ruby-...
jeremyevans0 (Jeremy Evans)
02:04 PM Bug #17654 (Third Party's Issue): doc: trailing comments
Several doc pages show bits that should clearly not be there. For instance :
In https://ruby-doc.org/stdlib-3.0.0/libdoc/csv/rdoc/CSV.html you can read
```
frozen_string_literal: true
frozen_string_literal: true
```
In h...
akim (Akim Demaille)
12:22 PM Bug #17653: SEGFAULT in ossl_ssl_read_internal
I should also mention, that the failure typically happens [here](https://github.com/excon/excon/blob/master/tests/test_helper.rb#L94):
~~~
tests('response.body').returns("5000000") do
response = connection.request(:method => :post...
vo.x (Vit Ondruch)
11:39 AM Bug #17653 (Closed): SEGFAULT in ossl_ssl_read_internal
Trying to run [excon] test suite agains Ruby 3.0, it mysteriously [fails] from time to time. Digging deeper and executing the [Rack] server on background with debug option, I started to observer this error:
~~~
... snip ...
/usr/s...
vo.x (Vit Ondruch)
11:01 AM Revision 09f284c0 (git): Update bundled_gems
znz (Kazuhiro NISHIYAMA)

02/23/2021

11:51 PM Bug #17556: ruby 2.7.2 ::YAML.dump ArgumentError: invalid value for Integer(): "20210101_"
Hello, when will this fix be available in the ruby 2.7 release branch? kicktheken (Kenneth Chan)
10:49 PM Bug #17394: TCPServer is not thread safe on win32
I've prepared backports for `ruby_3_0` and `ruby_2_7` on github, but `ruby_2_6` is not using github, so i am going to attach it here. puchuu (Andrew Aladjev)
09:10 PM Bug #17394 (Closed): TCPServer is not thread safe on win32
Fix merged at commit:0d76636117c99921ac7c43293ba7962d22e72fbd . jeremyevans0 (Jeremy Evans)
09:54 PM Feature #17651 (Closed): CSV::Row pattern matching
Eregon (Benoit Daloze)
04:10 PM Feature #17651: CSV::Row pattern matching
Apologies this can be closed, I've opened an issue on the csv repository. kddnewton (Kevin Newton)
02:16 PM Feature #17651: CSV::Row pattern matching
I'd like to be able to use pattern matching with CSV parsing.
I've added the PR here: https://github.com/ruby/ruby/pull/4215.
kddnewton (Kevin Newton)
02:15 PM Feature #17651 (Closed): CSV::Row pattern matching
kddnewton (Kevin Newton)
09:38 PM Bug #17161 (Closed): [BUG] object allocation during garbage collection phase
jeremyevans0 (Jeremy Evans)
09:34 PM Bug #17652 (Closed): GC compaction crash on mprotect
# GitHub PR: ~~https://github.com/ruby/ruby/pull/4221~~ https://github.com/ruby/ruby/pull/4227
# Issue
GC compaction will crash on some pages due to a failing `mprotect` call. According to the `mprotect` documentation:
> POSIX s...
peterzhu2118 (Peter Zhu)
09:12 PM Bug #17204 (Closed): Segmentation fault in 2.7.1p83
jeremyevans0 (Jeremy Evans)
08:45 PM Bug #17554 (Closed): [PATCH] Fix ObjectSpace.dump to include singleton class name
It looks like this was fixed in a different way by commit:3a888398a661d7dc3cbcc21b8983809905b07adb . jeremyevans0 (Jeremy Evans)
08:36 PM Bug #17584: Segmentation fault with Ruby 3.0
@hsbt Does this error occur without `-j` (e.g. without JIT support)? Is it possible to provide a self contained example? jeremyevans0 (Jeremy Evans)
07:09 PM Revision 9d8c66fd (git): rb_fiber_terminate never returns
nobu (Nobuyoshi Nakada)
07:02 PM Revision 75fbea91 (git): * 2021-02-24 [ci skip]
git[bot]
06:13 PM Revision a12e9508 (git): Revert "Enclose crtitical sections in `thread_exclusive` block"
19cc24b34b0490b7c2779eec521fe0089e05f183 and fixups. nobu (Nobuyoshi Nakada)
05:14 PM Feature #13303: String#any? as !String#empty?
Related to #17330 -> `non(&:empty?)` Dan0042 (Daniel DeLorme)
02:11 PM Revision 7563d542 (git): Use the system getenv in setup_debug_log
As ruby_set_debug_option() is called before ruby_sysinit(),
CRITICAL_SECTIONs are not initialized yet.
nobu (Nobuyoshi Nakada)
12:39 PM Feature #16989: Sets: need ♥️
I don't think mixing Hash and Set is good at all. They have fundamentally different APIs. Eregon (Benoit Daloze)
12:23 PM Revision 819dd464 (git): Fixed commit miss at 41eb4fbf86e7ae9c9ff993e07a19fa44eb74be9b
nobu (Nobuyoshi Nakada)
12:19 PM Revision 5a4742a0 (git): Make uenvarea thread exclusive
nobu (Nobuyoshi Nakada)
11:46 AM Revision 41eb4fbf (git): Fixed commit miss at 19cc24b34b0490b7c2779eec521fe0089e05f183
nobu (Nobuyoshi Nakada)
10:35 AM Bug #14480: miniruby crashing when compiled with -O2 or -O1 on aarch64
The main issue might be resolved by the following commit to GCC:
https://gcc.gnu.org/git/?p=gcc.git&a=commit;h=25403c416e5f12d681d1fc45a8789d19ab40297f
(see also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84521#c29)
IMHO, the use ...
xtkoba (Tee KOBAYASHI)
10:28 AM Revision da18d6f0 (git): Constified possible data
nobu (Nobuyoshi Nakada)
10:03 AM Revision 19cc24b3 (git): Enclose crtitical sections in `thread_exclusive` block
nobu (Nobuyoshi Nakada)
07:46 AM Revision b956efdc (git): Drop obsoleted ci skip checks
https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/ k0kubun (Takashi Kokubun)
07:45 AM Revision 95251dc8 (git): Drop check_branch CI job
Now that GitHub Actions always skips any job if [ci skip] is given
regardless of our CI config, we cannot merge such PRs like https://github.com/ruby/ruby/pull/4211
unless you're an admin.
https://github.blog/changelog/2021-02-08-github-...
k0kubun (Takashi Kokubun)
07:20 AM Revision 0d766361 (git): added mutexes for socket and connection lists on win32
puchuu (Andrew Aladjev)
01:48 AM Revision 09c74a17 (git): [DOC] Fix copy+paste mistake [ci skip]
It was introduced in commit 089b7a84606925e885fe91050483a352735aa91e . larskanis (Lars Kanis)
12:23 AM Bug #17619: if false foo=42; end creates a foo local variable set to nil
josh.cheek (Josh Cheek) wrote in #note-9:
> It's intentional. Eg what if you set the same variable in both branches? Then it would be clearer that you are expecting the variable to be visible outside the scope of the conditional.
> ...
I...
Student (Nathan Zook)

02/22/2021

11:48 PM Feature #16989: Sets: need ♥️
marcandre (Marc-Andre Lafortune) wrote in #note-31:
> I'm sorry, I am completely confused by this discussion, I can't make sense of it.
> ...
THIS.
Sets are in no way related to Hashes. The fact that they are/can be *implemented* a...
Student (Nathan Zook)
11:39 PM Bug #17649: `defined?` invokes method once for each syntactic element around it
I submitted a pull request that should fix this: https://github.com/ruby/ruby/pull/4213 jeremyevans0 (Jeremy Evans)
11:37 PM Feature #16990: Sets: operators compatibility with Array
mame (Yusuke Endoh) wrote in #note-9:
> I expect that `ary + set` return a Set, not an Array, unless it raises an exception.
> ...
I found implicit conversions of values in K&R to be an abomination BEFORE I became aware of the many, ma...
Student (Nathan Zook)
10:58 PM Bug #17590 (Closed): `M.prepend M` has hidden side effect
Applied in changeset commit:git|58e82206057f2a1644b69ac3631016009ae48590.
----------
Check for cyclic prepend before making origin
It's important to only make the origin when the prepend goes
through, as the precense of the origin info...
alanwu (Alan Wu)
10:58 PM Revision 7d4a3ac0 (git): * 2021-02-23 [ci skip]
git[bot]
10:57 PM Revision 58e82206 (git): Check for cyclic prepend before making origin
It's important to only make the origin when the prepend goes
through, as the precense of the origin informs whether to do an
origin backfill.
This plus 2d877327e fix [Bug #17590].
alanwu (Alan Wu)
10:44 PM Bug #17394: TCPServer is not thread safe on win32
Added fix https://github.com/ruby/ruby/pull/4212 puchuu (Andrew Aladjev)
07:18 PM Bug #17650 (Closed): TracePoint doesn't receive :fiber_switch events when raising exceptions
PR merged at commit:3ee4fa9491d0b2b5fb40deea8e93e797924de789. jeremyevans0 (Jeremy Evans)
07:16 PM Bug #17648 (Rejected): `__builtin_longjmp` must not be called from the same function calling `__builtin_setjmp`
jeremyevans0 (Jeremy Evans)
11:51 AM Bug #16338: gemspec stub EOF separators throw warning
It's commit:69ec3f70fab0c1c537c68fb135cc315181b1d750, and had been reverted already soon. nobu (Nobuyoshi Nakada)
09:19 AM Bug #16338 (Closed): gemspec stub EOF separators throw warning
There is no feedback over the 1year. hsbt (Hiroshi SHIBATA)
10:56 AM Bug #17599: [BUG] try to mark T_NONE object when object allocation tracing is enabled
Ok, so @tenderlove identified https://github.com/ruby/ruby/commit/100e464bee46ae71ef048ed85a9bdd012935a3f7 as the second commit that need to be backported to fix this issue. byroot (Jean Boussier)
10:48 AM Revision 67d26194 (git): Expand final path name buffer for namespace prefix
As final path name includes the namespace prefix, so expand room
for it in path name buffer.
nobu (Nobuyoshi Nakada)
08:07 AM Bug #17607: ChildProcess vs RUBY_PIPE_NONBLOCK_DEFAULT
I am sure that the behavior changed and I'd like to better understand why. Unfortunately, the analysis is beyond my knowledge. Changing Childprocess implementation might be the right solution after all, but not without understanding the ... vo.x (Vit Ondruch)
06:11 AM Feature #13303: String#any? as !String#empty?
"#any?" is preferred, since the same method name is harder to forget and less confusing.
If the Array, Hash and String will have new methods, i propose "#having?" as the new method name.
arimay (yasuhiro arima)
04:24 AM Revision 4e32a4ab (git): Search subclasses from constants
nobu (Nobuyoshi Nakada)
03:19 AM Revision a7dda449 (git): [ruby/reline] fix Reline::Windows.getconsolemode buffer
use double quotes to properly convert the \000 escape sequence.
https://github.com/ruby/reline/commit/236dfe5683
cremno (cremno phobia)
03:18 AM Revision 089b7a84 (git): Improve extension docs, remove deprecated rb_cData [ci skip]
rb_cData is deprecated and the characteristic alloc_func was already
removed in ruby-3.0. So this updates the recommendation accordingly.
It also adds fdbm_alloc() in order to show the allocation process
and to gives TypedData_Make_Stru...
larskanis (Lars Kanis)
01:50 AM Bug #17467: What makes strip() and lstrip() not stripping \u0000 from beginning of the string?
Japanese reference manual mentions treatment `"\0"`.
(for example: https://docs.ruby-lang.org/ja/latest/method/String/i/strip.html )
If this will backport to released versions, it affects version branching in Japanese reference manua...
znz (Kazuhiro NISHIYAMA)
12:15 AM Feature #16428: Add Array#uniq?, Enumerable#uniq?
I was just going to post this suggestion, but saw that it was already here.
`uniq?` could be helpful, for example, where you are loading objects from an external source (e.g. from JSON or YAML), and you need to verify that the objects...
keithrbennett (Keith Bennett)

02/21/2021

09:33 PM Revision 431f531b (git): * 2021-02-22 [ci skip]
git[bot]
09:33 PM Revision 3ee4fa94 (git): Send :fiber_switch event for almost every fiber_switch (#4207)
With this patch, TracePoint receives a `:fiber_switch` event for
_almost_ every fiber switch. Previously, it would not be sent when an
exception was going to be raised. Now the event should only be blockable
by an interrupt (including `...
nevans (Nicholas Evans)
08:12 PM Bug #17511: Segmentation fault when compiled with -O2 or higher on ARM Android
I revisited this issue, and probably found another workaround: to add `volatile` qualifier to the `ec` argument of the functions `rb_ec_tag_jump` and `vm_exec`, as in the attached patch. I have no idea exactly what it means, and I don't ... xtkoba (Tee KOBAYASHI)
05:34 PM Bug #17649: `defined?` invokes method once for each syntactic element around it
The reason seems to be because the generated iseq doesn't cache the intermediate calculations:
```sh
$ ruby -e 'puts RubyVM::InstructionSequence.new("defined? a.b.c.d.e.f").disasm'
== disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(1,...
josh.cheek (Josh Cheek)
04:13 PM Bug #17649: `defined?` invokes method once for each syntactic element around it
I should have clarified my expectation: On the ones that call `defined?` I expected the number of calls to be 1 less than the ones that don't call `defined?` josh.cheek (Josh Cheek)
03:51 AM Bug #17649 (Closed): `defined?` invokes method once for each syntactic element around it
Honestly, I was surprised `defined?` works with expressions at all. I wouldn't object to this feature being removed, it leads to strange situations where it invokes methods, like below, and silently returns wrong results, if any of the m... josh.cheek (Josh Cheek)
04:33 PM Bug #17650 (Closed): TracePoint doesn't receive :fiber_switch events when raising exceptions
It seems to me the `:fiber_switch` event should be raised for *every* fiber switch, unless there's some very important reason not to, e.g. maybe it makes sense to skip the event when a fiber terminates with a fatal error. In addition to... nevans (Nicholas Evans)
02:20 PM Bug #17648: `__builtin_longjmp` must not be called from the same function calling `__builtin_setjmp`
This workaround seems not necessary. Compilers seem very much aware of this situation. So please reject it. Sorry for the confusion. xtkoba (Tee KOBAYASHI)
05:33 AM Bug #16651: Extensions Do Not Compile on Mingw64 with mingw32-make
With RubyInstaller's I got the following result in the Command Prompt of Windows 10:
```
C:\Ruby30-x64\bin>irb
irb(main):001:0> Dir.pwd
=> "C:/Ruby30-x64/bin"
irb(main):002:0> File.exist?("C:/Ruby30-x64")
=> true
irb(main):003:0> ...
xtkoba (Tee KOBAYASHI)
03:26 AM Bug #17619: if false foo=42; end creates a foo local variable set to nil
It's intentional. Eg what if you set the same variable in both branches? Then it would be clearer that you are expecting the variable to be visible outside the scope of the conditional.
Contrived code example:
```ruby
if eligible?...
josh.cheek (Josh Cheek)
 

Also available in: Atom