[#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:18350] [Bug:1.8] Re: Hard question: Any ideas why this code leaks memory?

From: Nobuyoshi Nakada <nobu@...>
Date: 2008-08-20 02:50:16 UTC
List: ruby-core #18350
Hi,

At Wed, 20 Aug 2008 04:46:24 +0900,
Sven C. Koehler wrote in [ruby-talk:311847]:
> could someone help me understand why this code leaks memory? (I am using
> ruby 1.8.6 (2007-12-03 patchlevel 113) [x86_64-linux].)
> 
> def rss_leaks
>   /^VmRSS:\s+(\d+)/m.match(File.open("/proc/#{$$}/status") {|f| 
>       f.read })[1].to_i
> end

> Calling GC.start inbetween does not help, but when we rewrote rss_leaks
> this way the leaks disappeared:
> 
> def rss_no_leaks()
>    d = File.open("/proc/#{$$}/status") {|f| f.read }
>    /^VmRSS:\s+(\d+)/m.match(d)[1].to_i
> end

Seems a bug.

-- 
Nobu Nakada

In This Thread

Prev Next