At 12:06 PM -0600 3/17/09, Charlie Savage wrote:
What can I do to get a stack trace?

I'll let people more knowledgeable than I am on OS X anser. But at a minimum, compile the bindings with debug info (-g). And then maybe use this:

Would I do that with an invocation like this somehow:

  sudo gem install libxml-ruby -- --with-compile-flags=-g

I also have the libxml-ruby gem code checked out -- should I modify the rake task that builds the extensions:

ext = Config::CONFIG["DLEXT"]
task :extensions => ["ext/libxml/libxml_ruby.#{ext}"]
file "ext/libxml/libxml_ruby.#{ext}" =>
  ["ext/libxml/Makefile"] + FileList["ext/libxml/*.{c,h}"].to_a do |t|
  Dir.chdir("ext/libxml") { sh "make" }
end


http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man8/stackshot.8.html

That's interesting -- I'm going to see how it works.

The other way is to use gdb to load ruby, and then run the script.

I've seen instructions elsewhere for doing that.
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to