Good new on this bug. Yesterday I fixed this problem and created an PR[1] for the Ruby project. Today the PR was finally accepted by the Ruby maintainer and now we have this problem finally fixed uptream.
The fix on upstream branch is commit-id f79cce41695b3a3f84d88afd1b586680f29 [2] I will now create a debdiff with this cherry-pick [1] https://github.com/ruby/ruby/pull/1768 [2] https://github.com/ruby/ruby/commit/b2047f79cce41695b3a3f84d88afd1b586680f29