From owner-freebsd-stable@FreeBSD.ORG Tue Jun 28 22:06:08 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2E4316A41C for ; Tue, 28 Jun 2005 22:06:08 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF2B43D48 for ; Tue, 28 Jun 2005 22:06:08 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-29.dynamic.qsc.de [212.202.37.29]) by mail.efacilitas.de (Postfix) with ESMTP id 66975123974 for ; Wed, 29 Jun 2005 00:04:24 +0200 (CEST) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 04AF312B0A4 for ; Wed, 29 Jun 2005 00:04:33 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 39351-10 for ; Wed, 29 Jun 2005 00:04:27 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 4785D12B09E for ; Wed, 29 Jun 2005 00:04:27 +0200 (CEST) Message-ID: <42C1C96A.6010704@cs.tu-berlin.de> Date: Wed, 29 Jun 2005 00:04:26 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Subject: "Fatal trap 12" while debugging a 4.11 kernel with remote gdb X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 22:06:08 -0000 Hello, I'm trying to debug a FreeBSD 4.11 kernel that has been compiled with makeoptions DEBUG=-g options DDB The remote machine is running FreeBSD 5.4 and I'm using devel/gdb6. I have no problems as long as I escape to the debugger after the kernel was loaded, but I like to trace something during the initialisation. I type 'boot -d', 'gdb' and 's' on the 4.11 machine and the following commands on the 5.4 machine: (kgdb) s Reply contains invalid hex digit 84 (kgdb) s Warning: Cannot insert breakpoint -1. Error accessing memory address 0xc02f09a8: Input/output error. At the same time of the second 'step' this happens with the 4.11 kernel: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xf0010502 fault code = supervisor read, page not present intruction pointer = 0x8:0xc02ed6b6 stack pointer = 0x10:0xc045de3c frame pointer = 0x10:0xc045de48 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = net tty bio cam Does anyone has a hint for me to prevent this? Thanks in advance Björn