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

Hi,
Can you try this on the latest code?  There have been some fixes to threading 
since 2.5.0 was released.

David

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to