From nobody@FreeBSD.org  Wed Nov 21 00:24:51 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id C063C4F0
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 00:24:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A89928FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 00:24:51 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAL0OpkB055807
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Nov 2012 00:24:51 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qAL0OpZZ055806;
	Wed, 21 Nov 2012 00:24:51 GMT
	(envelope-from nobody)
Message-Id: <201211210024.qAL0OpZZ055806@red.freebsd.org>
Date: Wed, 21 Nov 2012 00:24:51 GMT
From: Bruce Marriner <bruce@sqls.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fatal trap 12: page fault while in kernel mode when deleting files on ZFS pool
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173747
>Category:       kern
>Synopsis:       Fatal trap 12: page fault while in kernel mode when deleting files on ZFS pool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 00:30:00 UTC 2012
>Closed-Date:    Sat Dec 01 18:34:28 UTC 2012
>Last-Modified:  Sat Dec 01 18:34:28 UTC 2012
>Originator:     Bruce Marriner
>Release:        9.1-RC3
>Organization:
>Environment:
FreeBSD backup.ameristarfence.com 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:58:57 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I have a large ZFS pool (~9TB) that is 99% full. It is used for rsync backups using hard-links to create "daily snapshots".  When trying to delete files the system is crashing and rebooting with the below error.  I am able to move or write to the problem file but that does not solve the problem.  I have run zfs scrub which repaired problems but this problem still exists afterwards.

Fatal trap 12: page fault while in kernel mode
cpuid = 5; apic id = 33
fault virtual address   = 0x160
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff815cdc76
stack pointer           = 0x28:0xffffff8685838870
frame pointer           = 0x28:0xffffff8685838930
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 1788 (rm)
trap number             = 12
panic: page fault
cpuid = 5
KDB: stack backtrace:
#0 0xffffffff809208a6 at kdb_backtrace+0x66
#1 0xffffffff808ea8be at panic+0x1ce
#2 0xffffffff80bd8240 at trap_fatal+0x290
#3 0xffffffff80bd857d at trap_pfault+0x1ed
#4 0xffffffff80bd8b9e at trap+0x3ce
#5 0xffffffff80bc315f at calltrap+0x8
#6 0xffffffff80c68504 at VOP_REMOVE_APV+0x34
#7 0xffffffff8098709d at kern_unlinkat+0x32d
#8 0xffffffff80bd7ae6 at amd64_syscall+0x546
#9 0xffffffff80bc3447 at Xfast_syscall+0xf7

>How-To-Repeat:
There are specific files that I know cause the problem.  Trying to delete them causes the problem every time.  
>Fix:


>Release-Note:
>Audit-Trail:

From: Andriy Gapon <avg@FreeBSD.org>
To: bug-followup@FreeBSD.org, bruce@sqls.net
Cc:  
Subject: Re: kern/173747: Fatal trap 12: page fault while in kernel mode when
 deleting files on ZFS pool
Date: Wed, 21 Nov 2012 18:06:41 +0200

 Are you able to get a crash dump for analysis with kgdb?
 
 -- 
 Andriy Gapon
State-Changed-From-To: open->closed 
State-Changed-By: avg 
State-Changed-When: Sat Dec 1 18:34:10 UTC 2012 
State-Changed-Why:  
Seems to be a duplicate of kern/170238 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173747 
>Unformatted:
