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)
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)
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)
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)
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)
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)