Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2009 14:45:39 +0200
From:      Thomas Backman <serenity@exscape.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-fs@FreeBSD.org, FreeBSD current <freebsd-current@FreeBSD.org>, Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject:   Re: zfs: Fatal trap 12: page fault while in kernel mode
Message-ID:  <97D5950F-4E4D-4446-AC22-92679135868D@exscape.org>
In-Reply-To: <4A7030B6.8010205@icyb.net.ua>
References:  <20090727072503.GA52309@jpru.ffm.jpru.de> <4A6E06E6.9030300@mail.zedat.fu-berlin.de> <4A6EC9E2.5070200@icyb.net.ua> <20090729084723.GD1586@garage.freebsd.pl> <F4F82B3E-C119-40EF-9AA4-937052876D1E@exscape.org> <4A7030B6.8010205@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97D5950F-4E4D-4446-AC22-92679135868D>