Hello,

> require 'xml/libxml'
>
> (1..10000).each{|time|
>  XML::Document.file('test.xml')
>  p time if time % 100 == 0
> }

>>Comment By: Charlie Savage (cfis)
> Date: 2008-07-09 11:37
>
> Message:
> I assume this is now fixed with the new memory model.

It won't segfault anymore, but now I get the following error:

$ ruby libxml-test.rb
100
200
Too many open filesI/O warning : failed to load external entity "test.xml"
libxml-test.rb:7:in `file': test.xml (IOError)
        from libxml-test.rb:7
        from libxml-test.rb:6:in `each'
        from libxml-test.rb:6

However, the error disappears if "GC.start" is inserted just above
XML::Document.file(...).

This happens with libxml-ruby 0.7.0 (gem), but it has been the same
since the new memory model was first introduced.

The tested platforms are:
Mac OS 10.5.4 (Intel) and Ubuntu Linux 8.04 (i686).

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

Reply via email to