0

我对我的铁路环境进行了更新,现在它在尝试渲染任何页面时都崩溃了。这在我之前没有发生过,我在这里找不到任何类似的问题,所以我发布这个是希望对如何纠正这个问题提出有用的建议,因为我不知道。

我在 Debian Linux beta 2.6.32-5-686 上使用 Rails 3.2.2、ruby 1.9.3p194 和 rvm 1.14.1。

今天我使用gem pristine --allbundle install将 Rails 和 ruby​​ 升级到这些最新版本。

rails 服务器启动正常(带有关于没有“秘密选项”的安全警告,但我相信这是无害的),但是当请求任何页面时,它会崩溃,转储跟踪的最后一部分如下:...

1030 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/finder_methods.rb
 1031 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/calculations.rb
 1032 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/spawn_methods.rb
 1033 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/query_methods.rb
 1034 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/batches.rb
 1035 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation/delegation.rb
 1036 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/relation.rb
 1037 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/associations/collection_proxy.rb
 1038 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/will_paginate-3.0.3/lib/will_paginate/active_record.rb
 1039 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.3/lib/active_record/base.rb
 1040 /home/caseyr/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb

* Process memory map:

08048000-08049000 r-xp 00000000 00:12 1074503381  /Net/delta/home/caseyr/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
08049000-0804a000 rw-p 00000000 00:12 1074503381  /Net/delta/home/caseyr/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
099b7000-0b76f000 rw-p 00000000 00:00 0          [heap]

...

which goes on for some time, then ends with:
b7582000-b7774000 r-xp 00000000 00:12 1611124550  /Net/delta/home/caseyr/.rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9.1
b7774000-b7778000 rw-p 001f1000 00:12 1611124550  /Net/delta/home/caseyr/.rvm/rubies/ruby-1.9.3-p194/lib/libruby.so.1.9.1
b7778000-b778a000 rw-p 00000000 00:00 0 
b778a000-b778b000 r-xp 00000000 00:00 0          [vdso]
b778b000-b77a6000 r-xp 00000000 08:02 654765     /lib/ld-2.11.3.so
b77a6000-b77a7000 r--p 0001b000 08:02 654765     /lib/ld-2.11.3.so
b77a7000-b77a8000 rw-p 0001c000 08:02 654765     /lib/ld-2.11.3.so
bf90a000-bf91f000 rw-p 00000000 00:00 0          [stack]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.

如果有人能指出我正确的方向来解决这个问题,我会很感激,因为我对这种行为感到困惑......

--rixter

4

1 回答 1

1

这可能是 ruby​​ 1.9.3 的段错误。openssl可能是罪魁祸首。尝试在 Gemfile 中更改 sourceto 'http://rubygems.org'。如果它有一些效果,然后--with-ssl-dir在全新安装后重新安装 ruby​​,openssl如下所示:

rvm pkg install openssl
rvm remove 1.9.3-p194
rvm install 1.9.3-p194 --with-openssl-dir=$rvm_path/usr

试试看是否可行

于 2013-01-14T22:53:05.250 回答