Project

General

Profile

Bug #8836

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

Added by Damir Sharipov about 3 years ago. Updated almost 3 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
[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

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

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

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

History

#2 [ruby-core:58035] Updated by Damir Sharipov almost 3 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

#3 [ruby-core:58038] Updated by Eric Hodel almost 3 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.

#4 [ruby-core:58066] Updated by Damir Sharipov almost 3 years ago

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

#5 [ruby-core:58072] Updated by Eric Hodel almost 3 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

#6 [ruby-core:58237] Updated by Damir Sharipov almost 3 years ago

ulimit -s 20000 fix this bug on 32bit kernel

Also available in: Atom PDF