37028
generating len=1000000000 string...
string length=1000000000
compressing...
^CINT (press Ctrl+C or send a signal to the pid)
zlib.rb:13:in deflate': data error (Zlib::DataError) from zlib.rb:13:in test_string'
from zlib.rb:25:in block in <main>' from zlib.rb:25:in each'
from zlib.rb:25:in `'
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 7715d428f1) [x86_64-linux]
bug10961.rb:15:in `deflate': data error (Zlib::DataError)
from bug10961.rb:15:in `block in <main>'
from bug10961.rb:6:in `times'
from bug10961.rb:6:in `<main>'