sysctl -a causes kernel trap 12

From: Xin Li <delphij_at_delphij.net>
Date: Mon, 07 Jan 2013 15:54:23 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

I've recently (by mid-December I think) noticed that sysctl -a can
sometimes cause kernel trap 12.  Tried enabling INVARIANTS and the
problem mysteriously disappeared.  After some experiments on this, it
seems that this can be triggered by sysctl -a but the system have an 1
in 10 chance to survive.  When INVARIANTS is enabled however, I can
not trigger the panic.  "sysctl hw" triggers the panic sometimes, but
not always.

Do anybody have clue on this?  The system hangs hard when it panics so
kernel debugger won't work.  When it panics, the fault instruction
pointer is always 0x20:0xffffffff808d61c9, which is
sys/kern/subr_turnstile.c:297:

> /* Resort td on the list if needed. */ if
> (!turnstile_adjust_thread(ts, td)) { mtx_unlock_spin(&ts->ts_lock);
> // 297 // return; }

This sounds like a race condition but I haven't yet able to track it
down...

Cheers,
- -- 
Xin LI <delphij_at_delphij.net>    https://www.delphij.net/
FreeBSD - The Power to Serve!           Live free or die
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJQ62AvAAoJEG80Jeu8UPuzW0IH/0D0PxoTIr6qdHFhzG1It1r2
HRnkCaVKzllc6a0obdHzthBLe7dd3bMARuVLR/NiD611mhrFGY2P4W9x+bp9KwMH
gTp18fWsHamkj5jEO8zpLjVWF62WwaFKuCEvg1zKLS+Fo3K7vSr5i5O6SeUhueeR
iUNldC5m5E6Nwkbn9OW8jHzadhHmmIbUAfoWs8K7FCFQpLYXg5e8Q8gW5RsJvPmT
v92vwAC2L3MOBiSGKfRkKngBihHlDnkX0xRhWuI+PIh5yr8kijgA4DDroOhJv3RF
ga0NKanjZFk9k1+gFVua3gmMmCopvkIs7XHsjJbKBcMcvEtTXQxkrJwVmgX+q80=
=Wubv
-----END PGP SIGNATURE-----
Received on Mon Jan 07 2013 - 22:54:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:33 UTC