1752754 Members
4513 Online
108789 Solutions
New Discussion юеВ

stack overflow.

 
ragesh_3
Advisor

stack overflow.

Pid 23597 was killed due to failure in writing the signal context - possible stack overflow.
No successful completion message printed.

Getting this error when users running one application script .

Can anyone help me to find the cause of this error ?
4 REPLIES 4
V. Nyga
Honored Contributor

Re: stack overflow.

Hi,

well, you can try to tune the kernel and to increase the maximum size of the stack of a process ->
http://docs.hp.com/en/1219/tuningwp.html#maxssiz

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: stack overflow.

You need to analyze the stack trace. It could either be a main stack overflow or a thread stack overflow. The former can be adjusted by Volkmar's maxssiz. Thread stacks require calling pthread_attr_setstacksize(3).

Of course your application could have a recursive stack overflow and no matter how big you adjust it, it will fail.
Jeff Schussele
Honored Contributor

Re: stack overflow.

Also don't forget maxssiz_64bit in case this is a 64-bit process.
Check the syslog. All errors caused by kernel parameter overruns are logged therein - unless the overrun itself prevents writing the log. But then the system would have ground to a complete halt anyway.

My $0.02,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Dennis Handly
Acclaimed Contributor

Re: stack overflow.

>Jeff: Also don't forget maxssiz_64bit in case this is a 64-bit process.

If you need a stack this large your application is broken or possibly Fortran. ;-)

>Check the syslog. All errors caused by kernel parameter overruns are logged therein

Not for user problems.