Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2024 19:17:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 276341] zfs panic: VERIFY3(rc->rc_count == number) failed
Message-ID:  <bug-276341-3630-IvWHFk1Utq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276341-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276341-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276341

--- Comment #8 from John F. Carr <jfc@mit.edu> ---
Here is the object being destroyed on my system:

(kgdb) p ARC_anon.arcs_size[0]
$3 =3D {rc_count =3D 262144, rc_mtx =3D {lock_object =3D {lo_name =3D 0xfff=
f000000c8d8f6
"rc->rc_mtx",=20
      lo_flags =3D 577830912, lo_data =3D 0, lo_witness =3D 0x0}, sx_lock =
=3D 1},
rc_tree =3D {avl_root =3D 0x0,=20
    avl_compar =3D 0xffff0000001630f0 <zfs_refcount_compare>, avl_offset =
=3D 0,
avl_numnodes =3D 0},=20
  rc_removed =3D {list_size =3D 48, list_offset =3D 0, list_head =3D {
      list_next =3D 0xffff0000010e6ad8 <ARC_anon+216>, list_prev =3D
0xffff0000010e6ad8 <ARC_anon+216>}},=20
  rc_removed_count =3D 0, rc_tracked =3D 0}

The sx_lock field is the correct value for a mutex to be passed to sx_destr=
oy.

The avl tree is supposed to be empty because rc_tracked=3D0.
The value comes from the global variable reference_tracking_enable.
Setting that to 1 at compile time might shed some light on the problem.

ARC_anon+216 is the address of rc_removed.list_head.

lo_flags =3D 577830912 =3D 0x22710000 =3D class 0x22,
LO_INITIALIZED|LO_WITNESS|LO_QUIET.

So there's nothing obviously wrong here except the accumulated
count added to and subtracted from the counter is not zero.

This is an ARC counter.  I do not expect scrubbing to have any effect.
I ran zpool scrub and it found no errors.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276341-3630-IvWHFk1Utq>