ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved