So I don't see this as a bug in the libxml bindings.

Maybe you are right, but if I change XML::Document.file("test.xml")
to File.open("test.xml"), I won't run out of file handles.

I wonder what makes the difference...


Well, File.open is a ruby method while Document.open is a libxml method. Perhaps Ruby has some smarts built into it with File.open and the garbage collector.

And if I remember correctly, even the original test code with
libxml-ruby 3.8 did not run out of file handles on 32bit intel machines
either - the reported segfault only affected the amd64 (and maybe
other) architecture.

Interesting. Could be a difference in libxml, or maybe a difference in the bindings. Would have to check svn to know for sure.

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