Project

General

Profile

Actions

Bug #9433

closed

Backquote fail to allocate memory

Added by dlibanori (Daniel Libanori) about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
1.9.3, 2.0.0 and 2.1.0
[ruby-core:59906]

Description

Backquote fail to allocate memory even if you have free memory.

When your ruby process takes more memory then you have free, backquote fail to run the most simple command. Same issue with Open3.popen3. Kernel#system works fine. I don't know ruby's internal, but I think it is something related with pipe_open.

I am trying this script in Ubuntu Server 13.10 64 bits with 256 MB no swap at VirtualBox.


Files

fork.rb (776 Bytes) fork.rb dlibanori (Daniel Libanori), 01/20/2014 02:41 PM

Updated by nagachika (Tomoyuki Chikanaga) about 10 years ago

  • Status changed from Open to Rejected
  • Assignee deleted (matz (Yukihiro Matsumoto))
  • Priority changed from 5 to Normal

Hello, Daniel.

Thank you for your reporting.
I cannot reproduce this, but I doubt your fork.rb have object leak. String objects are accumulated to local variable array at line.12. I think it's regular behavior.

Updated by dlibanori (Daniel Libanori) about 10 years ago

Hello Tomoyuki,

I am forcing memory usage through inserting string at an array. Actually, something like this is happing at another project I am working. My server has something about 1.6GB memory, my Ruby process is using 1.2GB and it crashes when it tries to call a console utility even with 400MB free.

If you want I can upload my VirtualBox image at S3 and you can see 'fork.rb' failing.

Updated by dlibanori (Daniel Libanori) about 10 years ago

Daniel Libanori wrote:

Hello Tomoyuki,

I am forcing memory usage through inserting string at an array. Actually, something like this is happing at another project I am working. My server has something about 1.6GB memory, my Ruby process is taking 1.2GB and it crashes when it tries to call a console utility even with 400MB free.

If you want I can upload my VirtualBox image at S3 and you can see 'fork.rb' failing.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0