简体   繁体   中英

Trace/BPT Trap with Rails via browser but not console

I've written a Rails application that uses the Subversion Ruby bindings. I've written adapters classes to adapt them to an interface of my liking.

After upgrading my project to Rails 3 and recompiling the SVN bindings for Ruby 1.9.2, I can go to the debug console and run require 'svn/core/ext' with no problems, as before. However, I get Trace/BPT trap when my adapter (which also runs require 'svn/ext/core') is included.

So in summary, I get Trace/BPT trap when running my appliation using Webrick and connection via browser, but I do not ge the error via the console.

Any ideas why or how I can debug this? The logs show nothing at all.

I have had the same issue in the past using a PDFLib library - where it didn't work in Webrick - but it did work in the console. Also after a Ruby upgrade.

I installed POW ( http://pow.cx/ ) and, I no longer get the Trace/BPT error.

So I would try use a different web server - and for my OS X machine, POW was the least painful one to install.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM