1833446 Members
3044 Online
110052 Solutions
New Discussion

Compile Error - SIGSEGV

 
Ramu Bodathula
Occasional Advisor

Compile Error - SIGSEGV

Hi,

I get the following error during compilation. What can be the possible reasons.

Pid 12522 received a SIGSEGV for stack growth failure.Possible causes: insufficient memory or swap space,or stack size exceeded maxssiz.


My swapinfo status is
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 524288 79100 445188 15% 0 - 1 /dev/vg00/lvol2
dev 655360 77688 577672 12% 0 - 1 /dev/vg01/Swap
reserve - 603340 -603340

Thanx,
Ramu
11 REPLIES 11
Bill McNAMARA_1
Honored Contributor

Re: Compile Error - SIGSEGV

you need to tune your kernel:

run

# sysdef

and

# chatr your_binary


for more info.

Later,
Bill

It works for me (tm)
Steven Sim Kok Leong
Honored Contributor

Re: Compile Error - SIGSEGV

Hi,

What is your maxssiz?

# kmtune|grep maxssiz

Hope this helps. Regards.

Steven Sim Kok Leong
Ramu Bodathula
Occasional Advisor

Re: Compile Error - SIGSEGV

Hi,

the maxssize is 8192, what is the significance of this value ?

Regards
Ramu
Steve Steel
Honored Contributor

Re: Compile Error - SIGSEGV

Hi


certainly use kmtune to check and maybe raise the maxssiz

Also remember that to be sure about swao you need to monitor it during the compilation to
see if it is sufficient.

Going by the swap figures you show there should be enough but are there any errors logged in the system logs


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ramu Bodathula
Occasional Advisor

Re: Compile Error - SIGSEGV

Hi,

system logs dont show any error(s).

I am using 10.2. it says kmtune not found

anyway will try to inc maxssiz and see the result

does maxssiz depend on any other parameter ?. if so, how to calculate the required size ?.

Regards
Ramu
Steven Sim Kok Leong
Honored Contributor

Re: Compile Error - SIGSEGV

Hi,

It indicates the maximum bytes for your maximum stack size (some call it dynamic storage segment DSS). If your process requires a large amount of stack space (eg. do you call a lot of subroutines which will require values to be pushed and popped from the stack), then you will need to increase the size of this kernel parameter.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: Compile Error - SIGSEGV

Hi,

kmtune resides in /usr/sbin.

# /usr/sbin/kmtune | grep maxssiz

It does not depend on other kernel parameters to derive its value. Default is 8 MB. Other related process memory storage parameters are maxdsiz and maxtsiz.

Hope this helps. Regards.

Steven Sim Kok Leong
Deepak Extross
Honored Contributor

Re: Compile Error - SIGSEGV

Ramu,

kmtune should be in /usr/sbin.
either add this to your $PATH or run
/usr/sbin/kmtune

Hope this helps.
Deepak Extross
Honored Contributor

Re: Compile Error - SIGSEGV

Oops..he said 10.2.
Far as I remember, kmtune wasn't available with 10.20.
Steven Sim Kok Leong
Honored Contributor

Re: Compile Error - SIGSEGV

Hi,

Deepak, I think you are right. In that case, use sysdef or sam. For sysdef,

# /usr/sbin/sysdef|grep maxssiz

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Gillard_2
Honored Contributor

Re: Compile Error - SIGSEGV

You may be hitting a bug in the compiler - which one are you using? If its a HP compiler install the latest patch and try again.

Regards,
Steve