[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-core
Subject: [ ruby-Bugs-2034 ] memory leakage in DL module
From: noreply () rubyforge ! org
Date: 2005-06-14 22:12:20
Message-ID: 200506142207.j5EM7p0N024519 () rubyforge ! org
[Download RAW message or body]
Bugs item #2034, was opened at 2005-06-15 00:07
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2034&group_id=426
Category: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: stefan coremans (stef)
Assigned to: Nobody (None)
Summary: memory leakage in DL module
Initial Comment:
asume the folowing file a.c
int func (int a , int b) {
return (a+b);
}
compiled with cc -o a.so --shared a.c this give you a.so
when execute the following ruby file with memprofile under linux
once the script has reached the gets function.
You can see an important memory leak.
when doining a similar trial with "void func();" there is no leak
require 'dl/import'
module LIBC
extend DL::Importable
p dlload './a.so'
p extern "int func (int,int)"
end
10000.times {
p LIBC.func(3,2)
}
gets
additional info :
ruby 1.8.1 (2003-12-25) [i386-linux-gnu]
memprof 0.5.1
std fedora core 3 install.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2034&group_id=426
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic