[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18243] Re: Severe problem with garbage collection

From: Bertram Scharpf <lists@...>
Date: 2008-08-11 22:40:34 UTC
List: ruby-core #18243
Hi,

Am Dienstag, 12. Aug 2008, 01:51:57 +0900 schrieb Igal Koshevoy:
> On Mon, Aug 11, 2008 at 3:39 AM, Bertram Scharpf
> <lists@bertram-scharpf.de> wrote:
> > I have a really large amount of data here and a Ruby program
> > dealing with it. I noticed how this program started to use swap
> > space and then, hours later, terminated. Then I watched (Linux
> > here) "/proc/$$/statm". Yes, the whole memory was eaten up.
> 
> Thanks for reporting the issue. The 1.8.6_p230 official release had a
> memory leak in it, which is probably what you encountered. That
> problem has been resolved:
> http://redmine.ruby-lang.org/issues/show/216

Arrgh! About two years ago I happened to unmask the Gentoo package on
the machine in question and I didn't remember that because I mainly use
FreeBSD meanwhile. Sorry for the noise. As I noticed today, the p230
release disappeared from the Gentoo portage tree.

I had a short look at gc.c of the versions p111, p230, and p287. I
didn't find anything that's obvious. 

I just tried some pieces of code like the ones I cite below. Sorry, I
seem to have too less understandig when garbage collection takes place
to examine this further for now.

Bertram


________________________________

  def statm 
    File.open "/proc/#$$/statm" do |s| s.read end 
  end

  def f 
    a = [] 
    1000.times { a.push yield } 
    puts statm 
  end 
  f { "hello "*4096 }
  puts statm 

  def g
    a = "hello "*4096
    g
  end
  begin
    g
  rescue
    puts statm 
  end
  puts statm 

-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

In This Thread

Prev Next