Date: Wed, 07 May 1997 22:32:27 -0700 (PDT) From: Simon Shapiro <Shimon@i-Connect.Net> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: FreeBSD-Hackers@FreeBSD.ORG, FreeBSD-SCSI@FreeBSD.ORG Subject: Re: Privileged Instruction Fault... Message-ID: <XFMail.970507224456.Shimon@i-Connect.Net> In-Reply-To: <199705080300.MAA27647@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Michael Smith; On 08-May-97 you wrote: ... > Note that the kernel stack is _very_ small; you > should not us use automatics of any substantial size. This is an excellent advise. Thanx! ... > Printf() uses more stack. I am _guessing_ that you are either running > off the end of a local, or using too much stack; it's hard to be > sure with so little data and no indication of where the fault IP > actually lies within your kernel. Actually, your ideas prompted a day of hunting. The game is in the bag. It appears to have been stack problem. The strange thing is that adding printf() calls actually improves things (uses a separate stack?). There are not too many automatics in the code and the depth of recursion is minimal. The (ugly) code is actually posted on sendero-ppp.i-connect.net (206.190.143.100), in /crash. The version there compiles but already too old. Thanx for the great ideas, now I have to chase this queue leak I just found. Simon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970507224456.Shimon>