Operating System - HP-UX
1834495 Members
2428 Online
110067 Solutions
New Discussion

malloc failure in HP-UX 80

 
Lucy Yu
New Member

malloc failure in HP-UX 80

Hi,

My project is running on HP-UX B.08.00
B 9000/699 workstation. Currently, I
have the memory issue. When the memory
I want to malloc is bigger, then I got
the malloc failure. I think I may need
to change the maxdsize. If so, could
anybody tell me how to change it in HP-
UX 80? As the workstation which I am
working on is too old, there is no SAM
tool and other commands I can use to
change the kernel. Do I need to rebuild
the kernel and how to do it?

Thanks,

Lucy
3 REPLIES 3
Volker Borowski
Honored Contributor

Re: malloc failure in HP-UX 80

Uuuh Lucy,

this is real old stuff :-)

As far as I remember, ther was a file called config.mk somewhere in a subdir. In this subdir there should be an includefile, which contains C-like defines for the kernel values.

After changes, you did

make -f config.mk

and got a new file ./hp-ux

which had to be moved to the / dir manually, after you did a backup copy of the /hp-ux file.

BUT ....

First of all, if you have no more documentation, copy /hp-ux to /hp-ux.copy and be sure you are able to boot your system from /hp-ux.copy, just in case you destroy your /hp-ux.

If this works, you can get bolder!

Good luck
Volker
Lucy Yu
New Member

Re: malloc failure in HP-UX 80

Hi, Volker

Thanks for your quick response. I can not find the config.mk file in my workstation. Is it possible this workstation can not allow me to config the kernel or should re-build the kernel in another way? I mean not in the same machine. In this case, do you have any other idea?

Thanks,

Lucy
Sridhar Bhaskarla
Honored Contributor

Re: malloc failure in HP-UX 80

Very very old stuff... But I could recall a command called uxgen that can be used to generate kernel.

Try man uxgen.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try