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 bu...@apache.org on 2001/09/04 17:31:54 UTC

[DO NOT REPLY: Bug 3412] New: XMLReaderFactory::createXMLReader -> Not thread safe on Tru64

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3412

*** shadow/3412	Tue Sep  4 08:31:54 2001
--- shadow/3412.tmp.23381	Tue Sep  4 08:31:54 2001
***************
*** 0 ****
--- 1,72 ----
+ +============================================================================+
+ | XMLReaderFactory::createXMLReader -> Not thread safe on Tru64              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3412                        Product: Xerces-C++              |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Major                    OS/Version: Other                   |
+ |     Priority: Other                     Component: SAX/SAX2                |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: Paul.Nolan@compans.com                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              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

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