[libxml-devel] [ libxml-Bugs-8337 ] Opening many files causes segfault on fbsd-amd64
Charlie Savage
cfis at savagexi.com
Thu Jul 10 23:03:06 EDT 2008
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://rubyforge.org/pipermail/libxml-devel/attachments/20080710/a32774e1/attachment.bin>
More information about the libxml-devel
mailing list