From owner-freebsd-stable@FreeBSD.ORG Fri Jul 24 13:16:35 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D7411065687 for ; Fri, 24 Jul 2009 13:16:35 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by mx1.freebsd.org (Postfix) with ESMTP id 165158FC2C for ; Fri, 24 Jul 2009 13:16:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz19 with SMTP id 19so1395365bwz.43 for ; Fri, 24 Jul 2009 06:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EsjSz04uJ3H6Xv8UHqC2YULVIRmX4loxxt6mncCeJO8=; b=LdzSqpjmAh9hru8B5mo1jYgXcUz+++R8v0CavAYxI7hbN4ztqhDK08b0J5YNcQHFF0 7/SXfp/9YAb9MxiaiWpPY2rXQtO+U0jv8ozPlmdtsHzvQmsX/HJLiaR6/Ley2y778wPW ZeUOLytr0f1lRnqishpysC/DnWZKgk1m2jDSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MfwwCiY8eQBQ67Un3nzvG3qDdPDfnlpCd4QMcEwNlWyZZTLUWsQgqzF3gi0Rjn8q6j fbaZHTRcv+3RcUzlsxGM3yauYCMLYAjF94tjsZ7x4px1rlSJdMSNowQ8I/Ys3IRJ9hHG xg/ksygM/e1djRX1uh2VxxYgQofhUgKwLxS2w= MIME-Version: 1.0 Received: by 10.204.52.135 with SMTP id i7mr3163309bkg.154.1248441394116; Fri, 24 Jul 2009 06:16:34 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Jul 2009 17:16:34 +0400 Message-ID: From: pluknet To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [geom] page fault in g_mbr_config() 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: Fri, 24 Jul 2009 13:16:36 -0000 2009/7/24 pluknet : > Hi. > > I got a panic while performing a repetitive =A0'fdisk -BI aacd0', > where aacd0 is a disk on aac0: . > This means that the command was issued after filesystems > were already created on aacd (after the first fdisk -BI aacd0 > iteration), and are in umount'ed state. > > This is on 7.2-R, amd64. Config is a GENERIC plus ddb, carp, ipfw, quota. > > Fatal trap 12: page fault while in kernel mode > cpuid =3D 5; apic id =3D 05 > fault virtual address =A0 =3D 0x20 > fault code =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D supervisor read data, page not = present > instruction pointer =A0 =A0 =3D 0x8:0xffffffff804cc554 > stack pointer =A0 =A0 =A0 =A0 =A0 =3D 0x10:0xfffffffe80079b80 > frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x10:0xfffffffe80079bd0 > code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, limit 0xfffff, type 0x1= b > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D DPL 0, pres 1, long 1,= def32 0, gran 1 > processor eflags =A0 =A0 =A0 =A0=3D interrupt enabled, resume, IOPL =3D 0 > current process =A0 =A0 =A0 =A0 =3D 2 (g_event) > [thread pid 2 tid 100013 ] > Stopped at =A0 =A0 =A0g_mbr_config+0x64: =A0 =A0 =A0movq =A0 =A00x20(%rax= ),%r15 > db> bt > Tracing pid 2 tid 100013 td 0xffffff000144da50 > g_mbr_config() at g_mbr_config+0x64 > g_run_events() at g_run_events+0x1b8 > g_event_procbody() at g_event_procbody+0x57 > fork_exit() at fork_exit+0x11f > fork_trampoline() at fork_trampoline+0xe > --- trap 0, rip =3D 0, rsp =3D 0xfffffffe80079d30, rbp =3D 0 --- And, of course... db> show proc 818 Process 818 (fdisk) at 0xffffff0004ed1000: state: NORMAL uid: 0 gids: 0, 0, 5 parent: pid 814 at 0xffffff00045c0478 ABI: FreeBSD ELF64 arguments: fdisk threads: 1 100169 D g_waitfo 0xffffff0004ec9100 fdisk db> bt 818 Tracing pid 818 tid 100169 td 0xffffff0004fbf6e0 sched_switch() at sched_switch+0x1fe mi_switch() at mi_switch+0x18e sleepq_timedwait() at sleepq_timedwait+0x31 _sleep() at _sleep+0x354 g_waitfor_event() at g_waitfor_event+0x9a g_ctl_ioctl() at g_ctl_ioctl+0x2df giant_ioctl() at giant_ioctl+0x7d devfs_ioctl_f() at devfs_ioctl_f+0x77 kern_ioctl() at kern_ioctl+0xa2 ioctl() at ioctl+0xf9 syscall() at syscall+0x256 Xfast_syscall() at Xfast_syscall+0xab --- syscall (54, FreeBSD ELF64, ioctl), rip =3D 0x8008200ec, rsp =3D 0x7fffffffe1d8, rbp =3D 0x4 --- --=20 wbr, pluknet