Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1761

RecursiveMutex implementation for Tru64 has a bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7.0, 2.8.0
    • 3.0.0
    • Miscellaneous
    • None
    • Tru64 5.1, gcc 3.4.4

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            favoretti Vladimir Lazarenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: