Bug #8836
[BUG] Bus Error with bundler on large Gemfile when resolving dependencies
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
History
#1
[ruby-core:56989]
Updated by dammer (Damir Sharipov) over 4 years ago
- File ruby_config.txt ruby_config.txt added
#2
[ruby-core:58035]
Updated by dammer (Damir Sharipov) over 4 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 drbrain (Eric Hodel) over 4 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 dammer (Damir Sharipov) over 4 years ago
I hope ulimit -s 8192
should help on 32bit system. Will test later and report
#5
[ruby-core:58072]
Updated by drbrain (Eric Hodel) over 4 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 dammer (Damir Sharipov) over 4 years ago
ulimit -s 20000 fix this bug on 32bit kernel