lkml.org 
[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel Stack Limit...
On Thu, 29 Aug 2002, Raj, Ashok wrote:

> Hello.
>
> Please reply to me, since i dont have this email id on the list.
>
> Could someone tell me at what the kernel stack size limit is?
>

Only two PAGES, 0x1000 per page on a ix86.

> Is there a gcc option for x86 that can warn if too large variables are
> specified in the stack?
>

sizeof(whatever_local_variable)

> recently we had a problem with one variable accidently declared on the stack
> which was quite large, and when
> some calls nested, we noticed stack corruption. Once the variable was moved
> to global, the corruption went away. We would always see that some member of
>

Yes strange things happen when stack, which goes down, meets data...


Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.031 / U:7.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site