Project

General

Profile

Activity

From 02/25/2021 to 03/03/2021

03/03/2021

11:34 PM Bug #8203 (Closed): Rinda: recycled object
jeremyevans0 (Jeremy Evans)
11:33 PM Bug #14824 (Assigned): Endless Range Support in irb
I've submitted a pull request to fix this issue: https://github.com/ruby/irb/pull/195 jeremyevans0 (Jeremy Evans)
11:33 PM Bug #11533 (Closed): AIX6.1 - Ruby 2.2.3 - TestMkmf::TestConvertible#test_typeof_builtin fails
jeremyevans0 (Jeremy Evans)
10:44 PM Bug #17669 (Closed): An exception still breaks monitor state and causes deadlock in 2.6.7
jeremyevans0 (Jeremy Evans)
10:38 PM Bug #17666 (Closed): Thread#join hangs when Fiber.set_scheduler is set
jeremyevans0 (Jeremy Evans)
09:39 PM Bug #17585: DWARF5 support?
Glad to hear that :-)
What I am still (probably too) anxious about is that the current `addr2line.c` calls a lot of async-signal unsafe functions in it. It is true that practically they seem to cause no problem 99% of the time. But th...
xtkoba (Tee KOBAYASHI)
09:14 PM Bug #17606: Make failed on i386-cygwin (miniruby.exe aborted)
Strictly speaking, another assertion is needed to ensure that there be no padding between `v2` and `v3` of `struct RVALUE`:
```c
assert(offsetof(struct RVALUE, v3) == offsetof(struct RVALUE, v2) + sizeof(VALUE));
```
It will be d...
xtkoba (Tee KOBAYASHI)
03:57 PM Bug #17573: Crashes in profiling tools when signals arrive in non-Ruby threads
> I don't know wether it's the same issue or not.
So I tested this patch on top of the current `ruby_3_0` branch, and it does fix the stackprof issue I had.
byroot (Jean Boussier)
10:40 AM Revision 70e9489f (git): merge revision(s) 0d89aedb734372bc35d8a569a992d13e86e7923e,a6f5f3cccda381ae332aaa6467f2644611371fb5,97cf290063ab940d08819cd96cbcca0ef6d50e4c: [Backport #17338]
Assign TAG_NONE to ruby_tag_type instead of 0
---
eval.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Also `eclass` loop can raise in `rb_obj_is_kind_of`
---
eval.c | 2 +-...
naruse (Yui NARUSE)
08:35 AM Bug #17338: ruby-spec stuck in "C-API Kernel function rb_rescue2"
ruby_3_0 8ac6ff27566e9c55a2594a081949154b94618256 merged revision(s) 0d89aedb734372bc35d8a569a992d13e86e7923e,a6f5f3cccda381ae332aaa6467f2644611371fb5,97cf290063ab940d08819cd96cbcca0ef6d50e4c. naruse (Yui NARUSE)
08:32 AM Revision db217689 (git): * 2021-03-03 [ci skip]
git[bot]

03/02/2021

10:01 PM Bug #16672: net/http leaves original content-length header intact after inflating response
Looks good to me.
I think it's important to still remove the `Content-Encoding` headers, otherwise a caller of net/http might inflate again (notably RubyGems had code related to that until recently).
Eregon (Benoit Daloze)
09:41 PM Bug #17669: An exception still breaks monitor state and causes deadlock in 2.6.7
This is the same bug that @headius reported in https://github.com/ruby/monitor/issues/2.
I'd like to ask to make that repository public (currently it's private).
If the concern is that it might be confusing as the recent monitor stdl...
Eregon (Benoit Daloze)
09:51 AM Bug #17669 (Closed): An exception still breaks monitor state and causes deadlock in 2.6.7
`lib/monitor.rb` provides Monitor.
However, its state handling is weak for interrupts caused by Thread.kill for example timeout libraries
even after introducing some uses of Thread.handle_interrupt at https://bugs.ruby-lang.org/issue...
yoheimuta (Yohei Yoshimuta)
08:24 PM Bug #13654: irb save-history extension is not concurrency-safe
I've submitted a pull request that makes the irb save-history extension safe for concurrent use: https://github.com/ruby/irb/pull/193 jeremyevans0 (Jeremy Evans)
06:05 PM Revision 68f515cf (git): * 2021-03-03 [ci skip]
git[bot]
06:04 PM Revision 0bd1bc55 (git): Don't use mmap on platforms that have large OS page sizes
peterzhu2118 (Peter Zhu)
06:04 PM Revision 6d834371 (git): Fix typo
peterzhu2118 (Peter Zhu)
05:48 PM Feature #17663: Enumerator#with, an alternative to Enumerator#with_object
Hanmac (Hans Mackowiak) wrote in #note-4:
> i had a similar problem when i wanted to make Symbol to_proc use parameters, i would have done something like `:to_s.(16)`
Thanks, the implementation of format proc could be anything other tha...
RichOrElse (Ritchie Buitre)
04:17 PM Feature #17663: Enumerator#with, an alternative to Enumerator#with_object
i had a similar problem when i wanted to make Symbol to_proc use parameters, i would have done something like `:to_s.(16)`
for your list of code comparisons:
```ruby
(10..15).map(&"%x".method(:%))
```
Hanmac (Hans Mackowiak)
05:43 PM Bug #17585: DWARF5 support?
xtkoba (Tee KOBAYASHI) wrote in #note-13:
> A (revised) patch is attached to avoid segfaults with GCC's DWARF 5.
I have tested this patch (without any others you have referenced) and after 10 build in Fedora build system (that is 60 ...
vo.x (Vit Ondruch)
03:44 PM Bug #17665: Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
Thanks for reporting the issue in cygwin. I've [proposed a patch](https://github.com/ruby/ruby/pull/4235) that should solve the issue. peterzhu2118 (Peter Zhu)
03:44 PM Bug #17652: GC compaction crash on mprotect
Thanks for reporting the issue in cygwin. I've [proposed a patch](https://github.com/ruby/ruby/pull/4235) that should solve the issue. peterzhu2118 (Peter Zhu)
03:31 PM Feature #17660: Expose information about which basic methods have been redefined
Does this work with refinements?
```ruby
module X
refine Integer do
def +(x); x ** self; end
end
end
```
In that case `RubyVM.redefined_basic_methods` should only return `{Integer=>[:+]}` if it's called from a context...
Dan0042 (Daniel DeLorme)
02:00 PM Feature #16113: Partial application
I like the idea. I made a [similar proposal](https://bugs.ruby-lang.org/issues/15302), but admittedly it wasn't as intuitive as I have hoped.
So with my [new proposal](https://bugs.ruby-lang.org/issues/17663), the code looks like this.
...
RichOrElse (Ritchie Buitre)
01:14 PM Feature #17670 (Closed): Improve performance Float#to_i

Improve performance `Float#to_i` and `Float#to_int` methods(write in Ruby)
benchmark:
```yml
prelude: |
flo = 4.2
benchmark:
to_i: |
flo.to_i
to_int: |
flo.to_int
loop_count: 20000000
```
result:
```bas...
S_H_ (Shun Hiraoka)
01:00 PM Revision b49264ab (git): merge revision(s) 969b824a0c7605e0e570631d967ad0de0c37d0bf,100e464bee46ae71ef048ed85a9bdd012935a3f7: [Backport #17599]
sync GC rest if needed
marking requires a barrier (stop all Ractors) and gc_enter() does it.
However, it doesn't check rest event which can start marking.
[Bug #17599]
---
gc.c | 3 +++
1...
naruse (Yui NARUSE)
12:50 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
ruby_3_0 4328f93f1bf08296115172a279e2d85a0ed80122 merged revision(s) 87437326214e4587a41946c8937e11418d983acd. naruse (Yui NARUSE)
12:50 PM Revision 4328f93f (git): merge revision(s) 87437326214e4587a41946c8937e11418d983acd: [Backport #17581]
Fix backtrace to not skip frames with iseq without pc
Previously, frames with iseq but no pc were skipped (even before
the refactoring in 3b24b7914c16930bfadc89d6aff6326a51c54295).
Because the entire backtrace wa...
naruse (Yui NARUSE)
12:00 PM Bug #16760: backport #67305 / e39f7e64 to 2.6?
ruby_2_6 r67912 merged revision(s) e39f7e64. usa (Usaku NAKAMURA)
12:00 PM Revision f56a213a (git): merge revision(s) e39f7e64: [Backport #16760]
parse.y: fix segv with Ripper#yydebug
* parse.y (parser_token_value_print): in ripper, ID values are
wrapped in NODE_RIPPER at set_yylval_name(), so print the Symbol
wrapped together.
git-svn-id: svn...
U.Nakamura
11:44 AM Bug #17024: Times with timezones return incorrect wday and yday
backport into ruby_2_6 at r67911. usa (Usaku NAKAMURA)
11:44 AM Revision 0fe5d0f6 (git): merge revision(s) 99a9c3fe: [Backport #17024]
Fixed yday and wday with timezone [Bug #17024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:38 AM Bug #16918: Dir.mktmpdir should yield a copy of the dir to protect cleanup
backported into ruby_2_6 at r67910. usa (Usaku NAKAMURA)
11:37 AM Revision 34768ea9 (git): merge revision(s) 2ecfb88e: [Backport #16918]
Correctly remove temporary directory if path yielded is mutated
Another approach would be to freeze the string, but that could
cause backwards compatibility issues.
Fixes [Bug #16918]
git-svn-id: svn+ssh://ci....
U.Nakamura
11:27 AM Bug #16925: Backport request: net/http raises in ensure and replaces the original error
ruby_2_6 r67909 merged revision(s) 5a79d8e0,160511d8. usa (Usaku NAKAMURA)
11:26 AM Revision a175a30a (git): merge revision(s) 5a79d8e0,160511d8: [Backport #16925]
Fix error raised by Net::HTTPResponse#inflater if the block raises
* See https://bugs.ruby-lang.org/issues/13882#note-6
---
lib/net/http/response.rb | 5 ++-
spec/ruby/library/net/htt...
U.Nakamura
11:25 AM Bug #16940: Backport 0ba27259d390e902139c0e2e94b9d18ef227748e
ruby_2_6 r67908 merged revision(s) 0ba27259. usa (Usaku NAKAMURA)
11:25 AM Revision efd499b2 (git): merge revision(s) 0ba27259: [Backport #16940]
Fix crashes in the peephole optimizer on OpenBSD/sparc64
These crashes are due to alignment issues, casting ADJUST to INSN
and then accessing after the end of the ADJUST. These patches
come from Stefan Sperling ...
U.Nakamura
11:23 AM Bug #16979: FileUtils#cp_r with preserve, lchmod fails with ENOTSUPP
ruby_2_6 r67907 merged revision(s) a19228f8. usa (Usaku NAKAMURA)
11:23 AM Revision 82019f27 (git): merge revision(s) a19228f8: [Backport #16979]
brace the fact that lchmod(2) can EOPNOTSUPP
Musl libc has this function as a tiny wrapper of fchmodat(3posix). On
the other hand Linux kernel does not support changing modes of a symlink.
The operation always f...
U.Nakamura
11:22 AM Bug #16981: [ripper] mismatched indentations warning has disappeared since 2.6
backported into ruby_2_6 at r67906. usa (Usaku NAKAMURA)
11:21 AM Revision dad70fa6 (git): merge revision(s) 263b9413: [Backport #16981]
[ripper] fix mismatched indentations warning [Bug #16981]
The scanner location has to be set from lex.ptok before it is
flushed by dispatching the scanner event.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
U.Nakamura
09:29 AM Revision 3e67bfe2 (git): merge revision(s) b94b7965c420661ed621c146a4efaf43bc3cf50b: [Backport #17639]
Fixed fallback ENABLE_VIRTUAL_TERMINAL_PROCESSING value [Bug #17639]
---
ruby.c | 2 +-
win32/win32.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
naruse (Yui NARUSE)
09:28 AM Bug #17644: Ripper.lex fails with syntax error and heredoc
ruby_3_0 a6dec2e144d65011d49f272e494bf62daf3d7531 merged revision(s) 5de38c41ae7bf17ae599fdfa9f8face87f16d8bb. naruse (Yui NARUSE)
09:28 AM Revision a6dec2e1 (git): merge revision(s) 5de38c41ae7bf17ae599fdfa9f8face87f16d8bb: [Backport #17644]
ripper: fix a bug of Ripper::Lexer with syntax error and heredoc [Bug
#17644]
---
ext/ripper/lib/ripper/lexer.rb | 2 +-
test/ripper/test_lexer.rb | 12 ++++++++++++
2 files changed, 13 in...
naruse (Yui NARUSE)
09:27 AM Bug #17622: Segfault in new Rails app
ruby_3_0 5816725ccc9642101d447b0f3b03c14d232aec6a merged revision(s) 15dbaa0b54f10e43976d594ef987da5f51e0c7c1. naruse (Yui NARUSE)
09:27 AM Bug #17653: SEGFAULT in ossl_ssl_read_internal
ruby_3_0 713d6d5eb05de06a0de25feef801ff8c72c65754 merged revision(s) 265c0022390e3dcd4ff692fc77d29b94e652c877. naruse (Yui NARUSE)
09:15 AM Bug #17653: SEGFAULT in ossl_ssl_read_internal
Thx for pouting out the patch. With the patch applied, I have run the excon test suite a hundred times without failure, so it seem that is the right one. vo.x (Vit Ondruch)
09:27 AM Revision 713d6d5e (git): merge revision(s) 265c0022390e3dcd4ff692fc77d29b94e652c877: [Backport #17653]
Do not allocate ractor-local storage in dfree function during GC
---
random.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
naruse (Yui NARUSE)
09:18 AM Bug #17583: Segfault on large stack(RUBY_THREAD_VM_STACK_SIZE)
Bug #17668 seems to be a duplicate of this bug.
As I wrote in #note-5, this issue seems to be caused by running GC during initialization. If so, a straightforward workaround would be to suppress GC during init:
```diff
--- a/eval.c
+++ ...
xtkoba (Tee KOBAYASHI)
08:47 AM Bug #17540 (Closed): A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
Applied in changeset commit:git|33dc0a070a515811e71fccbdc8cf0cd5a5dd784c.
----------
RBASIC_SET_CLASS_RAW: follow strict aliasing rule
Instead of rather euphemistic struct cast, just reomve the const
qualifier and assign directly. Acc...
shyouhei (Shyouhei Urabe)
06:49 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
user:shyouhei Thanks, it works. I have no objection to avoiding compiler-specific keywords, as long as things go well without them. xtkoba (Tee KOBAYASHI)
06:30 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
This is my take:
```patch
From 7fb39b1138dfaa3a1502673ac82d6b75401e8f39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
<shyouhei@ruby-lang.org>
Date: Tue, 2 Mar 2021 15:22:22 +0900
Subject: [PATC...
shyouhei (Shyouhei Urabe)
03:13 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
Compilation with `-fno-strict-aliasing` seems to resolve the main issue of the `ruby` crash. It would be nice if this compiler option is added by default, unless it causes a serious performance drawback.
user:shyouhei That change migh...
xtkoba (Tee KOBAYASHI)
01:08 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
I suspect commit:d0e0c884bb4277e529adbd8d82aae0a651f7edf2 could be the cause of this issue. shyouhei (Shyouhei Urabe)
08:47 AM Revision 33dc0a07 (git): RBASIC_SET_CLASS_RAW: follow strict aliasing rule
Instead of rather euphemistic struct cast, just reomve the const
qualifier and assign directly. According to ISO/IEC 9899:2018 section
6.5 paragraph 7, `VALUE` and `const VALUE` are allowed to alias (but two
distinct structs are not, ev...
shyouhei (Shyouhei Urabe)
08:39 AM Revision 5816725c (git): merge revision(s) 15dbaa0b54f10e43976d594ef987da5f51e0c7c1: [Backport #17622]
[Fixes #17622] Mark and move the previous ep
---
vm.c | 10 ++++++++++
1 file changed, 10 insertions(+)
naruse (Yui NARUSE)
07:35 AM Bug #17668: Large RUBY_THREAD_VM_STACK_SIZE causes segmentation fault (again)
I suppose this is a duplicate of Bug #17583. xtkoba (Tee KOBAYASHI)
07:32 AM Bug #17668 (Closed): Large RUBY_THREAD_VM_STACK_SIZE causes segmentation fault (again)
- How to reproduce: `RUBY_THREAD_VM_STACK_SIZE=100000000 ./ruby --disable-gems -e 'p 1'`
- Expected: only `1` is shown.
- Observed:
```
./ruby: [BUG] Segmentation fault at 0x0000000000000018
ruby 3.0.0p0 (2020-12-25 revision 95aff...
ciel (T Yamada)
07:31 AM Bug #17667 (Closed): Module#name needs synchronization
```ruby
class C; @iv = 1; end
Ractor.new{
loop{C.name}
}
class C
0.step{|i| instance_variable_set("@iv#{i}", i)}
end
```
```
/home/ko1/ruby/src/trunk/test.rb:4: [BUG] Segmentation fault at 0x000056513df4ef10
ruby 3.1.0de...
ko1 (Koichi Sasada)
06:26 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
user:arjunmdas I just searched the git log with the keyword "fiber". The PR number comes from the commit message. xtkoba (Tee KOBAYASHI)
06:18 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
Thanks again.
Just curious, how did you identify the right PR that fixed this?
arjunmdas (arjun das)
05:56 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
This issue seems fixed in commit:5f69a7f60467fa58c2f998daffab43e118bff36c. I'm not sure if there is a ticket here. There is a related PR in GitHub: https://github.com/ruby/ruby/pull/3945 xtkoba (Tee KOBAYASHI)
05:07 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
Thanks a lot for confirming.
I will check the latest development version as well. Are you aware of any other tracking bug for this?
arjunmdas (arjun das)
03:42 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
This issue seems already resolved in the latest development version. (I confirmed that it reproduces in 3.0.0p0 release version on x86_64-linux.) xtkoba (Tee KOBAYASHI)
01:25 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set
```ruby
class MockScheduler
def block(blocker, timeout = nil)
byebug
end
def close
byebug
end
def fiber(&block)
byebug
Fiber.new(blocking: false, &block).tap(&:resume)
end
def io_wait(io, e...
arjunmdas (arjun das)
12:55 AM Bug #17666 (Closed): Thread#join hangs when Fiber.set_scheduler is set

``` ruby
class MockScheduler
def block(blocker, timeout = nil)
byebug
end
def close
byebug
end
def fiber(&block)
byebug
Fiber.new(blocking: false, &block).tap(&:resume)
end
def io_wait(io...
arjunmdas (arjun das)
06:19 AM Feature #17610: [PATCH] Reduce RubyVM::InstructionSequence.load_from_binary allocations
> I tried measuring the same thing on popular open source applications like Redmine or Discourse, unfortunately I couldn't make them work on Ruby 3.0 yet.
I had a small for for it https://github.com/discourse/discourse/tree/ruby-3
not...
sam.saffron (Sam Saffron)
12:24 AM Bug #17600: lib/benchmark should use `$stdout` instead of `STDOUT`
Thanks for the reminder @jeremyevans0. Done. marcandre (Marc-Andre Lafortune)
12:24 AM Bug #17600 (Closed): lib/benchmark should use `$stdout` instead of `STDOUT`
Applied in changeset commit:git|61f417ac7dbcb5df096edb95a743fff45a5313c8.
----------
[lib/benchmark] Use $stdout instead of STDOUT [Bug #17600]
Anonymous
12:23 AM Revision f7c342f8 (git): * 2021-03-02 [ci skip]
git[bot]
12:23 AM Revision 61f417ac (git): [lib/benchmark] Use $stdout instead of STDOUT [Bug #17600]
Marc-Andre Lafortune

03/01/2021

11:54 PM Bug #11335: `ruby -r debug` catchpoint problem
I was able to reproduce this issue and confirm that the catch support is broken and has been broken since Ruby 2.0, since the raise event for set_trace_func is not triggered until after `$!` has been reset:
```
$ cat t/t13.rb
set_...
jeremyevans0 (Jeremy Evans)
11:34 PM Bug #17207 (Closed): message/disposition-notification: unexpected token LPAR (expected QUOTED or LITERAL)
jeremyevans0 (Jeremy Evans)
11:26 PM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
If this fixes the Ruby crash too, maybe we should put `-fno-strict-aliasing` as a default compilation option like the Linux kernel. It's very easy to make strict aliasing mistakes and they are too hard to spot... alanwu (Alan Wu)
11:14 PM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
user:alanwu Ah yes, it seems to fix the issue, at least for the MWE code. Thanks for the suggestion! xtkoba (Tee KOBAYASHI)
10:47 PM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
This seems like a strict aliasing issue. I'm curious if compiling with `-fno-strict-aliasing` fixes it. alanwu (Alan Wu)
10:32 PM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
A ticket in LLVM Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=49384 xtkoba (Tee KOBAYASHI)
02:16 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
MWE:
``` c
#include <stdarg.h>
#include <assert.h>
#ifndef WORKAROUND
#define WORKAROUND 0
#endif
typedef unsigned long VALUE;
static void RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass)
{
struct { VALUE flags; VALUE kla...
xtkoba (Tee KOBAYASHI)
11:08 PM Bug #17492: Breakpoints in debug.rb only work when program invoked with absolute filename
I've tested this patch and it does appear to fix the issue. The upstream repository (https://github.com/ruby/debug) is still not created or is private. Since debug has been gemified, a fix should be applied to the upstream repository, ... jeremyevans0 (Jeremy Evans)
10:06 PM Bug #17600: lib/benchmark should use `$stdout` instead of `STDOUT`
No other committer has expressed objection, and I'm also in favor (in addition to you and @duerst). benchmark is listed as unmaintained, so I think you should commit the change. jeremyevans0 (Jeremy Evans)
09:59 PM Bug #16672 (Assigned): net/http leaves original content-length header intact after inflating response
After some time to think about this, I agree with @jmreid that updating the Content-Length is the simplest way to address this issue. I've added a pull request that implements this change: https://github.com/ruby/net-http/pull/16 jeremyevans0 (Jeremy Evans)
09:20 PM Bug #14972 (Assigned): Net::HTTP inconsistently raises EOFError when peer closes the connection
I added a pull request that offers a way to support this in a backwards compatible manner: https://github.com/ruby/net-http/pull/15. jeremyevans0 (Jeremy Evans)
07:33 PM Bug #17664 (Assigned): Behavior of sockets changed in Ruby 3.0 to non-blocking
I believe this is expected, even if not mentioned in the release notes. I think the Ruby-level API remains the same, but passing the underlying file descriptors to C functions can see changed behavior. Assigning to @ioquatix to confirm... jeremyevans0 (Jeremy Evans)
02:29 PM Bug #17665: Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
> Would you please try the patch in #17652#note-5 ?
Applying the patch, I have confirmed that segmentation fault does not occur.
```
$ ./miniruby.exe -v
ruby 3.1.0dev (2021-02-28T11:24:42Z master 80e2c45f55) [x86_64-cygwin]
```
fd0 (Daisuke Fujimura)
01:23 PM Bug #16998: [Backport] support for Bison 3 to 2.6 and 2.7
ruby_2_6 r67905 merged revision(s) e9bb30d4,a064e467,4d753461. usa (Usaku NAKAMURA)
01:23 PM Revision e5bc1fea (git): merge revision(s) e9bb30d4,a064e467,4d753461: [Backport #16998]
Expect no conflict in the parser
---
parse.y | 1 +
1 file changed, 1 insertion(+)
Support Bison 3
---
common.mk | 1 +
parse.y | 2 +-
tool/pur...
U.Nakamura
12:36 AM Misc #17662 (Assigned): The heredoc pattern used in tests does not syntax highlight correctly in many editors
My vim works great with the code :-) But breaking syntax highligt in GitHub is not so great.
AFAIK the style is mainly written by @nobu. Nobu, what do you think?
mame (Yusuke Endoh)

02/28/2021

11:20 PM Misc #17662: The heredoc pattern used in tests does not syntax highlight correctly in many editors
It's a really complex formulation: a double HEREDOC inside string interpolatiosn, with a delimiter of the HEREDOC using double quotes but clearly that's not the end of the string because it's inside a `#{}`...
I can barely makes sense o...
marcandre (Marc-Andre Lafortune)
07:33 PM Misc #17662: The heredoc pattern used in tests does not syntax highlight correctly in many editors
Emacs Ruby Mode behaves well with the current pattern. I wonder why the other editors do not simulate it. xtkoba (Tee KOBAYASHI)
11:19 AM Misc #17662: The heredoc pattern used in tests does not syntax highlight correctly in many editors
I'm not an Emacs user, so I don't know.
I think indentation doesn't matter much, it could be this too:
```ruby
assert_ruby_status([], <<~'RUBY', bug)
exit("1" == Thread.start(1, &:to_s).value)
RUBY
```
Highlighting the Ruby ...
Eregon (Benoit Daloze)
08:04 PM Bug #17664: Behavior of sockets changed in Ruby 3.0 to non-blocking
Is this issue related to #17607 and/or #15356 ?
xtkoba (Tee KOBAYASHI)
10:42 AM Bug #17664 (Closed): Behavior of sockets changed in Ruby 3.0 to non-blocking
I'm not sure this is a bug, but apparently a change was introduced in Ruby 3.0 that makes sockets non-blocking by default. This change was apparently introduced as part of the work on the [FiberScheduler interface](https://github.com/rub... ciconia (Sharon Rosner)
07:40 PM Bug #17665: Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
Not using `mmap(2)` may be a workaround, but there is a drawback of GC compaction being not usable. xtkoba (Tee KOBAYASHI)
07:20 PM Bug #17665: Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
user:fd0 Would you please try the patch in #17652#note-5 ? xtkoba (Tee KOBAYASHI)
10:59 AM Bug #17665 (Closed): Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
Make failed on x86_64-cygwin (miniruby.exe segmentation fault)
```
$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ autoreconf -fiv && ./configure && make V=1
(snip)
./miniruby.exe -I./lib -I. -I.ext/common ./tool/generi...
fd0 (Daisuke Fujimura)
03:06 PM Bug #16813: Incorrect and Duplicated Method Docs - 2.6.1-core through 2.7.1-core
ruby_2_6 r67904 merged revision(s) ac2106ac,cf90df22. usa (Usaku NAKAMURA)
03:06 PM Revision a7133b05 (git): merge revision(s) ac2106ac,cf90df22: [Backport #16813]
[DOC] Fixed explanation for Method#>> [Bug #16813] [ci skip]
---
proc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip]
...
U.Nakamura
03:05 PM Bug #15932: wrong "void value expression" error for 'next' or 'break' statements inside an 'if' assignment
Backported into ruby_2_6 at r67903. usa (Usaku NAKAMURA)
03:04 PM Bug #11143: it should always be possible to return from an if
Backported into ruby_2_6 at r67903. usa (Usaku NAKAMURA)
03:04 PM Revision f279c3a3 (git): merge revision(s) 01b3a380: [Backport #11143][Backport #15932]
Fix wrong "void value expression" error
* parse.y (value_expr_check): if either of then or else statements is not a void value expression, the whole if is not also a void value expression. [Bug #15932]
git-svn-id: svn+ssh://ci...
U.Nakamura
02:53 PM Bug #15608: What should be the correct output for Method#inspect with singleton methods?
Backported into ruby_2_6 at r67902. usa (Usaku NAKAMURA)
02:53 PM Revision 4be089c0 (git): merge revision(s) e02bd0e7: [Backport #15608]
Don't display singleton class in Method#inspect unless method defined there
Previously, if an object has a singleton class, and you call
Object#method on the object, the resulting string would include
the object'...
U.Nakamura
02:45 PM Bug #16649: Object with [] method doesn't work as String#encode's fallback
backported into ruby_2_6 at r67901. usa (Usaku NAKAMURA)
02:44 PM Revision e31ab1a2 (git): merge revision(s) 8b6e2685: [Backport #16649]
Fixed symbol misused as ID
rb_funcallv_public and rb_respond_to require an ID, not a
Symbol. [Bug #16649]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:37 PM Bug #16514: Documentation mistake for method syntax (splat/array parameter)
ruby_2_6 r67900 merged revision(s) 3c93ed59. usa (Usaku NAKAMURA)
02:37 PM Revision aa19f11d (git): merge revision(s) 3c93ed59: [Backport #16514]
Update documentation for Array/Hash Argument section of methods.rdoc
[Bug #16514]
---
doc/syntax/methods.rdoc | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
git-svn-id: svn+ssh:/...
U.Nakamura
02:33 PM Bug #16950 (Closed): Stop nonsense keyword argument warnings in 2.6
patched to ruby_2_6 at r67899. usa (Usaku NAKAMURA)
02:32 PM Bug #16632: Remove verbose warning on treating keyword splat as positional argument in Ruby 2.6
patched to ruby_2_6 at r67899. usa (Usaku NAKAMURA)
02:31 PM Revision 348a909a (git): * vm_args.c (setup_parameters_complex): no longer need to warn splat
hash in a pattern.
[Backport #16632][Bacport #16950]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:16 PM Bug #15980: Coverage shows while/until after raise if/unless as uncovered line
ruby_2_6 r67898 merged revision(s) f9e5c74c. usa (Usaku NAKAMURA)
02:16 PM Revision 3f4f5fdf (git): merge revision(s) f9e5c74c: [Backport #15980]
compile.c: stop wrong peephole optimization when covearge is enabled
jump-jump optimization ignores the event flags of the jump instruction
being skipped, which leads to overlook of line events.
This changeset s...
U.Nakamura
02:14 PM Revision c64fbfae (git): merge revision(s) a7b9f085ff952fcb18f82de39b3bf9ab7e5ba3e7,9165fcdfa309052a2adc3c6100ab24204de6c2d1,e42d9d8df87f58b9bfa65647249822df25851375: [Backport #16401]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:06 PM Bug #16297: calling undefined allocator by `Class.instance_method(:allocate)`
usa (Usaku NAKAMURA) wrote in #note-1:
> ruby_2_6 r67896 merged revision(s) f72dc407.
note that ruby_2_6 does not have `UnboundMethod#bind_call`.
usa (Usaku NAKAMURA)
02:01 PM Bug #16297: calling undefined allocator by `Class.instance_method(:allocate)`
ruby_2_6 r67896 merged revision(s) f72dc407. usa (Usaku NAKAMURA)
02:01 PM Revision aa3dda8b (git): merge revision(s) f72dc407: [Backport #16297]
Prohibit calling undefined allocator [Bug #16297]
---
object.c | 31 +++++++++++++++++++++++++++++--
test/ruby/test_class.rb | 8 ++++++++
2 files changed, 37 insertions(+), 2 deletions(-...
U.Nakamura
01:56 PM Bug #16268: Consistent segfault with ObjectSpace.count_imemo_objects
ruby_2_6 r67895 merged revision(s) 74b19e330adbdae2d8e53b58f1a2a7b725e69c8d. usa (Usaku NAKAMURA)
01:56 PM Revision 5c74f95f (git): merge revision(s) 74b19e330adbdae2d8e53b58f1a2a7b725e69c8d: [Backport #16268]
fix imemo entry description.
* ext/objspace/objspace.c (count_imemo_objects): `imemo_type_ids`
should be match with `enum imemo_type` in internal.h and this
patch fix mismatch.
git-svn-id: svn+ssh:/...
U.Nakamura
01:47 PM Bug #16269: Every 4 bytes the Integer.sqrt(n) method closes abruptly
ruby_2_6 r67894 merged revision(s) f364564e66d1db1de8e80d669287386595c8bc46. usa (Usaku NAKAMURA)
01:47 PM Revision b64876ae (git): merge revision(s) f364564e66d1db1de8e80d669287386595c8bc46: [Backport #16269]
bignum.c (estimate_initial_sqrt): prevent integer overflow
`Integer.sqrt(0xffff_ffff_ffff_ffff ** 2)` caused assertion failure
because of integer overflow. [ruby-core:95453] [Bug #16269]
---
bignum.c ...
U.Nakamura
11:24 AM Revision 80e2c45f (git): Skip spec which does not work on mingw
* https://github.com/ruby/ruby/runs/1994688198
ruby 3.1.0dev (2021-02-27T16:42:17Z master 8305a48413) [x64-mingw32]
C-API Thread function rb_thread_call_without_gvl runs a C function with the global lock unlocked and unlocks IO with ...
Eregon (Benoit Daloze)
11:05 AM Feature #17660: Expose information about which basic methods have been redefined
tenderlovemaking (Aaron Patterson) wrote in #note-6:
> this is CRuby specific and only for basic operations like `Integer#+` or `NilClass#nil?`, etc.
It is not CRuby-specific, in fact this new method does make sense on at least Truff...
Eregon (Benoit Daloze)
04:17 AM Bug #17540: A segfault due to Clang/LLVM optimization on 32-bit ARM Linux
Here is an alternative workaround which inserts a memory barrier into the function `rb_str_vcatf` from `sprintf.c`:
```
--- a/sprintf.c
+++ b/sprintf.c
@@ -1227,6 +1227,7 @@
f._bf._base = (unsigned char *)str;
f._p = (uns...
xtkoba (Tee KOBAYASHI)
02:14 AM Misc #17635: DevelopersMeeting20210317Japan
* [Misc #17641] pocke should have a commit bit (mame)
* He has passionately contributed to Ruby, mainly RBS but also the rdoc improvements of ruby/ruby. I believe that giving him a commit bit will facilitate his work.
mame (Yusuke Endoh)

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)
 

Also available in: Atom