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
-
02:20 AM Bug #17675: StringIO#each_byte doesn't check for readabilty while iterating
- Please submit to https://github.com/ruby/stringio
-
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 -
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... -
01:36 AM Bug #17659 (Closed): Ractor: can't call io/wait methods
-
01:21 AM Revision 1d1b9e02 (git): Removed a typo in a comment [ci skip]
-
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... -
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 -
12:54 AM Revision ea81fff5 (git): [ruby/io-wait] bump up to 0.1.1
- https://github.com/ruby/io-wait/commit/88db082d60
-
12:54 AM Revision ef9bde65 (git): [ruby/io-wait] Refined uncommon device type tests
- https://github.com/ruby/io-wait/commit/0c73ebcf5d
-
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 -
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
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... -
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... -
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... -
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. -
09:56 PM Revision e1d16a9e (git): Make Enumerator#{+,chain} create lazy chain if any included enumerator is lazy
- Implements [Feature #17347]
-
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] -
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... -
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
... - 03:58 PM Revision 13dc0053 (git): * 2021-03-07 [ci skip]
-
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. -
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...
-
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, ...
-
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:
... -
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.
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... -
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?
-
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? -
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... -
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...-
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
-
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... -
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... -
05:34 PM Bug #17671 (Closed): Possible deadlock with condition variables in Net::IMAP
-
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.
-
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
-
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... -
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. ... -
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.
-
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> -
03:40 PM Feature #17638 (Assigned): Support backtracing with the libbacktrace library
-
03:39 PM Bug #13654 (Closed): irb save-history extension is not concurrency-safe
- 03:18 PM Revision 261b746d (git): * 2021-03-06 [ci skip]
-
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 ... -
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). -
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. -
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 -
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
-
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 -
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. -
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... -
07:33 AM Revision 7715d428 (git): rb_enc_symname_type: indent
-
07:33 AM Revision 0a43f0de (git): rb_enc_symname_type: refactor reduce goto
- A bit readable to me.
-
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... - 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). - 01:26 AM Revision 99c33978 (git): * 2021-03-05 [ci skip]
- 01:26 AM Revision c230ccdb (git): coroutine arm64 generating note.GNU-stack section for linux.
03/04/2021
-
11:49 PM Feature #17219 (Closed): Make URI#hostname 86-89% and hostname= 55-154% faster
-
11:26 PM Bug #11194 (Closed): Refactor env-sourced proxy logic for uri/generic
-
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.
-
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... -
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
-
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...
-
02:40 AM Revision 446d000e (git): Strip trailing spaces [ci skip]
-
02:40 AM Revision dea08758 (git): Check for trailing spaces
- 02:31 AM Revision 18767821 (git): * 2021-03-04 [ci skip]
-
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. -
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.
.
03/03/2021
-
11:34 PM Bug #8203 (Closed): Rinda: recycled object
-
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
-
11:33 PM Bug #11533 (Closed): AIX6.1 - Ruby 2.2.3 - TestMkmf::TestConvertible#test_typeof_builtin fails
-
10:44 PM Bug #17669 (Closed): An exception still breaks monitor state and causes deadlock in 2.6.7
-
10:38 PM Bug #17666 (Closed): Thread#join hangs when Fiber.set_scheduler is set
-
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... -
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... -
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. -
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 +-... -
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.
- 08:32 AM Revision db217689 (git): * 2021-03-03 [ci skip]
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). -
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... -
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... -
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
- 06:05 PM Revision 68f515cf (git): * 2021-03-03 [ci skip]
-
06:04 PM Revision 0bd1bc55 (git): Don't use mmap on platforms that have large OS page sizes
-
06:04 PM Revision 6d834371 (git): Fix typo
-
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... -
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(:%))
``` -
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 ... -
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.
-
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.
-
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... -
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.
... -
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...-
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... -
12:50 PM Bug #17581: Ruby 3.0 backtrace sometimes returns empty array
- ruby_3_0 4328f93f1bf08296115172a279e2d85a0ed80122 merged revision(s) 87437326214e4587a41946c8937e11418d983acd.
-
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... -
12:00 PM Bug #16760: backport #67305 / e39f7e64 to 2.6?
- ruby_2_6 r67912 merged revision(s) e39f7e64.
- 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... -
11:44 AM Bug #17024: Times with timezones return incorrect wday and yday
- backport into ruby_2_6 at r67911.
- 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 -
11:38 AM Bug #16918: Dir.mktmpdir should yield a copy of the dir to protect cleanup
- backported into ruby_2_6 at r67910.
- 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.... -
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.
- 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... -
11:25 AM Bug #16940: Backport 0ba27259d390e902139c0e2e94b9d18ef227748e
- ruby_2_6 r67908 merged revision(s) 0ba27259.
- 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 ... -
11:23 AM Bug #16979: FileUtils#cp_r with preserve, lchmod fails with ENOTSUPP
- ruby_2_6 r67907 merged revision(s) a19228f8.
- 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... -
11:22 AM Bug #16981: [ripper] mismatched indentations warning has disappeared since 2.6
- backported into ruby_2_6 at r67906.
- 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... -
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(-) -
09:28 AM Bug #17644: Ripper.lex fails with syntax error and heredoc
- ruby_3_0 a6dec2e144d65011d49f272e494bf62daf3d7531 merged revision(s) 5de38c41ae7bf17ae599fdfa9f8face87f16d8bb.
-
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... -
09:27 AM Bug #17622: Segfault in new Rails app
- ruby_3_0 5816725ccc9642101d447b0f3b03c14d232aec6a merged revision(s) 15dbaa0b54f10e43976d594ef987da5f51e0c7c1.
-
09:27 AM Bug #17653: SEGFAULT in ossl_ssl_read_internal
- ruby_3_0 713d6d5eb05de06a0de25feef801ff8c72c65754 merged revision(s) 265c0022390e3dcd4ff692fc77d29b94e652c877.
-
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.
-
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(-) -
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
+++ ... -
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... -
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.
-
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... -
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... -
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.
-
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... -
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(+) -
07:35 AM Bug #17668: Large RUBY_THREAD_VM_STACK_SIZE causes segmentation fault (again)
- I suppose this is a duplicate of Bug #17583.
-
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... -
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... -
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.
-
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? -
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
-
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?
-
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.)
-
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... -
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...-
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... -
12:24 AM Bug #17600: lib/benchmark should use `$stdout` instead of `STDOUT`
- Thanks for the reminder @jeremyevans0. Done.
-
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] - 12:23 AM Revision f7c342f8 (git): * 2021-03-02 [ci skip]
- 12:23 AM Revision 61f417ac (git): [lib/benchmark] Use $stdout instead of STDOUT [Bug #17600]
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_... -
11:34 PM Bug #17207 (Closed): message/disposition-notification: unexpected token LPAR (expected QUOTED or LITERAL)
-
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...
-
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!
-
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.
-
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
-
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... -
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, ...
-
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.
-
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
-
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.
-
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...
-
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]
``` -
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.
- 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... -
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?