Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Aug 2001 00:59:38 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        "Semen A. Ustimenko" <semenu@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Kernel stack size 
Message-ID:  <200108080759.f787xcZ00644@mass.dis.org>
In-Reply-To: Your message of "Wed, 08 Aug 2001 00:17:13 %2B0600." <Pine.BSF.4.21.0108080000170.4841-100000@default> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm developing some code running in kernel that use a lot of stack. And it
> seems i run into stack overflow. This results in some proc structure
> related parts overwrite (particulary p->p_stats->p_timer[ITIMER_PROF]) and
> unexpected signals. (Otherwise, it usually page faults inside
> swi_net_next())
> 
> Could somebody explain how this can happen (i thought i would panic and
> say ``stack oveflow'') and how this can be avoided?

Use less stack.

-- 
... 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?200108080759.f787xcZ00644>