You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by th...@ascentialsoftware.com on 2002/06/20 20:22:03 UTC

Purify and xalan-c

Does anyone ran Purify on Xalan-c before?
I am purifying my code (which is using Xalan-c) on a windows 2000 machine
(using xalan-c 1.3).
I get a lot of FMM: Freeing mismatched memory (see a couple of example
above) which seems to be within Xalan code itself.

The purify documentation about FMM error is the following:

An FMM message indicates that the program is trying to free memory with the
wrong API call for that type of memory.

Purify reports a FMM message when the program allocates memory from one
family of APIs and then deallocates the memory from a mismatched family. For
example, a FMM message can occur when you use new to allocate memory and
free to free the memory. You can also get this message when you use one heap
to allocate memory and a wrong heap to deallocate the memory. 

Any ideas? Am I doing something wrong somewhere?

Thanks.

Thomas


E] FMM: Freeing mismatched memory in free {81 occurrences}
        Address 0x03c708a0 points into a C++ new block in heap 0x025f0000
        Location of free attempt
            free           [msvcrt.dll]
            XSLException::~XSLException(void) [PlatformSupport.dll]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]
        Allocation location
            new(UINT)      [msvcrt.dll]
            XalanDOMString::append(WORD const*,UINT) [XalanDOM.dll]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]
[E] FMM: Freeing mismatched memory in free {385 occurrences}
        Address 0x03d20a08 points into a C++ new block in heap 0x025f0000
        Location of free attempt
            free           [msvcrt.dll]
            XMLSupportInit::terminate(void) [XMLSupport.dll]
        Allocation location
            new(UINT)      [msvcrt.dll]
            FormatterToHTML::terminate(void) [XMLSupport.dll]
[E] FMM: Freeing mismatched memory in XMLSupportInit::terminate(void) {837
occurrences}
        Address 0x04f14e48 points into a C++ new block in heap 0x025f0000
        Location of free attempt
            XMLSupportInit::terminate(void) [XMLSupport.dll]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]
        Allocation location
            new(UINT)      [msvcrt.dll]
            FormatterToHTML::terminate(void) [XMLSupport.dll]
            ???            [ip=0x04f14cf0]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]
[E] FMM: Freeing mismatched memory in free {84 occurrences}
        Address 0x04f77490 points into a C++ new block in heap 0x025f0000
        Location of free attempt
            free           [msvcrt.dll]
            XUnknown::terminate(void) [XPath.dll]
            XPath::initialize(void) [XPath.dll]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]
        Allocation location
            new(UINT)      [msvcrt.dll]
            XalanDOMString::append(WORD const*,UINT) [XalanDOM.dll]
            XMLReaderStage::initializeXSLTTools(void)
[XMLReaderStage.cpp:429]
            XMLReaderStage::initialize(void) [XMLReaderStage.cpp:91]
            Initialize     [XMLReaderStageMain.cpp:58]
            DSCLinkPropFromLong [DSPlugin.dll]
            ???            [ip=0x00140004]
            ???            [uvsh_pure.exe ip=0x00408059]