Re: XML::LibXML - vaidation problem
by Christian Glahn other posts by this author
Oct 4 2002 9:11AM messages near this date
view in the new Beta List Site
XML::LibXML - vaidation problem
|
RE: Where to download LibXML and LibXSLT modules?
On Wed, Oct 02, 2002 at 10:01:31AM +0200, Petr Pajas wrote:
> Hi All,
>
> I'm experiencing a strange problem. While the following piece of XML
> passes through 'xmllint --valid' without problems it makes XML::LibXML
> SIGSEGV during validation. On the other hand, almost all other XML
> files with a DTD I have validate without problems. Is the problem
> related to my configuration only or can also somebody else reproduce
> it?
yes, i was able to reproduce it.
actually 'xmllint --postvalid' would do the correct post parsing validation,
but this passes correct as well. i found out, that the segmentation fault
was caused by two not properly initialized struct members in the validation
context.
XML::LibXML used the same code as xmllint did, so it was quite hard to
figure out what was going on there. It seems, that perl messes the memory
a bit, so a variable (in this case the validation context) may gets some
values where no value should be.
the problem goes away after initializing the particular members in the
validation context. this is now done in XML::LibXML's cvs version.
christian
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Petr Pajas
Christian Glahn
|