From owner-freebsd-fs@FreeBSD.ORG Wed Jul 29 12:46:55 2009 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BCF71065672; Wed, 29 Jul 2009 12:46:55 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id B641A8FC13; Wed, 29 Jul 2009 12:46:54 +0000 (UTC) (envelope-from serenity@exscape.org) Received: from c83-253-252-234.bredband.comhem.se ([83.253.252.234]:41094 helo=mx.exscape.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1MW8XN-0002Xt-5h; Wed, 29 Jul 2009 14:45:43 +0200 Received: from [192.168.1.5] (macbookpro [192.168.1.5]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx.exscape.org (Postfix) with ESMTPSA id E15613964; Wed, 29 Jul 2009 14:45:41 +0200 (CEST) Message-Id: <97D5950F-4E4D-4446-AC22-92679135868D@exscape.org> From: Thomas Backman To: Andriy Gapon In-Reply-To: <4A7030B6.8010205@icyb.net.ua> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 29 Jul 2009 14:45:39 +0200 References: <20090727072503.GA52309@jpru.ffm.jpru.de> <4A6E06E6.9030300@mail.zedat.fu-berlin.de> <4A6EC9E2.5070200@icyb.net.ua> <20090729084723.GD1586@garage.freebsd.pl> <4A7030B6.8010205@icyb.net.ua> X-Mailer: Apple Mail (2.935.3) X-Originating-IP: 83.253.252.234 X-Scan-Result: No virus found in message 1MW8XN-0002Xt-5h. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1MW8XN-0002Xt-5h 8d6ca29e893b9606c24113d6c26cb6e4 Cc: freebsd-fs@FreeBSD.org, FreeBSD current , Pawel Jakub Dawidek Subject: Re: zfs: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 12:46:55 -0000 On Jul 29, 2009, at 13:21, Andriy Gapon wrote: > on 29/07/2009 13:32 Thomas Backman said the following: >> OFF TOPIC: >> Due to similarities in the backtrace between this and a panic I've >> been >> seeing on exporting after zfs recv (see >> http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009105.html >> and >> also >> http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009174.html >> for >> a panics-every-time script) I tried this patch. Unfortunately, I >> still >> get the same panic (from vgonel() and up, it's the same, except for >> my >> typo in the linked email.) > > Your panics are superficially similar but seem to be different. > But it is hard to tell as function argument values are not available > in your > backtraces for the interesting calls. > One difference that I see is that your panics happen one level below > _sx_xlock, in > sx_xlock_hard and sx argument value appears to be far from NULL > (0xffffff0043557d50) - in the panic that started this thread it was > near NULL. > Another difference is that you panics do not involve > zfs_znode_dmu_fini and > mu_buf_update_user, in your case sx_xlock is called directly from > zfs_freebsd_reclaim. So it must a problem with a different lock. > > -- > Andriy Gapon The DDB output from one panic does involve zfs_znode_dmu_fini and dmu_buf_update_user: _sx_xlock() dmu_buf_update_user()+0x47 zfs_znode_dmu_fini() zfs_freebsd_reclaim() VOP_RECLAIM_APV() vgonel() vflush() zfs_umount() dounmount() unmount() syscall() Xfast_syscall() (Sorry if the formatting got screwed up above.) > BTW, have you tried to reproduce the problem with INVARIANTS enabled? > Do you have crashdumps with debugging symbols? I tried again with INVARIANTS, but see no difference in the panic, the DDB bt or the KGDB bt. What does invariants really do? (Not sure how to use it to my advantage here :) Re: debugging symbols; isn't that the default? I do have a .symbols file for all the files in /boot/kernel, but that's all I know to be honest. Regards, Thomas