C sure is lovely, isn't it. I will try to reproduce this. If you would not mind, please post this as a bug so I can track it at:
http://rubyforge.org/tracker/?atid=1971&group_id=494&func=browse Dan On Feb 7, 2008, at 03:36, Saurabh Nanda wrote: >> Are you sure it is the doc reference and not the GC finalizers >> running? Put a print statement after it and see what happens. > > Probably what you're saying is right. I don't fully understand what > effect the GC finalizers have, but I've tried the following script > (same script without the doc reference) in two cases: > > 1. ruby /tmp/xml/rb -- segfaults > 2. copy paste script in an irb session. Doesn't segfault at that > moment. However, as soon as you exit irb, it segfaults. > > require 'xml/libxml' > x=XML::Parser.string("<test>something</test>") > doc=x.parse > x.parse > > > What could the problem be? > > Nandz. > -- > http://nandz.blogspot.com > http://foodieforlife.blogspot.com > _______________________________________________ > libxml-devel mailing list > libxml-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/libxml-devel _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel