Operating System - HP-UX
1832890 Members
3175 Online
110048 Solutions
New Discussion

Re: Malloc issue (Trashed stack).

 
Senthil Kumar .A_1
Honored Contributor

Malloc issue (Trashed stack).

Hi HP admins,

I'm in a little mire due to this issue.

the follwoing is the rror message i get when starting a process..

Malloc of 80 bytes failed!
Malloc of 80 bytes failed!
Malloc of 80 bytes failed!

Pid 3383 killed due to trashed stack.

Pid 3383 was killed due to failure in writing the signal context.

The system details are:

HP-UX blrhpse1 B.11.11 U 9000/800 815930630 unlimited-user license


# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192000 0 8192000 0% 0 - 1 /dev/vg00/lvol2
reserve - 1189332 -1189332
memory 3158672 1369500 1789172 43%

# getconf KERNEL_BITS
64
#

Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 4194304 Kbytes, lockable: 3152848 Kbytes, available: 3697868 Kbytes


The prameter info and patch info is attached.

Please suggest me what could be wrong. Anyways..targeting ..maxdsiz,maxdsiz_64bit,maxtsiz,maxtsiz_64bit, maxssiz and maxssiz_64bit has not resolved the issue.

Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Malloc issue (Trashed stack).

The most likely explanation is bad code. For example, free()'ing a chunk of memory that was not dynamically allocated. Is this an application that was developed in house?
If it ain't broke, I can fix that.
Senthil Kumar .A_1
Honored Contributor

Re: Malloc issue (Trashed stack).

Yep stephenson,its a inhouse product.

Seems to be working when increased maxdsiz. but still crossing the finger.

Trying to do all a sys admin can do for
this situation, waiting for developers response.

;)

Thanx Stephenson for ur time. Still leaving the tread open, in case it recurs ;)
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)