Dear Maintainer,
There is a crash bug in Ruby 3.1's BigDecimal class of the standard library
that is triggered by math on certain numerical values, which to my
understanding is corrected in Ruby 3.2 and in this patch:
https://github.com/ruby/bigdecimal/commit/127a1b5a31c4290945035ec7e07bb7b185a81ee2 .
How to reproduce:
ruby -r bigdecimal -e "BigDecimal('1') / (BigDecimal('1') + 0.08)**19"
The result is program termination:
$ ruby -r bigdecimal -e "BigDecimal('1') / (BigDecimal('1') + 0.08)**19"
-e:1: [BUG] ERROR(VpDivd): space for remainder too small.
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]