[xml] libxml2 + RELAX NG bug




Hi,

I'm getting a segfault while trying to validate documents using a RELAX NG
schema. Valid files
are okay, but invalid ones lead to the segfault.

Environment:

tadgh tadgh comhairle ie$ uname -a
FreeBSD tadgh.comhairle.ie 4.8-RELEASE FreeBSD 4.8-RELEASE

tadgh tadgh comhairle ie$ pkg_version -v | grep libxml
libxml2-2.5.7_1                     =   up-to-date with port

tadgh tadgh comhairle ie$ xmllint --version
xmllint: using libxml version 20507
   compiled with: FTP HTTP HTML C14N Catalog DocBook XPath XPointer XInclude
Iconv Unicode Regexps Automata Schemas

Files:

test.rng:
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0";>
<start>
<ref name="document"/>
</start>
<define name="document">
<element name="document">
<zeroOrMore><text/></zeroOrMore>
</element>
</define>
</grammar>

testcase1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<document/>
testcase2.xml:
<?xml version="1.0" encoding="UTF-8"?>
<dcument/>

Error:
tadgh tadgh comhairle ie$ xmllint --noout --relaxng testcase.rng testcase1.xml
testcase1.xml validates
tadgh tadgh comhairle ie$ xmllint --noout --relaxng testcase.rng testcase2.xml
Bus error (core dumped)

Regards,

Tadgh O'Leary



#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]