Operating System - HP-UX
1821250 Members
3061 Online
109632 Solutions
New Discussion юеВ

ERROR MESSAGE : Cannot access memory at address 0x3f 5d0268; Language : C++

 
arun kumar v
Occasional Advisor

ERROR MESSAGE : Cannot access memory at address 0x3f 5d0268; Language : C++

Hi wizards,

We have a Wireless application [GSM] in which we have wriiten the code in C++ Lang on a HP-UX 10.20 platform and the Target HP Hardware is N-Class servers.

It's been reported that our application is coring sometimes.

And from the gdb traces, we see a line as:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Cannot access memory at address 0x3f 5d0268" and then it gets killed in malloc...


Please help me out in this regard.


Thanks in Advance,
Arun Kumar
Bangalore, INDIA.



2 REPLIES 2
Eugeny Brychkov
Honored Contributor

Re: ERROR MESSAGE : Cannot access memory at address 0x3f 5d0268; Language : C++

Arun,
are you sure you have 1GB of the main memory and at this location (0x3f5d0268=1,063,060,072) server does not have memory hole, ROM or any other locked area? If your server is out-of-memory then consider (at least try) to add more
Eugeny
Adam J Markiewicz
Trusted Contributor

Re: ERROR MESSAGE : Cannot access memory at address 0x3f 5d0268; Language : C++

Hi.

What does exactly backtrace of the stack, when your process gets killed inside malloc? What signal kills the process?

If it's from malloc my first guess is that you corrupt memory somewhere. Try to use a tool to trace memory allocations and overwriting. Perheps you are using freed memory, or write after / before allocated block, corrupting malloc's free list.

Good luck

Adam
I do everything perfectly, except from my mistakes