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

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to