Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Apr 2001 11:15:22 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Amy Fong <afong@furryterror.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: stack/memory usage in kernel related question 
Message-ID:  <200104041815.f34IFMh01298@mass.dis.org>
In-Reply-To: Your message of "Wed, 04 Apr 2001 14:12:00 EDT." <E14krlA-0008PX-00@mokona.furryterror.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Query: I've noticed that if I use up too much stack space, the freebsd
> kernel (4.2) seems to crash very easily. Specially, if I create an
> array of size N within a function, once the function gets invoked,
> my machine just reboots.  How do I find out how much stack space I've
> got? I'm assuming that it _is_ a stack issue. :)

Assume you don't have any stack.  It'll vary from platform to platform, 
but the kernel stack on x86 is about 7.5k.  So just don't do it. 8)

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104041815.f34IFMh01298>