1830246 Members
1850 Online
110000 Solutions
New Discussion

Re: hpterm malloc failed

 
CSG Office
Frequent Advisor

hpterm malloc failed

I have an HP B.10.20 system that is getting the error "hpterm: malloc failed(34)" whenever I try to start hpterm. I attempted to copy a known good copy from another system that is at the same patch level. I still get the same error. I compared /usr/lib/X11/app-defaults/HPterm files on both and they are identical. Does anyone have any suggestions on finding the cause?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: hpterm malloc failed

I suspect that you need to increase maxdsiz and build a new kernel. You could also have insufficent swap space.
If it ain't broke, I can fix that.
Alex Glennie
Honored Contributor

Re: hpterm malloc failed

Both xterm and hpterm require first-in-first-out pty (pseudo-terminal) devices. These legacy pty devices are controlled by 2 factors: the size of the device table in the kernel (npty variable) and the device files themselves. I'm wondering if you have therefor run out of npty's ?

Qu does xterm also fail but dtterm work by any chance ?

To increase the number of available pty devices, it is neccessary to increase the kernel parameter "npty" to the desired level and create additional pty devices with the following commands:

insf -e

then

insf -d -n #npty's

CSG Office
Frequent Advisor

Re: hpterm malloc failed

Thanks guys. Pointing to a resource limit made me double check all of the processes running. There were about 100 processes that were running that needed killed.
CSG Office
Frequent Advisor

Re: hpterm malloc failed

Closing.