RecursiveMutex implementation for Tru64 has a bug
-------------------------------------------------

                 Key: XERCESC-1761
                 URL: https://issues.apache.org/jira/browse/XERCESC-1761
             Project: Xerces-C++
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: 2.7.0, 2.8.0
         Environment: Tru64 5.1, gcc 3.4.4
            Reporter: Vladimir Lazarenko
            Priority: Blocker


in src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp:

 void* XMLPlatformUtils::makeMutex(MemoryManager* manager)
 {
  return new (manager) RecursiveMutex(manager);
 }

placement overload of new uses STL overload instead of the overload in XMemory, 
since RecursiveMutex doesn't inherit from XMemory, hence, each consequential 
instantiation of Mutex overwrites memory manager, causing xercesc to crash.

A trivial fix for this would be:

-class  RecursiveMutex
+class  RecursiveMutex : public XMemory



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to