Charlie Savage wrote:
Dmitri Priimak wrote:
Charlie Savage wrote:
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
I see, but why is that needed? Are you using some global variables to
keep track of things?
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.
Could you expand on it, workaround that is? Perhaps I could help you
with it.
Does this bug persist in Ruby 1.9?
--
Dmitri Priimak
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel