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 "Tarkus, Anand (LNG-DAY)" <an...@lexisnexis.com> on 2003/12/03 17:16:04 UTC

Xerces-C 2.1.0 - core in XMLReaderFactory::createXMLReader().

Hi,
We use the Xerces-C version 2.1.0 in our multithreaded application. This
application creates around 100 threads with each thread creating 2 instances
of the SAX2XMLReader. 
It seems the XMLReaderFactory::createXMLReader() is not multi thread safe,
it dumps core.

stack trace using dbx:

  [1] pthread_mutex_lock(0x0, 0x0, 0xc3474, 0xfe941cbc, 0xff1a1660,
0x707b48), at 0xfebe2168
  [2] XMLPlatformUtils::compareAndSwap(0x1240, 0x72a7c0, 0x0, 0x1000,
0xc3154, 0xff0a58e8), at 0xff0de530
  [3] gScannerMutex(0x707340, 0x72a7c0, 0x87eb0, 0xff230ab0, 0xff1a1660,
0x1400), at 0xff1197f4
  [4] XMLScanner::commonInit(0x889e98, 0x1794, 0x1400, 0xff25651c, 0x85e98,
0x800), at 0xff11b7e0
  [5] XMLScanner::XMLScanner(0x889e98, 0x1, 0x889f70, 0x889f80, 0x889f90,
0x889fa0), at 0xff119b60
  [6] SAX2XMLReaderImpl::SAX2XMLReaderImpl(0x73d318, 0x1c00, 0x73d32c,
0xff25651c, 0xff1a1660, 0x73d34c), at 0xff0c9330
=>[7] XMLReaderFactory::createXMLReader(), line 108 in
"XMLReaderFactory.hpp"

any ideas...?

Thanks,
Anand.


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