You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "mind (JIRA)" <xe...@xml.apache.org> on 2005/03/07 13:06:53 UTC

[jira] Commented: (XERCESC-1354) Parallel parsing with validation

     [ http://issues.apache.org/jira/browse/XERCESC-1354?page=comments#action_60358 ]
     
mind commented on XERCESC-1354:
-------------------------------

This is hard to repeat. I tried writing short program, but with no results. I'll do this, but it will take some time.. 

> Parallel parsing with validation
> --------------------------------
>
>          Key: XERCESC-1354
>          URL: http://issues.apache.org/jira/browse/XERCESC-1354
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.5.0
>  Environment: Linux SMP
>     Reporter: mind

>
> I do following:
> 1. Create xercesx::XMLGrammarPoolImpl (including xercesc/internal/XMLGrammarPoolImpl.hpp)
> 2. Create 2 parsers, setting this one pool for both:
> new SAXParser(0,XMLPlatformUtils::fgMemoryManager,getGrammarPool())
> 3. Load grammar, turn on validation
> 4. fork
> 5. Do parallel parsing on 2 processors
> 6. Enjoy following backtrace:
> (gdb) bt
> #0  0x065db93c in xercesc_2_5::RefHash2KeysTableOfEnumerator<xercesc_2_5::SchemaAttDef>::findNext ()
>   from /usr/lib/libxerces-c.so.25
> #1  0x065dc0a7 in xercesc_2_5::RefHash2KeysTableOfEnumerator<xercesc_2_5::SchemaAttDef>::Reset ()
>   from /usr/lib/libxerces-c.so.25
> #2  0x066ae25e in xercesc_2_5::SchemaAttDefList::Reset () from /usr/lib/libxerces-c.so.25
> #3  0x065d93f1 in xercesc_2_5::ComplexTypeInfo::getAttDefList () from /usr/lib/libxerces-c.so.25
> #4  0x066672a4 in xercesc_2_5::getAttDefList () from /usr/lib/libxerces-c.so.25
> #5  0x06661e89 in xercesc_2_5::IGXMLScanner::buildAttList () from /usr/lib/libxerces-c.so.25
> #6  0x0665cdf3 in xercesc_2_5::IGXMLScanner::scanStartTagNS () from /usr/lib/libxerces-c.so.25
> #7  0x06658e44 in xercesc_2_5::IGXMLScanner::scanContent () from /usr/lib/libxerces-c.so.25
> #8  0x06657941 in xercesc_2_5::IGXMLScanner::scanDocument () from /usr/lib/libxerces-c.so.25
> #9  0x066a0647 in xercesc_2_5::SAXParser:arse () from /usr/lib/libxerces-c.so.25
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org