On 12/14/2011 8:00 AM, ushanair wrote:
Hi,
I'm facing a problem while building my sources, linked to
xalan-c(1.10)static libraries in hpux(pa-risc,32bit)
when I start my application,it throws "Bus Error" at xalan_1_10,XMLList.cpp,
when it tries to allocate the memory using new..
#0 0x115cdb0 in const
xalanc_1_10::XalanList<xalanc_1_10::ReusableArenaBlock<xalanc_1_10::XTokenStringAdapter,
unsigned short>*>::begin (
this=<incomplete type>) at
/netapp-home/urani/lmadmin/pymake/lmadmin/3rdparty/xalan-c/1.10.0/src/xalanc/Include/XalanList.hpp:268
#1 0x115cd40 in const
xalanc_1_10::XalanList<xalanc_1_10::ReusableArenaBlock<xalanc_1_10::XTokenStringAdapter,
unsigned short>*>::empty (this=0x7ab19cf0)
at
/netapp-home/urani/lmadmin/pymake/lmadmin/3rdparty/xalan-c/1.10.0/src/xalanc/Include/XalanList.hpp:336
#2 0x115c028 in
xalanc_1_10::ReusableArenaAllocator<xalanc_1_10::XTokenStringAdapter>::allocateBlock
(this=<incomplete type>)
at
/netapp-home/urani/lmadmin/pymake/lmadmin/3rdparty/xalan-c/1.10.0/src/xalanc/PlatformSupport/ReusableArenaAllocator.hpp:193
#3 0x115bb84 in xalanc_1_10::XalanAllocationGuard::XalanAllocationGuard
(this=<incomplete type>, theMemoryManager=@0x405f0238, theSize=0)
at
/netapp-home/urani/lmadmin/pymake/lmadmin/3rdparty/xalan-c/1.10.0/src/xalanc/XPath/XTokenStringAdapterAllocator.cpp:42
#4 0xf7b564 in xalanc_1_10::XObjectFactoryDefault::createString
(this=<incomplete type>, theValue=@0x52005f)
at
/netapp-home/urani/lmadmin/pymake/lmadmin/3rdparty/xalan-c/1.10.0/src/xalanc/XPath/XObjectFactoryDefault.cpp:462
#5 0x410040 in<unknown_procedure> + 0 () at
/opt/hp-gcc/3.4.4/ilp32/include/c++/3.4.4/new:96
Error accessing memory address 0x0: Invalid argument. Bus Error
This indicates a null pointer is being dereferenced. Are you sure you've
initialized the library properly?
Please see me other reply to your newer post. I don't believe GCC works
well enough on PA-RISC to get a good build.
Dave