On Mon, Aug 10, 1998 at 02:31:04PM -0400, Igor Schein wrote:
> Hi, I have the following question:
> If a program runs out of process stack
> during the run, Solaris kernel forces a SEGV
> on the process, and internal signal handler
> fails to work as a consequence. Is it possible
> to either
> 1) Dynamically increase a process stack from within
> a program, or
> 2) Test how much is still available on the stack
> from within a program?
Thanks to Russ Poffenberger, Casper Dik and Kevin Sheenan,
This is Casper's answer to the first question:
>No, once a program is started, it stack size is fixed because teh
>shared libraries are mapped directly below it.
>You can set a SIGSEGV handler, but you need to specify an alternate
>signal stack for it. See sigaltstack(),
This is the Casper's answer to the 2nd question:
>Hard, take the address of a variable declared in main and compute the
>difference with one local to the innermost invocation.
Also, I was refered to sigstack(3B).
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:49 CDT