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 ushanair <km...@gmail.com> on 2011/12/14 17:00:44 UTC

Bus Error on hp-ux(pa 32bit)...Please help!!

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



Could you please help me in this regard.



Thanks,
usha
-- 
View this message in context: http://old.nabble.com/Bus-Error-on-hp-ux%28pa-32bit%29...Please-help%21%21-tp32975128p32975128.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.


Re: Bus Error on hp-ux(pa 32bit)...Please help!!

Posted by David Bertoni <db...@apache.org>.
On 12/18/2011 8:57 PM, ushanair wrote:
>
> Hi Dave,
>
> Thanks for the response!!
> Can you please let me know, how do i initialize the library ?
> I have built static version of xerces and xalan library and linked to my
> application.
Look at the sample applications. You'll see calls to:

XMLPlatformUtils::Initialize()

and

XalanTransformer::initialize()

which initialize the library.  You'll also see calls to"

XMLPlatformUtils::Terminate()
XalanTransformer::terminate()

which release all statically allocated memory. You don't need to call 
these unless you're using memory diagnostic utilities that can't handle 
tracking live memory blocks, or if your process will continue to live 
after you've terminated the libraries.

Dave

Re: Bus Error on hp-ux(pa 32bit)...Please help!!

Posted by ushanair <km...@gmail.com>.
Hi Dave,

Thanks for the response!!
Can you please let me know, how do i initialize the library ?
I have built static version of xerces and xalan library and linked to my
application.

Thanks,

Regards,
Usha


David Bertoni wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/Bus-Error-on-hp-ux%28pa-32bit%29...Please-help%21%21-tp32975128p33000784.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.


Re: Bus Error on hp-ux(pa 32bit)...Please help!!

Posted by David Bertoni <db...@apache.org>.
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