Operating System - Linux
1753720 Members
4953 Online
108799 Solutions
New Discussion юеВ

Re: how to solve bad_alloc problems.

 
SOLVED
Go to solution
jackie_siu
Advisor

how to solve bad_alloc problems.

Hi all,
I have rectently found a problme on my hp-ux system. the following is my machines configuration:
CPU info:
Number of CPUs = 8
Memory info:
Memory = 16370 MB (15.986328 GB)
Platform info:
model string = "ia64 hp server rx4640"
OS info:
sysname = HP-UX
nodename = SRBZ-4
release = B.11.23
version = U (unlimited-user license)
machine = ia64

aCC -V
aCC: HP aC++/ANSI C B3910B A.06.02 [May 11 2005]

when some application runs, if it allocate memroy frequently, it always shows :aCC: bad-alloc. I don't know why it happens,because at the same time the memory is much enough.

and my another question is about upgrading my aCC compiler. when i want to upgrade my compiler using patch PHSS_30847 ,the following error occurs at the log file:

NOTE: The patch fileset "PHSS_30847.ACXX-HELP,r=1.0" may only be
installed upon a previously installed base fileset. The
specification for this base fileset is
"ACXX.ACXX-HELP,fr=C.05.55,v=HP". Since there is no fileset
on the target or selected from the source which matches this
specification, fileset "PHSS_30847.ACXX-HELP,r=1.0" will be
excluded.

I hope somebody can help me.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: how to solve bad_alloc problems.

If you get bad_alloc, you are out of heap space, swapspace or your ulimit or maxdsiz is too small. You can use kctune(1m) to increase maxdsiz. Make sure your maxdsiz_64bit is more than your maxdsiz.

>upgrading my aCC compiler. when I want to upgrade my compiler using patch PHSS_30847

Going to A.05.57 is not upgrading if you are are already on A.06.02. It is going to obsolete aCC5 and not supported. The latest is A.06.14.
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=8b080f1bace021100f1bace02110275d6e10RCRD
jackie_siu
Advisor

Re: how to solve bad_alloc problems.

Yes Dennis,
I have solved the first problem by following your guide. And now I have installed the patches you give me for version A.06.10. But when i tape the command aCC -V, it still shows my version is A.06.02,why?
waiting for your response.
And thanks a lot for your guide.
Dennis Handly
Acclaimed Contributor

Re: how to solve bad_alloc problems.

>And now I have installed the patches you give me for version A.06.10.

These patches are likely the recommended runtime lib patches for A.06.10. (You should use the latest for A.06.14.)

A.06.05, A.06.10 and upcoming A.06.15 are base releases. You can't patch up to those versions. You must have a support contract to get those releases.

If you do, you can get them on the Application Release CD, or download them from the SUM program.