Project

General

Profile

Activity

From 03/01/2021 to 03/07/2021

03/07/2021

12:48 PM Bug #10961: Zlib corrupts data when receive signal
I sent PR https://github.com/ruby/zlib/pull/22 wanabe (_ wanabe)
02:20 AM Bug #17675: StringIO#each_byte doesn't check for readabilty while iterating
Please submit to https://github.com/ruby/stringio nobu (Nobuyoshi Nakada)
02:00 AM Bug #17675: StringIO#each_byte doesn't check for readabilty while iterating
The PR is:
https://github.com/ruby/ruby/pull/4245
wyhaines (Kirk Haines)
01:48 AM Bug #17675 (Closed): StringIO#each_byte doesn't check for readabilty while iterating
Bug #17661 is a failure to check readability on `each_byte` of an IO, causing a segmentation fault.
StringIO has an independent, but related implementation, and it shares the same flaw in its implementation, where it fails to check fo...
wyhaines (Kirk Haines)
01:36 AM Bug #17659 (Closed): Ractor: can't call io/wait methods
nobu (Nobuyoshi Nakada)
01:21 AM Revision 1d1b9e02 (git): Removed a typo in a comment [ci skip]
nobu (Nobuyoshi Nakada)
12:55 AM Bug #17661: IO#each will segfault when if file is closed inside an `each_byte` block
Aaron filed this bug on my behalf, as I was having issues with my account. Those issues appear to be issues no more, however.
In the interest of having details appear in the issue tracker and not just on GitHub, I'll reiterate the des...
wyhaines (Kirk Haines)
12:54 AM Revision f6d5de8f (git): [ruby/io-wait] Declare as Ractor-safe
Fixes https://bugs.ruby-lang.org/issues/17659
https://github.com/ruby/io-wait/commit/ba338b4764
nobu (Nobuyoshi Nakada)
12:54 AM Revision ea81fff5 (git): [ruby/io-wait] bump up to 0.1.1
https://github.com/ruby/io-wait/commit/88db082d60 nobu (Nobuyoshi Nakada)
12:54 AM Revision ef9bde65 (git): [ruby/io-wait] Refined uncommon device type tests
https://github.com/ruby/io-wait/commit/0c73ebcf5d nobu (Nobuyoshi Nakada)
12:54 AM Revision 05d118fe (git): [ruby/io-wait] Fixed required_ruby_version
Before 3.0.0, io-wait has not been gemified.
https://github.com/ruby/io-wait/commit/6fed3da323
nobu (Nobuyoshi Nakada)
12:54 AM Revision 3ba1580d (git): [ruby/io-wait] Revise IO#wait arguments
https://github.com/ruby/io-wait/commit/0599f6d4d6
https://github.com/ruby/io-wait/commit/4e982aea1b
https://github.com/ruby/io-wait/commit/5b45685eb3
nobu (Nobuyoshi Nakada)

03/06/2021

09:59 PM Bug #17216 (Closed): Enumerator::Chain doesn't support all Enumerator methods
Applied in changeset commit:git|bf40fe9fed19a5e22081b133661c0629988f1618.
----------
Fix calling enumerator methods such as with_index on Enumerator::Chain
This previously raised a TypeError. Wrap the Enumerator::Chain in
an Enumerato...
jeremyevans (Jeremy Evans)
09:59 PM Feature #17347 (Closed): Enumerator::Chain of Enumerator::Lazy should be lazy
Applied in changeset commit:git|bf40fe9fed19a5e22081b133661c0629988f1618.
----------
Fix calling enumerator methods such as with_index on Enumerator::Chain
This previously raised a TypeError. Wrap the Enumerator::Chain in
an Enumerato...
jeremyevans (Jeremy Evans)
09:59 PM Bug #17672 (Closed): Ractor stdio does not belong to the ractor
Applied in changeset commit:git|b3c53a8a885be8f5cc2b712798b0d2741c488ce4.
----------
Make Ractor stdio belonging to the Ractor [Bug #17672]
Defer making ractor stdio until ractor started.
Before ractor started, created objects belong t...
nobu (Nobuyoshi Nakada)
09:56 PM Revision 68d02857 (git): Undef Enumerator::Chain#{feed,next,next_values,peek,peek_values}
Previously these methods were defined but raised TypeError, which
seems worse.
jeremyevans (Jeremy Evans)
09:56 PM Revision e1d16a9e (git): Make Enumerator#{+,chain} create lazy chain if any included enumerator is lazy
Implements [Feature #17347] jeremyevans (Jeremy Evans)
09:56 PM Revision bf40fe9f (git): Fix calling enumerator methods such as with_index on Enumerator::Chain
This previously raised a TypeError. Wrap the Enumerator::Chain in
an Enumerator to work around the problem.
Fixes [Bug #17216]
jeremyevans (Jeremy Evans)
09:24 PM Feature #17674 (Closed): Proposal: `Method#source_location` or `Method#owner` for refined methods
Inspired by https://bugs.ruby-lang.org/issues/15504#note-17
I'm working on a gem with Ruby refinements, and some methods are invented in new Ruby versions like 2.5 or 3.0, and I'd like to define in this gem should I refine a method or...
AlexWayfer (Alexander Popov)
09:16 PM Feature #15504: Freeze all Range objects
zverok (Victor Shepelev) wrote in #note-17:
> > if I want to check was called refined method or core?
> ...
I'm too lazy for such proposals, especially well formatted, but I can try. UPD: Created https://bugs.ruby-lang.org/issues/17674
...
AlexWayfer (Alexander Popov)
03:58 PM Revision 13dc0053 (git): * 2021-03-07 [ci skip]
git[bot]
03:58 PM Revision b3c53a8a (git): Make Ractor stdio belonging to the Ractor [Bug #17672]
Defer making ractor stdio until ractor started.
Before ractor started, created objects belong to the caller ractor
instead of the created ractor.
nobu (Nobuyoshi Nakada)
02:50 AM Bug #17354: Module#const_source_location is misleading for constants awaiting autoload
When I proposed this feature in #10771, the motivation was to create a tool that automatically reads Ruby code and documents its methods and constants together with their source code. To extract the relevant source code, knowing the star... sawa (Tsuyoshi Sawada)
12:52 AM Bug #10203 (Closed): TCPServer.new has strange behaviour when EADDRINUSE without specifying hostname
I think this is not a bug and can be closed. `TCPServer.new` using first `getaddrinfo` address that works is reasonable behavior if no address is specified. If you require a specific address, you should specify it. As @akr mentioned, ... jeremyevans0 (Jeremy Evans)
12:39 AM Bug #14046 (Closed): Ripper loses DATA
Ruby stops parsing the file when `__END__` is reached. Since the parser doesn't see the rest of the file, it is expected that Ripper doesn't either. If you want to get `DATA` content, you can handle that using the result of the lex:
...
jeremyevans0 (Jeremy Evans)
12:04 AM Bug #17673: sysseek(0) and '1A' in header return "EOFError (end of file reached)"
Right, that solved it, the Ruby documentation should specify that. Ok, thanks. stiuna (Juan Gregorio)

03/05/2021

11:46 PM Bug #17673 (Closed): sysseek(0) and '1A' in header return "EOFError (end of file reached)"
I tried on Windows and I was able to reproduce the issue:
```
C:\Users\jeremye>c:\Ruby30-x64\bin\ruby
filePath = 'test.txt'
File.binwrite(filePath, "\x1A\x45")
descriptor = IO.sysopen(filePath)
file2Read = IO.new(descriptor)
f...
jeremyevans0 (Jeremy Evans)
11:39 PM Bug #17673: sysseek(0) and '1A' in header return "EOFError (end of file reached)"
Aaah! I don't know if it matters but I use Windows, did you run it on Linux all of a sudden? stiuna (Juan Gregorio)
11:28 PM Bug #17673: sysseek(0) and '1A' in header return "EOFError (end of file reached)"
Can you try on a different machine to check if this is a local problem?
Unfortunately I don't have another computer to test the bug with, what version of ruby do you use?
stiuna (Juan Gregorio)
11:14 PM Bug #17673 (Feedback): sysseek(0) and '1A' in header return "EOFError (end of file reached)"
I tried your example and was unable to reproduce your problem:
```ruby
filePath = 'test.txt'
File.binwrite(filePath, "\x1A\x45")
descriptor = IO.sysopen(filePath)
file2Read = IO.new(descriptor)
file2Read.sysseek(0)
p file2Read.s...
jeremyevans0 (Jeremy Evans)
11:03 PM Bug #17673 (Closed): sysseek(0) and '1A' in header return "EOFError (end of file reached)"

The first byte of my file starts with the value **'1A'** .
Then:
``` ruby
descriptor = IO.sysopen(filePath)
file2Read = IO.new(descriptor)
file2Read.sysseek(0)
p file2Read.sysread(2).unpack('H*')
#=> "EOFError (end of file r...
stiuna (Juan Gregorio)
10:37 PM Feature #17347: Enumerator::Chain of Enumerator::Lazy should be lazy
This isn't a duplicate of #17216 even though it is related. I agree that this feature would be useful. I've included an implementation in the same pull request: https://github.com/ruby/ruby/pull/3811 jeremyevans0 (Jeremy Evans)
06:34 PM Misc #17635: DevelopersMeeting20210317Japan
* [Bug #11335] `ruby -r debug` catchpoint problem (jeremyevans0)
* This support is broken since Ruby 2.0.
* The debug library has no tests, and I'm guessing minimal usage.
* Can we remove debug from stdlib in Ruby 3.1?
* Alte...
jeremyevans0 (Jeremy Evans)
05:59 PM Bug #17672 (Closed): Ractor stdio does not belong to the ractor
When compiling with `RUBY_DEBUG`, the following code crashes.
```
$ ./miniruby -W0 -e 'p Ractor.new {$stdout.itself}.take'
<OBJ_INFO:rb_ractor_confirm_belonging@../debug/ractor_core.h:336> 0x000000010bec2fa0 [0 U] T_FILE (IO)
-e...
nobu (Nobuyoshi Nakada)
05:34 PM Bug #17671 (Closed): Possible deadlock with condition variables in Net::IMAP
jeremyevans0 (Jeremy Evans)
05:27 PM Bug #17671: Possible deadlock with condition variables in Net::IMAP
Filed under https://github.com/ruby/net-imap/issues/14. Feel free to close this. stanhu (Stan Hu)
04:52 PM Bug #17671 (Assigned): Possible deadlock with condition variables in Net::IMAP
Can you please file this issue in the net/imap repository: https://github.com/ruby/net-imap jeremyevans0 (Jeremy Evans)
04:40 PM Bug #17671 (Closed): Possible deadlock with condition variables in Net::IMAP
We're using Net::IMAP via the [MailRoom gem](https://github.com/tpitale/mail_room), and quite frequently we are seeing issues with the process not terminating even though we attempt to run `#Thread#join` with a 60-second timeout.
A GD...
stanhu (Stan Hu)
03:50 PM Bug #16784 (Closed): Compiling with --enable-load-relative and "musl-gcc -static" yields "negative string size (or size too big) (ArgumentError)"
Applied in changeset commit:git|8ccc12118ea5257f846476088eb9c64944560892.
----------
Keep libpath length non-negative [Bug #16784]
When runtime_libruby_path does not include '/', it attempts to call
rb_str_resize with negative length. ...
mame (Yusuke Endoh)
03:01 PM Bug #16784: Compiling with --enable-load-relative and "musl-gcc -static" yields "negative string size (or size too big) (ArgumentError)"
I don't know powerpc64le-linux-musl at all, but the patch looks reasonable to me. At least, it should be benign on other environments that now ruby works on. I will merge it. mame (Yusuke Endoh)
03:50 PM Revision 8ccc1211 (git): Keep libpath length non-negative [Bug #16784]
When runtime_libruby_path does not include '/', it attempts to call
rb_str_resize with negative length. This change makes sure that the
length non-negative.
Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
mame (Yusuke Endoh)
03:40 PM Feature #17638 (Assigned): Support backtracing with the libbacktrace library
mame (Yusuke Endoh)
03:39 PM Bug #13654 (Closed): irb save-history extension is not concurrency-safe
jeremyevans0 (Jeremy Evans)
03:18 PM Revision 261b746d (git): * 2021-03-06 [ci skip]
git[bot]
03:18 PM Revision 14e1739f (git): [ruby/irb] Make save-history extension safe for concurrent use
This makes the save-history extension check for modifications to
the history file before saving it. If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history ...
jeremyevans (Jeremy Evans)
03:08 PM Bug #17585: DWARF5 support?
Thank you @xtkoba and @vo.x !
I've created a PR https://github.com/ruby/ruby/pull/4240 to test the patch on the GitHub Actions CI. If @xtkoba can send a PR yourself, please ignore my PR and create yours (with commit message).
mame (Yusuke Endoh)
02:53 PM Bug #17656: Improper functions shown in C level backtrace information
Thank you @xtkoba .
Could you add a comment to the #ifdef hack?
And if possible, can you send a PR to github.com/ruby/ruby? It would be useful to check if it works on the CI before I merge it.
mame (Yusuke Endoh)
01:03 PM Bug #14824 (Closed): Endless Range Support in irb
Applied in changeset commit:git|2cc5827fdca97dbd1225a49a3114d28aa1cb2ef4.
----------
[ruby/irb] Do not continue line if last expression is an endless range
Fixes [Bug #14824]
https://github.com/ruby/irb/commit/63414f8465
jeremyevans (Jeremy Evans)
01:03 PM Revision 182cde8d (git): [ruby/irb] Add a test for not continuing when endless range at eol
https://github.com/ruby/irb/commit/1020ac9c65 aycabta (aycabta .)
01:03 PM Revision 2cc5827f (git): [ruby/irb] Do not continue line if last expression is an endless range
Fixes [Bug #14824]
https://github.com/ruby/irb/commit/63414f8465
jeremyevans (Jeremy Evans)
08:37 AM Revision 45b3a5f7 (git): rb_sym_interned_p: doesn't exist
Deleted decades ago in commit 6e0fed271c1d2e6f2b13b99d89d43e7d00e81472
Note also that we eventually ended up reinventing this exact same
functionality. It is called rb_check_id() now.
shyouhei (Shyouhei Urabe)
07:49 AM Bug #10961 (Open): Zlib corrupts data when receive signal
It doesn't look like it's fixed yet.
It may be a race condition between processes, or an environmental dependency that prevents it from being reproduced.
```
$ ruby -v bug10961.rb
ruby 3.1.0dev (2021-03-05T07:33:29Z master 7715d42...
wanabe (_ wanabe)
07:33 AM Revision 7715d428 (git): rb_enc_symname_type: indent
shyouhei (Shyouhei Urabe)
07:33 AM Revision 0a43f0de (git): rb_enc_symname_type: refactor reduce goto
A bit readable to me. shyouhei (Shyouhei Urabe)
01:38 AM Bug #16810: ruby segfaults on s390x with musl libc
I cannot reproduce this issue with mruby-2.1.0 + ruby-2.7.1p83 on my QEMU user emulated environment.
Is it still reproducible with the latest toolchain and libucontext? Of course it might be a case that it reproduces only on native en...
xtkoba (Tee KOBAYASHI)
01:33 AM Revision 0ead818d (git): Generating note.GNU-stack section for FreeBSD on x86.
Not enabling for ELF in general as not all platform support it
(e.g. NetBSD, implictly stack never executable).
David Carlier
01:26 AM Revision 99c33978 (git): * 2021-03-05 [ci skip]
git[bot]
01:26 AM Revision c230ccdb (git): coroutine arm64 generating note.GNU-stack section for linux.
David Carlier

03/04/2021

11:49 PM Feature #17219 (Closed): Make URI#hostname 86-89% and hostname= 55-154% faster
jeremyevans0 (Jeremy Evans)
11:26 PM Bug #11194 (Closed): Refactor env-sourced proxy logic for uri/generic
jeremyevans0 (Jeremy Evans)
11:23 PM Bug #11194: Refactor env-sourced proxy logic for uri/generic
This has been addressed in the URI gem by https://github.com/ruby/uri/pull/18. headius (Charles Nutter)
10:51 PM Bug #16784: Compiling with --enable-load-relative and "musl-gcc -static" yields "negative string size (or size too big) (ArgumentError)"
I have confirmed this issue with a recent 3.1.0dev version (33dc0a070a):
```
$ ./miniruby -e ""
./miniruby: negative string size (or size too big) (ArgumentError)
```
An observation using GDB:
```
Breakpoint 1, ruby_init_loadpat...
xtkoba (Tee KOBAYASHI)
10:42 PM Bug #12538 (Closed): hostsを書き換えてwebrickで書いたプロキシ―に繋いでいるとrubyが落ちる
Closing as webrick is no longer part of the standard library. If this is still an issue, please report it to https://github.com/ruby/webrick jeremyevans0 (Jeremy Evans)
10:19 PM Feature #9045: URIに含まれるエンコードされたID/パスワードがデコードされない
This is a request relating to #user and #password for URIs returning actual (encoded) values and not decoded values. The fact that #user and #password return the actual and not decoded values is not a bug, and changing the behavior of t... jeremyevans0 (Jeremy Evans)
02:40 AM Revision 446d000e (git): Strip trailing spaces [ci skip]
nobu (Nobuyoshi Nakada)
02:40 AM Revision dea08758 (git): Check for trailing spaces
nobu (Nobuyoshi Nakada)
02:31 AM Revision 18767821 (git): * 2021-03-04 [ci skip]
git[bot]
02:28 AM Revision bf089d78 (git): Fixed syntax error with gcc on macOS
Security/Authorization.h defines AuthorizationExternalForm by
using clang extension which allows variably modified types in a
file scope. As we just need high-level accessors only, include
Security/SecRandom.h instead.
nobu (Nobuyoshi Nakada)
12:32 AM Bug #17666: Thread#join hangs when Fiber.set_scheduler is set

[xtkoba (Tee KOBAYASHI)](https://bugs.ruby-lang.org/users/48178) - Re-verified in the latest development. It's fixed. Thanks for the update.
.
arjunmdas (arjun das)

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)
 

Also available in: Atom