0

既存の Rails 3.2 アプリケーションを Rails 4 にアップグレードしています。Ubuntu 13.04 で rbenv を介して ruby​​ 1.9.3p429 (2013-05-15 リビジョン 40747) [x86_64-linux] を使用しています。Rails 3.2 で「--binstubs」オプションを使用していました。アップグレード中、私は:

  • Rails を Rails 4.0.0 にアップグレードしました
  • 最新のRails 4相当のgemでGemfileをアップグレードしました
  • 「bundle config --delete bin && rm -rf bin」を実行しました

「rake rails:update:bin」コア ダンプを実行すると、先頭の数行が次のようになります。

/home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228: [BUG] Segmentation fault
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0039 p:---- s:0128 b:0128 l:000127 d:000127 CFUNC  :require
c:0038 p:0010 s:0124 b:0124 l:000116 d:000123 BLOCK  /home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228
c:0037 p:0071 s:0122 b:0122 l:000121 d:000121 METHOD /home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213
/home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228: [BUG] Segmentation fault
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]

Gem のサイズとエラー出力を考慮して、https: //gist.github.com/grcarey/6109181 に Gist を作成しました。これには、Gemfile と rake コマンドからの出力が含まれています。

これを解決するためのいくつかのアイデアは大歓迎です。

- - - - - アップデート - - - - - -

「ruby 1.9.3p392 (2013-02-22 Revision 39386) [x86_64-linux]」でコマンドを実行すると、エラー出力に次の数行が表示されます。

-- Control frame information -----------------------------------------------
c:0039 p:---- s:0128 b:0128 l:000127 d:000127 CFUNC  :require
c:0038 p:0010 s:0124 b:0124 l:000116 d:000123 BLOCK  /home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228
c:0037 p:0071 s:0122 b:0122 l:000121 d:000121 METHOD /home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213
c:0036 p:0019 s:0117 b:0117 l:000116 d:000116 METHOD /home/user/projects/proj_name/.bundle/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228
c:0035 p:0011 s:0112 b:0112 l:000111 d:000111 TOP    /home/user/projects/proj_name/.bundle/gems/nokogiri-1.6.0/lib/nokogiri/xml.rb:1
c:0034 p:---- s:0110 b:0110 l:000109 d:000109 FINISH
Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
4

1 に答える 1