pg gem跟踪/ BPT陷阱:MAC OS X狮子有5个错误 [英] pg gem Trace/BPT trap: 5 error on MAC OS X lion

查看:110
本文介绍了pg gem跟踪/ BPT陷阱:MAC OS X狮子有5个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的雪豹升级为狮子,并在我的一个应用程序中获得

  =>引导WEBrick 
=>在http://0.0.0.0:4000
=>上开发的Rails 3.0.4应用程序用-d呼叫以分离
=> Ctrl-C关机服务器
[2011-08-16 17:47:27]信息WEBrick 1.3.1
[2011-08-16 17:47:27] INFO ruby​​ 1.9.2(2011) -07-09)[x86_64-darwin11.0.0]
[2011-08-16 17:47:27]信息WEBrick :: HTTPServer#start:pid = 3460 port = 4000
Trace / BPT陷阱:5

应用程序退出并且没有其他输出,它使用sqlite3作为db gem运行。
我评论了所有其他的宝石,但这一个仍然得到了erros。我看到这个错误不是当应用程序加载时,而是当它试图回答第一个请求时。


任何人都知道另一个gem连接到postgresql或任何解决方法吗?

编辑:好的,这里有一些说明。



我开始使用雪豹这个项目,它运行得非常好,我安装了rvm,pg gem,webrick和ruby 1.9.2-p180,我升级到狮子和继续在其他项目上工作,当更新这个项目的时候,我得到了 Trace / BPT陷阱:5 错误,服务器没有提供其他线索上。我的猜测是这是非常低的水平,ruby解释器甚至没有机会显示异常,并且这个消息与STDIO相关。

试图解决这个问题我已经:重新安装rvm,安装红宝石1.9.2-p290,重新安装postgresql,删除并重建项目gemset,安装杂种,仍然是应用程序崩溃网络它获得第一个Web请求,请注意,它在轨道控制台上工作。



编辑2:现在运行在ruby-1.8.7-352上所以它似乎是一个关于MAC OS X 10.7的1.9.2相关问题编辑3:是一个XCODE 4.1问题,与llvm编译器和优化它在需要使用本机扩展进行构建时才会执行。解决方案是安装一个兼容的Xcode,更多的信息可以在RVM站点找到。解决方案

解决方案

一个简单的问题,在我的Gemfile中缺少gem'pg'。由于各种原因,它已被注释掉。


I recently upgraded my snow leopard to lion and in one of my apps i get

=> Booting WEBrick
=> Rails 3.0.4 application starting in development on http://0.0.0.0:4000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-08-16 17:47:27] INFO  WEBrick 1.3.1
[2011-08-16 17:47:27] INFO  ruby 1.9.2 (2011-07-09) [x86_64-darwin11.0.0]
[2011-08-16 17:47:27] INFO  WEBrick::HTTPServer#start: pid=3460 port=4000
Trace/BPT trap: 5

the app quits and there is no other output , it does run with sqlite3 as the db gem. I commented all other gems but this one and still got the erros. i see this error not when the app is loading but when it tries to answer the first request.

Anyone knows another gem to connect to postgresql or any workaround?

EDIT: OK here is some clarification.

I started this project on snow leopard and it worked perfectly, I had rvm installed , the pg gem, webrick and ruby 1.9.2-p180, I upgraded to lion and keep working on other projects, when the time come to update this project , i got the Trace/BPT trap: 5 error, and the server gives no other clue of what is going on. My guess is that this is something very low level and the ruby interpreter does not even gets the chance to show the exception and this message is STDIO related.

Trying to fix this i have: reinstalled rvm , installed ruby 1.9.2-p290, reinstalled postgresql, deleted and rebuild the gemset for the project, installed mongrel and still the app crashes web it gets the first web request, note that it does work on the rails console.

EDIT 2: It is now running on ruby-1.8.7-352 so it seem is a 1.9.2 related issue on MAC OS X 10.7

EDIT 3: Is a XCODE 4.1 issue that has to do with llvm compiler and the "optimization" it does when there is need to build with native extension. The solution is to install a compatible Xcode, more info can be found at the RVM site.

解决方案

I fixed this - it was a simple issue of a missing "gem 'pg'" in my Gemfile. For various reasons it had been commented out.

这篇关于pg gem跟踪/ BPT陷阱:MAC OS X狮子有5个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆