03-26-2008
19,
0
Join Date: Nov 2007
Last Activity: 13 December 2009, 10:44 AM EST
Posts: 19
Thanks Given: 0
Thanked 0 Times in 0 Posts
Problem with stack overflow
Hi,
I get a problem with stack overflow on HP-UX, when running a C program.
Pid 28737 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
The possible cause i found, was that the definition of a structure had changed.
One object was recompiled with the new definition, but 1, maybe not.
This caused a memory error and the program received 'SIGSEGV' (segmentation error).
But what i feel is that the variable in question, being a local variable, and hence allocated on stack, caused the above message to occur.
It referenced an address beyond stack bounds.
I beleive that maxssiz dint really exceed.
The HP manual says that if such an error occurs, then the only option is to wait and the OS will try to resolve it by itself.
Would this error occur again, if another stack variable too exceeds stack bounds?
Please advice/correct me.