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. Ho开发者_高级运维wever, 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.
精彩评论