Bug #8836

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

Added by Damir Sharipov 8 months ago. Updated 5 months ago.

[ruby-core:56880]
Status:Open
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux] Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

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

test.tar.gz - test folder with large Gemfile (1.88 KB) Damir Sharipov, 08/30/2013 10:13 PM

gistfile1.txt Magnifier - crashdump (264 KB) Damir Sharipov, 08/30/2013 10:13 PM

ruby_config.txt Magnifier - my ruby config (7.71 KB) Damir Sharipov, 09/03/2013 09:21 PM

History

#1 Updated by Damir Sharipov 8 months ago

#2 Updated by Damir Sharipov 6 months 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 x8664 x8664 x86_64 GNU/Linux"
on 32bit bug still present

#3 Updated by Eric Hodel 6 months 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.

#4 Updated by Damir Sharipov 6 months ago

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

#5 Updated by Eric Hodel 6 months 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

#6 Updated by Damir Sharipov 5 months ago

ulimit -s 20000 fix this bug on 32bit kernel

Also available in: Atom PDF