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 xe...@xml.apache.org on 2004/10/19 19:56:52 UTC

[jira] Closed: (XERCESC-194) XMLReaderFactory::createXMLReader -> Not thread safe on Tru64

Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-194

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-194
    Summary: XMLReaderFactory::createXMLReader -> Not thread safe on Tru64
       Type: Bug

     Status: Closed
 Resolution: WON'T FIX

    Project: Xerces-C++
 Components: 
             SAX/SAX2
   Versions:
             1.4

   Assignee: 
   Reporter: paul.nolan

    Created: Tue, 4 Sep 2001 8:31 AM
    Updated: Tue, 19 Oct 2004 10:55 AM
Environment: Operating System: Other
Platform: Other

Description:
Hi,

I think we have found a problem with XMLReaderFactory::createXMLReader on 
Tru64. We have a multithreaded environment (actually in this test case there 
are two threads). While one thread is waiting, the other thread tries to create 
a parser. The test core dumps with the following trace : 

>0  0x3ff805a5138 in __krnLock(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x25, 
0x2000141fc40) in /usr/shlib/libpthread.so
#1  0x3ff805a9e14 in __muEnterOnly(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x25, 
0x2000141fc40) in /usr/shlib/libpthread.so
#2  0x3ff805acf38 in UnknownProcedure44FromFile8(0x140013f18, 0x1, 
0x20000f153c8, 0x1, 0x25, 0x2000141fc40) in /usr/shlib/libpthread.so
#3  0x3ff805ad550 in UnknownProcedure45FromFile8(0x140013f18, 0x1, 
0x20000f153c8, 0x1, 0x0, 0x0) in /usr/shlib/libpthread.so
#4  0x3ff805a97fc in __pthread_mutex_unlock(0x140013f18, 0x1, 0x20000f153c8, 
0x1, 0x0, 0x0) in /usr/shlib/libpthread.so
#5  0x3ffbffd0aa8 in unlockMutex(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x0, 
0x0) in /ratings/ratings/PREPAID/Phase1/lib/libxerces-c1_4.so
#6  0x3ffbffaeb34 in ~XMLMutexLock(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x0, 
0x0) in /ratings/ratings/PREPAID/Phase1/lib/libxerces-c1_4.so
#7  0x3ffbffdecb4 in commonInit(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x0, 0x0) 
in /ratings/ratings/PREPAID/Phase1/lib/libxerces-c1_4.so
#8  0x3ffbffdd0e4 in XMLScanner(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x0, 0x0) 
in /ratings/ratings/PREPAID/Phase1/lib/libxerces-c1_4.so
#9  0x3ffbffc412c in SAX2XMLReaderImpl(0x140013f18, 0x1, 0x20000f153c8, 0x1, 
0x0, 0x0) in /ratings/ratings/PREPAID/Phase1/lib/libxerces-c1_4.so
#10 0x3ffbe03b990 in createXMLReader__16XMLReaderFactoryXv
() "/home/pnolan/Prg/Xerces/Tru64/xerces-c-src_2001-02-12-
OSF1/include/sax2/XMLReaderFactory.hpp":93
#11 0x3ffbe03ba10 in ((PrepaidConfigReader*)0x20000f157d0)-
>PrepaidConfigReader::PrepaidConfigReader() "PrepaidConfigReader.cpp":29
#12 0x3ffbdf7fbe0 in ((CWAPConfigurer*)0x140029fc0)-
>CMG_PBRE_Rules::CWAPConfigurer::configureTechnology(logger=& class 
CRulesEngineErrorLogger { ... }, licenseChecker=& class CRulesEngineLicenses 
{ ... }, rater=& 0x0) "Framework/CWAPConfigurer.cpp":225
#13 0x3ffbdf473a0 in CMG_PBRE_Rules::CRulesEngineDriver::resync(logger=& class 
CRulesEngineErrorLogger { ... }) "Framework/CRulesEngineDriver.cpp":324
#14 0x3ffbdf46848 in sync
(pr_driver=0x14000aad0) "Framework/rulesEngineDriver.cpp":137
#15 0x120002f04 in resync(arg=0x14000aad0) "UnitTest.c":334
#16 0x3ff805bd228 in __thdBase(0x140013f18, 0x1, 0x20000f153c8, 0x1, 0x0, 0x0) 
in /usr/shlib/libpthread.so

Note that the other thread is off waiting elsewhere and does not use, create or 
interact in any way with xerces. The code is quite simple : 

    m_parser = XMLReaderFactory::createXMLReader();

Any help on this would be extremely grateful.

Best regards,

- Paul Nolan,
  CMG, UK.
  Paul.Nolan@compans.com


---------------------------------------------------------------------
JIRA INFORMATION:
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