From owner-freebsd-current@FreeBSD.ORG Wed Jun 10 22:46:41 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 AF5F71065678 for ; Wed, 10 Jun 2009 22:46:41 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 66B1A8FC1C for ; Wed, 10 Jun 2009 22:46:41 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so597235ana.13 for ; Wed, 10 Jun 2009 15:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=0ncDzYv935DA21kQJU8GHUz6WWkuTKkrRJfcl5l9Y/g=; b=cMAEInBipuKdQ7yw6hcaChZCKL0b856eEh66ya5oR3OKdTitBnWUi955OUE7GginWV xao4RPbcOT+dOeNX0zcbZKXUxQTaQw7+9H4A8lIYq78Cv9FyskCtFai+D8faA6XZdKRd i+qY23VFhxn8603lr3I6WPC76vtQWWDG6ZbM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=DWoeUkMFwUfKfmUvxSmtDrsebggpXwuVphA32YqxiOa8+vdWoQKaxbMwul4BsfjXcL eLVsVYoKofJOS8teFglOuYzMjXy25qOacnn3MhjcuHka4t/s/fEOQr2teR1QuImElEiZ rR/73CS9bT1Rp4s8SqdvO8luKr4angdZn13+s= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.100.4.9 with SMTP id 9mr1994790and.147.1244674000098; Wed, 10 Jun 2009 15:46:40 -0700 (PDT) In-Reply-To: <20090610151641.GA15528@dmr.ath.cx> References: <20090610151641.GA15528@dmr.ath.cx> Date: Wed, 10 Jun 2009 15:46:37 -0700 X-Google-Sender-Auth: 175d12c3c4fde1ed Message-ID: <3c1674c90906101546l3f6d5654uceadea17c1c5a8a4@mail.gmail.com> From: Kip Macy To: Emil Mikulic Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: (zfs) panic: lock &arg.lock already initialized 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: Wed, 10 Jun 2009 22:46:41 -0000 File a PR and assign it to me. On Wed, Jun 10, 2009 at 8:16 AM, Emil Mikulic wrote: > On doing "zfs destroy" of a snapshot, I got this panic: > > Unread portion of the kernel message buffer: > panic: lock &arg.lock already initialized > cpuid =3D 0 > KDB: enter: panic > Physical memory: 4049 MB > Dumping [etc] > > (kgdb) where > [...] > #9 =A00xffffffff80568c5b in panic (fmt=3DVariable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:558 > #10 0xffffffff8105754e in dsl_dataset_destroy_sync (arg1=3D0xffffff000560= 5c00, > =A0 =A0tag=3D0xffffff000b68c550, cr=3D0xffffff0005f79e00, tx=3D0xffffff00= 05932680) > =A0 =A0at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/com= mon/fs/zfs/dsl_dataset.c:1422 > #11 0xffffffff81059ecb in dsl_sync_task_group_sync (dstg=3D0xffffff000b7b= 9080, > =A0 =A0tx=3D0xffffff0005932680) > =A0 =A0at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/com= mon/fs/zfs/dsl_synctask.c:186 > #12 0xffffffff810599f3 in dsl_pool_sync (dp=3D0xffffff0005606800, txg=3D7= 5028) > =A0 =A0at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/com= mon/fs/zfs/dsl_pool.c:316 > #13 0xffffffff810683c5 in spa_sync (spa=3D0xffffff0005549000, txg=3D75028= ) > =A0 =A0at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/com= mon/fs/zfs/spa.c:3988 > #14 0xffffffff8107047f in txg_sync_thread (arg=3DVariable "arg" is not av= ailable. > ) > =A0 =A0at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/com= mon/fs/zfs/txg.c:352 > #15 0xffffffff8054179a in fork_exit ( > =A0 =A0callout=3D0xffffffff810701f0 , arg=3D0xffffff0005= 606800, > =A0 =A0frame=3D0xffffff81297f4c90) at /usr/src/sys/kern/kern_fork.c:828 > #16 0xffffffff8081b32e in fork_trampoline () > =A0 =A0at /usr/src/sys/amd64/amd64/exception.S:552 > #17 0x0000000000000000 in ?? () > #18 0x0000000000000000 in ?? () > #19 0x0000000000000001 in ?? () > #20 0x0000000000000000 in ?? () > [more question marks...] > (kgdb) frame 10 > (kgdb) list > 1417 =A0 =A0static void > 1418 =A0 =A0dsl_dataset_drain_refs(dsl_dataset_t *ds, void *tag) > 1419 =A0 =A0{ > 1420 =A0 =A0 =A0 =A0 =A0 =A0struct refsarg arg; > 1421 > 1422 ---------> mutex_init(&arg.lock, NULL, MUTEX_DEFAULT, NULL); <------= ----- > 1423 =A0 =A0 =A0 =A0 =A0 =A0cv_init(&arg.cv, NULL, CV_DEFAULT, NULL); > 1424 =A0 =A0 =A0 =A0 =A0 =A0arg.gone =3D FALSE; > 1425 =A0 =A0 =A0 =A0 =A0 =A0(void) dmu_buf_update_user(ds->ds_dbuf, ds, &= arg, &ds->ds_phys, > 1426 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0dsl_dataset_refs_gone); > > I'm running svn r193609 on dual-core amd64, kernel config is GENERIC > minus WITNESS and WITNESS_SKIPSPIN. > > Is there any other info I can provide to help debug this? > > --Emil > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > --=20 When bad men combine, the good must associate; else they will fall one by one, an unpitied sacrifice in a contemptible struggle. Edmund Burke