From owner-freebsd-stable@FreeBSD.ORG Sun Nov 16 08:23:17 2014 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70AC9FFC; Sun, 16 Nov 2014 08:23:17 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 95293AE3; Sun, 16 Nov 2014 08:23:16 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA14315; Sun, 16 Nov 2014 10:25:06 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Xpv73-00008C-1i; Sun, 16 Nov 2014 10:23:13 +0200 Message-ID: <54685EB8.9050800@FreeBSD.org> Date: Sun, 16 Nov 2014 10:22:16 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "K. Macy" , Bogdan SOLGA Subject: Re: ZFS pool creation from files leads to a crash References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 08:23:17 -0000 On 16/11/2014 09:29, K. Macy wrote: > #23 0xffffffff819b9a2c in zfs_vn_rdwr (rw=UIO_WRITE, > vp=0xfffff8005d94a3b0, base=0x0, len=104857600, offset=0, > seg=UIO_SYSSPACE, ioflag=128, ulimit=0, cr=0xfffff80002cd9000, > residp=0xfffffe01219f6f18) at vnode.h:237 > #24 0xffffffff819b9706 in vdev_file_io_start (zio=0xfffff80009ebb000) > at /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:188 > #25 0xffffffff819fcea3 in zio_vdev_io_start (zio=0xfffff80009ebb000) > at /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:2709 > #26 0xffffffff819f51f1 in zio_execute (zio=0xfffff80009ebb000) > at /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1409 > #27 0xffffffff819f368a in zio_wait (zio=0xfffff80009ebb000) > at /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1433 > #28 0xffffffff819bb51e in vdev_label_init (vd=0xfffff80009919800, > crtxg=4, reason=VDEV_LABEL_CREATE) > at /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c:718 Seems like this crash is caused by vdev_file_io_start being blissfully unaware of ZIO_TYPE_FREE. -- Andriy Gapon