Re: PROBLEM: large auto variables cause segfault under 2.6
From: Arjan van de Ven
Date: Tue Oct 05 2004 - 08:43:20 EST
On Tue, 2004-10-05 at 15:27, Andrei A. Voropaev wrote:
> Declaring very large auto variables cause segfaults in the program under
> 2.6 kernel.
>
> Take a look at this program.
>
> int main( int argc, char **argv )
> {
> unsigned char bRet = 0;
>
> char tst[67123456];
>
you have a stack variable that is several orders of magnitude bigger
than the rlimit you have set for the stack I suspect. Try increasing the
stack rlimit...
Attachment:
signature.asc
Description: This is a digitally signed message part