Dmitri Priimak wrote:
Charlie Savage wrote:I see, but why is that needed? Are you using some global variables to keep track of things?Traceback - sure. Make sure your version of libxml-ruby and libxml are compiled with debug information. Then enable crash dumps on your linux box. When you see a crash, inspect the crash dump.Alternatively, run your rails app under gdb (or attach to it with gdb) and set it up to break on an exception.Thanks, will do that next time.FYI - most likely situation is you are using document.find to get an xpath object. Then the xpath object is being freed after the document. To fix that for now:results = document.find('/') ... results = nil GC.start
In my view its a bug in Ruby's GC. See the emails I posted to ruby-core a couple month ago. There is a way to work around it, but haven't go to that yet.
Charlie
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel