From owner-freebsd-ia64@FreeBSD.ORG Fri Jul 16 11:08:04 2010 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FDC61065675 for ; Fri, 16 Jul 2010 11:08:04 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 211868FC12 for ; Fri, 16 Jul 2010 11:08:03 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1OZilu-00021z-PO for freebsd-ia64@freebsd.org; Fri, 16 Jul 2010 12:08:02 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1OZilu-0001SI-MX for freebsd-ia64@freebsd.org; Fri, 16 Jul 2010 12:08:02 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id o6GB82wd099102 for ; Fri, 16 Jul 2010 12:08:02 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id o6GB829Q099101 for freebsd-ia64@freebsd.org; Fri, 16 Jul 2010 12:08:02 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Fri, 16 Jul 2010 12:08:02 +0100 From: Anton Shterenlikht To: freebsd-ia64@freebsd.org Message-ID: <20100716110802.GA99033@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: gpart segfault and fatal kernel trap X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2010 11:08:04 -0000 On r209586 I have 2 fibre disks (da1, da2). I added another and did 'camcontrol rescan all'. I got the disk detected as da3. I did "gpart -c gpt da3" successfully. I added a UFS partition successfully: mech-as28# gpart add -t freebsd-ufs da3 da3p1 added However "gpart show" would segfault. In addition devices /dev/da1 and /dev/da2 vanished. I decided to reboot and got this: - - - - - - - - - - - - Live Console - - - - - - - - - - - - fatal kernel trap (cpu 0): trap vector = 0x14 (Page Not Present) cr.iip = 0xe00000000439f2c0 cr.ipsr = 0x1210080a6010 (mfl,ic,i,dt,dfh,rt,cpl=0,it,ri=1,bn) cr.isr = 0xa0400000000 (code=0,vector=0,r,ei=1,ed) cr.ifa = 0x18 curthread = 0xe000000010f9c3c0 pid = 2, comm = g_event [ thread pid 2 tid 100008 ] Stopped at g_access+0x41: [M1] ld8 r36=[r14] db> bt Tracing pid 2 tid 100008 td 0xe000000010f9c3c0 g_access(0x0, 0xffffffffffffffff, 0xffffffffffffffff, 0x0) at g_access+0x41 swapgeom_close_ev(0x0, 0xe0000000043977f0, 0x814, 0xd9) at swapgeom_close_ev+0x30 g_run_events(0xe000000011443b00, 0x0, 0xe000000004aae500, 0xe000000004925888, 0xe000000004aaba38) at g_run_events+0x6c0 g_event_procbody(0xe000000004a9c084, 0xe00000000491cd10, 0xe000000004a9b8c8, 0xe000000004401ca0) at g_event_procbody+0xf0 fork_exit(0xe000000004977400, 0x0, 0xa0000000eaf1b550) at fork_exit+0x110 enter_userland() at enter_userland db> I'll complete the reboot and see from there. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423