From owner-freebsd-current@FreeBSD.ORG Thu Dec 10 07:21:57 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E071A1065696 for ; Thu, 10 Dec 2009 07:21:57 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2E48FC1C for ; Thu, 10 Dec 2009 07:21:55 +0000 (UTC) Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 9C240940136; Thu, 10 Dec 2009 08:21:50 +0100 (CET) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g21.free.fr (Postfix) with ESMTP id B35C3940060; Thu, 10 Dec 2009 08:21:47 +0100 (CET) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 9EF3233E85; Thu, 10 Dec 2009 07:21:47 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 7B54EA127C; Thu, 10 Dec 2009 07:21:47 +0000 (UTC) Date: Thu, 10 Dec 2009 08:21:47 +0100 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20091210072147.GA4963@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Panic while doing zfs rename X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 07:21:58 -0000 Hi list, First, excuse me to post on -current@ while this problem happened with -STABLE but RELENG_8 is still relatively close to HEAD and I have the feeling that -stable@ is more concerned with configuration and maybe userland problems. I've done the following command sequence on a fresh RELENG_8 from around 3rd dec: zfs send -R data/repos | zfs receive -d data/crepos zfs destroy data/repos zfs rename data/crepos/repos data/repos And this led to the following panic on rename: % Fatal trap 12: page fault while in kernel mode % cpuid = 0; apic id = 00 % fault virtual address = 0x780fe2a0 % fault code = supervisor read, page not present % instruction pointer = 0x20:0x806d1687 % stack pointer = 0x28:0xcb41c750 % frame pointer = 0x28:0xcb41c784 % code segment = base 0x0, limit 0xfffff, type 0x1b % = DPL 0, pres 1, def32 1, gran 1 % processor eflags = resume, IOPL = 0 % current process = 72605 (zfs) % [thread pid 72605 tid 100435 ] % Stopped at _sx_xlock_hard+0x21e: movl 0x1a0(%eax),%eax % db> bt % Tracing pid 72605 tid 100435 td 0x88b6c480 % _sx_xlock_hard(8f2460a0,88b6c480,0,85ce8fc8,a1,...) at _sx_xlock_hard+0x21e % _sx_xlock(8f2460a0,0,85ce8fc8,a1,866b2a70,...) at _sx_xlock+0x48 % rrw_enter(8f2460a0,1,85cdf7b1,0,cb41c7e8,...) at rrw_enter+0x35 % zfs_statfs(866b2a10,866b2a70,1d8,cb41c844,865a3a10,...) at zfs_statfs+0x39 % __vfs_statfs(866b2a10,cb41c844,0,0,0,...) at __vfs_statfs+0x1f % nullfs_statfs(865a3a10,865a3a70,806bd68b,865a3a70,865a3a10,...) at nullfs_statfs+0x46 % __vfs_statfs(865a3a10,865a3a70,1d8,a5889340,cb41cb78,...) at __vfs_statfs+0x1f % kern_getfsstat(88b6c480,cb41ccf8,8df8,0,1,...) at kern_getfsstat+0x2d0 % getfsstat(88b6c480,cb41ccf8,c,cb41ccb0,8096d28a,...) at getfsstat+0x2e % syscall(cb41cd38) at syscall+0x320 % Xint0x80_syscall() at Xint0x80_syscall+0x20 % --- syscall (395, FreeBSD ELF32, getfsstat), eip = 0x281742d7, esp = 0x7fbfc8dc, ebp = 0x7fbfc908 --- FYI, after the crash, I could rename the filesystem without any problem. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >