General

Profile

buzztaiki (Taiki Sugawara)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

04/25/2022

01:06 PM Ruby Bug #18753: lineno= is not returning an integer
I see. Thank you for your comments. buzztaiki (Taiki Sugawara)

04/24/2022

04:59 PM Ruby Bug #18753: lineno= is not returning an integer
Ah.. I missed link markup... buzztaiki (Taiki Sugawara)
04:46 PM Ruby Bug #18753 (Rejected): lineno= is not returning an integer
The call-seq for `argf_set_lineno` says it returns an `integer`, but in fact it returns `nil`.
https://github.com/ruby/ruby/blob/84f410e5e64a2480a86de7c50f01f01f71816435/io.c#L9330
```ruby
p ARGF.send(:lineno=, 1)
```
```
nil...
buzztaiki (Taiki Sugawara)

05/16/2019

05:07 PM Ruby Bug #15779: After NoMemoryError, ruby freezes and takes 100% CPU
Thank you for your reply!
In my environment, this patch with ruby 2.6.3 has been fixed this issue (ruby was not frozen)!!
```
~/opt/ruby/bug15779_v2_6_3_fix/bin/ruby ~/tmp/a.rb
#<StringIO:0x000055914e06fda8 @base_uri=#<URI::HTTPS h...
buzztaiki (Taiki Sugawara)

04/29/2019

01:37 AM Ruby Bug #15779: After NoMemoryError, ruby freezes and takes 100% CPU
I test this reproduction code at ruby 2.5.5 (ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]). In this version, this issue is not reproduced (ruby is not frozen).
```
~/opt/ruby/2.5.5/bin/ruby a.rb
#<StringIO:0x0000560b3...
buzztaiki (Taiki Sugawara)
01:36 AM Ruby Bug #15779: After NoMemoryError, ruby freezes and takes 100% CPU
In this situation, I want ruby to finish GC quickly or to crash.
In my production code, this issue has been avoided by not creating huge objects and by using rescue and re-raise.
I attach strace log (`strace -ttt -o strace.txt ruby...
buzztaiki (Taiki Sugawara)

04/20/2019

12:40 PM Ruby Bug #15779: After NoMemoryError, ruby freezes and takes 100% CPU
I rewrote this issue to English. buzztaiki (Taiki Sugawara)
12:15 PM Ruby Bug #15779: After NoMemoryError, ruby freezes and takes 100% CPU
Sorry, I wote bug report in Japanese to ruby-core.
In English:
Subject: After NoMemoryError, ruby freezes and takes 100% CPU
Description:
Run following reproduce code, ruby freezes and takes 100% CPU.
```
require 'open-uri'...
buzztaiki (Taiki Sugawara)
11:57 AM Ruby Bug #15779 (Closed): After NoMemoryError, ruby freezes and takes 100% CPU
Run following reproduce code, ruby freezes and takes 100% CPU.
```
require 'open-uri'
begin
"a" * 10000000000
ensure
p open('https://www.ruby-lang.org/')
end
```
But interestingly, the following code does not reproduce...
buzztaiki (Taiki Sugawara)

Also available in: Atom