From owner-freebsd-hackers Mon Dec 30 01:06:19 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA08956 for hackers-outgoing; Mon, 30 Dec 1996 01:06:19 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA08941 for ; Mon, 30 Dec 1996 01:06:16 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id TAA06380; Mon, 30 Dec 1996 19:35:41 +1030 (CST) From: Michael Smith Message-Id: <199612300905.TAA06380@genesis.atrad.adelaide.edu.au> Subject: Re: What is Fatal trap 12 ?? In-Reply-To: <199612300847.QAA15779@turtle.ee.ncku.edu.tw> from Antony at "Dec 30, 96 04:47:15 pm" To: antony@turtle.ee.ncku.edu.tw (Antony) Date: Mon, 30 Dec 1996 19:35:40 +1030 (CST) Cc: hackers@freefall.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 Antony stands accused of saying: > > I enabled KTRACE, DDB, DIAGNOSTIC , and modified some source > file of /sys/netinent/ip_input.c, and in some place, it shows > > Dec 30 16:01:34 hawk /kernel: Fatal trap 12: page fault while in kernel mode > Dec 30 16:01:34 hawk /kernel: fault virtual address = 0xf0a1a004 > Dec 30 16:01:34 hawk /kernel: fault code = supervisor read, page not present I strongly suggest reading the message. I can't imagine what more you could possibly want to know, except for perhaps having the kernel work out your bug and fix it itself. > Dec 30 16:01:34 hawk /kernel: instruction pointer = 0x8:0xf0a106b4 > Any idea about what the hell it is ? Yeah. You made a mistake. You could try reading the handbook section on kernel debugging. An easy start is 'nm /kernel |sort |more' and look for the symbol just before the instruction pointer, which will tell you in which function you caused the explosion. > Antony -- ]] 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 [[