From owner-freebsd-hackers Mon Nov 20 3: 4:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-138.dsl.snfc21.pacbell.net [63.202.178.138]) by hub.freebsd.org (Postfix) with ESMTP id 1961037B479 for ; Mon, 20 Nov 2000 03:04:39 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eAKBAtF12436; Mon, 20 Nov 2000 03:11:03 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011201111.eAKBAtF12436@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Richard Hodges Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: page fault question In-reply-to: Your message of "Sun, 19 Nov 2000 14:56:47 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 20 Nov 2000 03:10:55 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It turns out that the network stack gets really unhappy when you > trim an mbuf chain and leave the last mbuf with a negative length :-( Ouch. 8) > > Typically stack overruns lead to double faults (because there's no stack > > on which to handle the fault) and a spontaneous reboot. This just sounds > > like there's something about your first trap that kills DDB (eg. an > > invalid instruction pointer, etc.) > > I did check the SP, and it looks like the kernel stack stays in the > "temporary" 8k stack set up in i386/i386/locore.s Does that sound right? In some cases. AFAIK it'll also appear in the UPAGES area in userspace if you're calling into the kernel that way. > > Hope this helps; let us know if the first trap isn't any more > > illuminating. You might also try using remote gdb instead of ddb. > > Thanks. I also had to dig out a couple bugs involving word alignment > when doing DMA transfers, and learned NOT to mess with the data inside > mbufs with external data ;-) I guess I've left enough offerings at > the altar of stupidity, so maybe Loki will leave me alone now. *grin* Good luck! -- ... 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