Rails 3 与 mysql 和omniauth => [BUG] 分段错误
我尝试与 omniauth (devise +omniauth) 和 mysql 一起运行该项目。
例如 Twitter 授权报错:
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/net/http.rb:784: [BUG] ruby 1.9.3dev 分段错误 (2011-05-18 干线31628) [x86_64-darwin10.7.0]
-- 控制帧信息 ------------------------------------------ ----- c:0054 p:---- s:0330 b:0330 l:000329 d:000329 CFUNC :连接 c:0053 p:0011 s:0327 b:0327 l:000a80 d:000326 块 /Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/net/http.rb:784 c:0052 p:0111 s:0325 b:0325 l:0024a0 d:0024a0 方法 /Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/timeout.rb:60 c:0051 p:0026 s:0313 b:0313 l:000312 d:000312 方法 /Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/timeout.rb:91
...
1069 /Users/n3mfis/.rvm/gems/ruby-head/bundler/gems/rails-505defc27ead/activerecord/lib/active_record/relation/predicate_builder.rb 1070 /Users/n3mfis/.rvm/gems/ruby-head/bundler/gems/rails-505defc27ead/activerecord/lib/active_record/associations/collection_proxy.rb 1071 /Users/n3mfis/.rvm/gems/ruby-head/gems/multi_json-1.0.2/lib/multi_json/engines/json_gem.rb 1072 /Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/trans/utf_16_32.bundle
[注意]您可能遇到了错误 在 Ruby 解释器或扩展中 图书馆。欢迎报告错误。 详情: http://www.ruby-lang.org/bugreport.html
中止陷阱
如果我将 mysql 更改为 sqlite,然后一切正常...
对于 mysql 和 sqlite 网站的其他功能工作正常,没有任何错误(支架)
我尝试了
- ruby ruby-1.9.2-p180 和最后一个版本 ruby 1.9.3dev
- Rails 3.0.7和 Rails 3.1.0beta1
I try to run the project together with omniauth (devise + omniauth) and mysql.
For example Twitter authorization gives an error:
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/net/http.rb:784:
[BUG] Segmentation fault ruby 1.9.3dev
(2011-05-18 trunk 31628)
[x86_64-darwin10.7.0]-- Control frame information ----------------------------------------------- c:0054 p:---- s:0330 b:0330 l:000329
d:000329 CFUNC :connect c:0053 p:0011
s:0327 b:0327 l:000a80 d:000326 BLOCK
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/net/http.rb:784
c:0052 p:0111 s:0325 b:0325 l:0024a0
d:0024a0 METHOD
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/timeout.rb:60
c:0051 p:0026 s:0313 b:0313 l:000312
d:000312 METHOD
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/timeout.rb:91....
1069
/Users/n3mfis/.rvm/gems/ruby-head/bundler/gems/rails-505defc27ead/activerecord/lib/active_record/relation/predicate_builder.rb
1070
/Users/n3mfis/.rvm/gems/ruby-head/bundler/gems/rails-505defc27ead/activerecord/lib/active_record/associations/collection_proxy.rb
1071
/Users/n3mfis/.rvm/gems/ruby-head/gems/multi_json-1.0.2/lib/multi_json/engines/json_gem.rb 1072
/Users/n3mfis/.rvm/rubies/ruby-head/lib/ruby/1.9.1/x86_64-darwin10.7.0/enc/trans/utf_16_32.bundle[NOTE] You may have encountered a bug
in the Ruby interpreter or extension
libraries. Bug reports are welcome.
For details:
http://www.ruby-lang.org/bugreport.htmlAbort trap
If I change mysql to sqlite, then everything works fine...
For mysql and sqlite other features of the site work fine without any errors (scaffold)
I tried
- ruby ruby-1.9.2-p180 and last version ruby 1.9.3dev
- rails 3.0.7 and rails 3.1.0beta1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试添加这个选项:
导出 RUBYOPT='-r openssl'
Try to add this option:
export RUBYOPT='-r openssl'