Project

General

Profile

Actions

Bug #8836

closed

[BUG] Bus Error with bundler on large Gemfile when resolving dependencies

Added by dammer (Damir Sharipov) about 11 years ago. Updated over 3 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
Backport:
[ruby-core:56880]

Description

ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]

rbenv -v
rbenv 0.4.0-49-g8b04303

bundle --version
Bundler version 1.3.5

gem -v
2.0.3

To reproduce run bundle install in test folder

Also i have other crashes on work project on bundle update something
https://gist.github.com/dammer/6376260
https://gist.github.com/dammer/6376174


Files

test.tar.gz (1.88 KB) test.tar.gz test folder with large Gemfile dammer (Damir Sharipov), 08/30/2013 10:13 PM
gistfile1.txt (264 KB) gistfile1.txt crashdump dammer (Damir Sharipov), 08/30/2013 10:13 PM
ruby_config.txt (7.71 KB) ruby_config.txt my ruby config dammer (Damir Sharipov), 09/03/2013 09:21 PM

Updated by dammer (Damir Sharipov) about 11 years ago

upd: After update system on 64 bit all work "3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux"
on 32bit bug still present

Updated by drbrain (Eric Hodel) about 11 years ago

You ran out of stack space.

bundler uses a recursive algorithm for resolving gems, so if your Gemfile is overly complex this will occur.

Sometimes ruby does not properly detect that it has run out of stack space, so a crash occurs instead.

The current best workaround is to make your Gemfile less complex.

Updated by dammer (Damir Sharipov) about 11 years ago

I hope ulimit -s 8192 should help on 32bit system. Will test later and report

Updated by drbrain (Eric Hodel) about 11 years ago

  • Subject changed from [BUG] Bus Error rubygems/bundler on large Gemfile when resolving dependencies to [BUG] Bus Error with bundler on large Gemfile when resolving dependencies

Updated by dammer (Damir Sharipov) almost 11 years ago

ulimit -s 20000 fix this bug on 32bit kernel

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Actions #8

Updated by jeremyevans0 (Jeremy Evans) over 3 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0