Red Hat Bugzilla – Bug 455406
Memory leak in Ruby interpreter
Last modified: 2008-10-10 06:02:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061712 Fedora/3.0-1.fc9 Firefox/3.0
Description of problem:
The ruby interpreter exhibits a memory leak in patchlevel 230 through 238.
Downgrading to ruby 1.8.6p110 or p114 (as shipped in f8 and f9) fixes this behaviour.
A fix is provided by upstream
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Can you test with ruby-184.108.40.2067-1.fc10 again?
I'm seeing the same thing in Fedora 9 with ruby-220.127.116.11-4, where one of our programs leaks 500+MB per day. The upstream bug report has another link to demonstrate the problem: http://pastie.org/228006. Running this with the F9 packages shows a jump in memory usage from about 3.5MB to 70MB by the end.
I built ruby-18.104.22.1687-1.fc10.src.rpm for F9 and re-ran the test, and this time the memory usage only went up to 4.5MB. That seems in line with the results I get from the ruby-1.8.5-5.el5_2.3 package in RHEL 5, so it appears to fix the problem.
It seems to be fixed by the current ruby-22.214.171.1247-2.fc9.i386.