From owner-freebsd-hackers Wed May 7 17:31:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA28009 for hackers-outgoing; Wed, 7 May 1997 17:31:10 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA27988; Wed, 7 May 1997 17:31:03 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id KAA26380; Thu, 8 May 1997 10:00:50 +0930 (CST) From: Michael Smith Message-Id: <199705080030.KAA26380@genesis.atrad.adelaide.edu.au> Subject: Re: Privileged Instruction Fault... In-Reply-To: from Simon Shapiro at "May 7, 97 12:19:19 pm" To: Shimon@i-Connect.Net (Simon Shapiro) Date: Thu, 8 May 1997 10:00:50 +0930 (CST) Cc: FreeBSD-Hackers@FreeBSD.ORG, FreeBSD-SCSI@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Simon Shapiro stands accused of saying: > > Fata trap 1: Privileged instruction fault while in kernel mode. > > IP = 0x08:0xf01940c7 > SP = 0x10:0xefbffd50 > FP = 0x10:0xefbffd68 Aha, and if you build a kernel and leave all the debugging symbols in, as well as DDB, where is the fault? Also check you're not smashing your stack. > And kernel B panics with: > > scsi_base.c-567 0xf0ib82a4(0xf088ba80) < This is the printf > > > Fatal trap 12: page fault while in kernel mode > > Fault address 0x41 > > IP = 0x08:0xf01c2f32 > SP = 0x10:0xefbffce0 > FP = 0x10:0xefbffd48 Again, check where the IP is in your kernel. Traps with really small fault address values are almost always attempts to access structure members with a null structure pointer. > Simon -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[