Thanks for getting to this so quickly. The patch prevents the crash on OS X and linux, but causes another, far worse problem.
With the patch applied to the head of cvs, the testcase seems to *not* copy some number of nodes. I ran this test with and without the patch. 1) run the test, 2) format the output for consistency, 3) grep "<section>" and do a word count on the lines found ruby merge.rb 1000 xmllint --format generated_form.xml > output.xml cat output.xml | grep "<section>" | wc -l With the unpatched version, the result of grep & wc -l was always equal to the number of times you told the merge.rb program to run. With the patched version, after a certain threshold, the output started to differ from the number of times you told the testcase to merge. So, on the linux box, for 1000 times with the patch applied, the result would be 18. Without the patch, it would be 1000. On the linux box, if you gave it a lower number, like 100, the results of applied vs. unapplied patch would be the same - 100. On the OS X box, with a target number of 100, the unapplied patch would be 100, and the applied patch result would be 52. Thanks for helping to get this problem resolved. Doug On 6/3/06, Ross Bamford <[EMAIL PROTECTED]> wrote: > On Fri, 02 Jun 2006 20:31:33 +0100, Doug Bryant <[EMAIL PROTECTED]> > wrote: > > > done - > > http://rubyforge.org/tracker/index.php?func=detail&aid=4635&group_id=494&atid=1971 > > > > Thanks for that. I've been working on this today, and I think it's down to > the way we handle copied nodes, especially between documents. The crash > occurs when the document is freed and tries to free it's nodes, since some > have already been freed (with their originating document). This whole area > needs some work but for now I'd appreciate if you could try the attached > patch against CVS head which will (hopefully) deal with this problem case. > > Cheers, > -- > Ross Bamford - [EMAIL PROTECTED] > > _______________________________________________ > 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