I have successfully built both:

Xerces-c-src_2_6_0.tar.gz and xml-xalan_20050308053011.tar.gz on the AIX
platform using the xlc/xlC compilers respectively.

However I have been experiencing strange results when trying to use the
XalanDOMString component, whenever the constructor is called it causes
the program to instantly terminate.

The source I am using for test purposes, is correctly structured as all
calls are carried out between the relevant XMLPlatformUtils and
XalanTransformer Initialise/Terminate calls, see below:

#include <xalanc/Include/PlatformDefinitions.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xalanc/XalanTransformer/XalanTransformer.hpp>
#include <xalanc/XalanDOM/XalanDOMString.hpp>

#include <iostream>
#include <string>

using namespace xalanc;
using namespace xercesc;

int main(void)
{
        try
        {
                XALAN_USING_XERCES(XMLPlatformUtils)
                XALAN_USING_XALAN(XalanTransformer)

                // Initialise the various components.
                XMLPlatformUtils::Initialize();
                XalanTransformer::initialize();

                // Generate an instance of a XalanDOMString...
                std::string path("/HOME/PTHOMAS/");
                XalanDOMString test = XalanDOMString(path.c_str());

                // Terminate the various components.
                XalanTransformer::terminate();
                XMLPlatformUtils::Terminate();
                XalanTransformer::ICUCleanUp();
        }
        catch(...)
        {
                std::cerr << "An Unknown Error has occured...." <<
std::endl;
        }

        return EXIT_SUCCESS;
}


The following is a coredump which is produced as a result:

warning: Unable to access address 0xfffffffffffffffc from core 
warning: Unable to access address 0xfffffffffffffffc from core 
warning: Unable to access address 0xfffffffffffffffc from core 
warning: Unable to access address 0xfffffffffffffffc from core 
.() at 0x0 
deallocate__Q2_10xalanc_1_911XalanVectorXTUsTQ2_10xalanc_1_931MemoryMana
gedConstructionTraitsXTUs__FPUs(0x2ff21a10, 0x20598718) at 0x100040fc 
__dt__Q2_10xalanc_1_911XalanVectorXTUsTQ2_10xalanc_1_931MemoryManagedCon
structionTraitsXTUs__Fv(0x2ff21a10, 0x2) at 0x10003a0c 
xmltest.__dt__Q2_10xalanc_1_914XalanDOMStringFv(0x2ff21a10, 0x2) at
0x100022cc 
main() at 0x10001f74 

Any help would be appreciated as I have run out of ideas on why this
problem is occuring.

Thanks.

Reply via email to