Project

General

Profile

Bug #10961 » bug10961.rb

wanabe (_ wanabe), 03/05/2021 07:47 AM

 

require 'zlib'
Signal.trap("INT") {}

str = ("A".."z").to_a.join("") * 100000
20.times do |i|
str << str.dup
spawn("ruby", "-e", <<~"end;", $$.to_s) # it must be out of GVL
sleep 0.1
begin
Process.kill :INT, ARGV[0].to_i
rescue Errno::ESRCH
end
end;
Zlib::Deflate.deflate(str)
end
(2-2/2)