You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Memory leak with BigDecimal::EXCEPTION_OVERFLOW #290
I left a commented line, both trigger an memory leak. I assume it's the same bug
require 'bigdecimal'
BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, true)
10.times do |j|
100000.times do |i|
begin
BigDecimal("1E11111111111111111111")
#BigDecimal("1E1000000000000000000")**10 # Also leaks
rescue
end
end
GC.start
puts `ps -o rss= -p #{$$}`.to_i
end
Activity
mrkn commentedon May 4, 2024
@MaxLap Thank you for your report. I'm fixing this bug in #294.
mrkn commentedon May 7, 2024
@MaxLap I've released v3.1.8. It should fix this problem.