[
https://issues.apache.org/jira/browse/XERCESC-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov closed XERCESC-1887.
------------------------------------
Resolution: Invalid
Please try with 3.0.1. If the problem is still there, please reopen with a test
application that reproduces the problem.
> Segmentation fault on Linux in parseURI
> ---------------------------------------
>
> Key: XERCESC-1887
> URL: https://issues.apache.org/jira/browse/XERCESC-1887
> Project: Xerces-C++
> Issue Type: Bug
> Components: Non-Validating Parser
> Affects Versions: 2.6.0
> Environment: Linux
> Reporter: naveen bansal
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> I have various xml files that I am parsing using parseURI command. I have
> created the DOM parser object using following code:
> const XMLCh chLatin_L = 0x4C;
> const XMLCh chLatin_S = 0x53;
> const XMLCh chNull = 0x00;
>
> static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
> DOMImplementation *impl =
> DOMImplementationRegistry::getDOMImplementation(gLS);
> parser =
> ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,
> 0);
>
> parser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true);
> parser->setFeature(XMLUni::fgDOMNamespaces, true);
> parser->setFeature(XMLUni::fgXercesSchema, true);
> parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true);
> I am executing my application on Linux. Most of the time, parseURI command
> works fine. However at time, it crashes with following stack trace:
> #7 0x0857f0fc in
> xercesc_2_6::NameIdPool<xercesc_2_6::DTDElementDecl>::findBucketElem ()
> #8 0x0857f15f in
> xercesc_2_6::NameIdPool<xercesc_2_6::DTDElementDecl>::getByKey ()
> #9 0x085dc670 in xercesc_2_6::IGXMLScanner::scanStartTagNS ()
> #10 0x085d9dc2 in xercesc_2_6::IGXMLScanner::scanContent ()
> #11 0x085d8971 in xercesc_2_6::IGXMLScanner::scanDocument ()
> #12 0x0867db90 in xercesc_2_6::XMLScanner::scanDocument ()
> #13 0x0867dc19 in xercesc_2_6::XMLScanner::scanDocument ()
> #14 0x08550948 in xercesc_2_6::AbstractDOMParser::parse ()
> #15 0x085848c5 in xercesc_2_6::DOMBuilderImpl::parseURI ()
> On re-executing the application, problem may or may not occur. Please let me
> know if there exists a known issue in 2.6.0 release.
> In case a fix is available, please let me know ASAP.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]