|
List Info
Thread: seg fault
|
|
| seg fault |

|
2006-07-19 10:33:36 |
|
Hi All
I have written a small app to parse the
xsd file ,
When I run the following xsd file , I am
getting seg fault in libxml , and if I give backtrace, it loops indefinitely and
prints the following message
#3221 0x4008a100 in
xmlFARecurseDeterminism (ctxt=0x804eca0, state=0x804ea28, to=9, atom=0x0) at
xmlregexp.c:2429
My xsd file contains the following .
<?xml version="1.0"
encoding="UTF-8" ?>
<xsd:schema
xmlns sd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.pub.org"
xmlns="http://www.pub.org"
elementFormDefault="qualified">
<xsd:element
name="BookCatalogue">
<xsd:complexType>
<xsd:sequence
minOccurs="1" maxOccurs="13">
<xsd:element name="Book1" minOccurs="0" />
<xsd:sequence
minOccurs="1" maxOccurs="23">
<xsd:element
name="Book11" minOccurs="0" />
<xsd:element
name="Book12" minOccurs="0" />
<xsd:sequence
minOccurs="1" maxOccurs="34">
<xsd:element name="Book21" minOccurs="0" />
<xsd:element name="Book22" minOccurs="0" />
</xsd:sequence>
</xsd:sequence>
<xsd:element
name="Book3" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
My App is below
static int print_parseDS(xmlDocPtr doc){
xmlSchemaPtr schemaPtr = NULL;
xmlSchemaParserCtxtPtr ctxt = NULL ;
xmlSchemaValidCtxtPtr vxt = NULL;
ctxt =
xmlSchemaNewDocParserCtxt(doc);
schemaPtr = xmlSchemaParse(ctxt);
}
int main(int argc , char **argv) {
xmlDocPtr doc = NULL;
doc = xmlReadFile(argv[1] ,NULL,0);
print_parseDS(doc);
xmlFreeDoc(doc);
xmlCleanupParser();
return 0;
}
|
| seg fault |

|
2006-07-19 13:37:45 |
On Wed, Jul 19, 2006 at 04:03:36PM +0530, Vidhya wrote:
> Hi All
>
> I have written a small app to parse the xsd file ,
>
> When I run the following xsd file , I am getting seg
fault in libxml , and
> if I give backtrace, it loops indefinitely and prints
the following message
Provide the XSD as an attachment, and see first if you can
reproduce it
with xmllint in the last 2.6.26 version.
thanks,
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
|
|
| seg fault |

|
2006-07-21 10:24:44 |
I have attached the file which gives seg fault.
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat.com]
Sent: Wednesday, July 19, 2006 7:08 PM
To: Vidhya
Cc: xml gnome.org
Subject: Re: [xml] seg fault
On Wed, Jul 19, 2006 at 04:03:36PM +0530, Vidhya wrote:
> Hi All
>
> I have written a small app to parse the xsd file ,
>
> When I run the following xsd file , I am getting seg
fault in libxml , and
> if I give backtrace, it loops indefinitely and prints
the following
message
Provide the XSD as an attachment, and see first if you can
reproduce it
with xmllint in the last 2.6.26 version.
thanks,
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
|
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|