Subject: Re: More amd64 instability
To: None <current-users@netbsd.org>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 11/20/2007 06:35:27
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1374946744-1195569065=:2656
Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.NEB.4.64.0711200633002.2447@quicky.whooppee.com>

On Tue, 20 Nov 2007, Paul Goyette wrote:

> Hmmm, this time I got a crash while I was sleeping.  I'm pretty sure ther=
e=20
> wasn't anyone else on the box (there aren't any other users!), so "exitti=
ng=20
> from xterm" was not the trigger this time.  Backtrace follows.
>
> <snip>
>
> #18 0xffffffff803712dd in __kernassert (t=3D0x0, f=3D0xffff80004f04fb80 "=
",
>    l=3D1792, e=3D0xffff8000556fcb08 "=E0\2038\200")
>    at /usr/src/sys/lib/libkern/__assert.c:50
> #19 0xffffffff80258dd1 in callout_softclock (v=3D<value optimized out>)
>    at /usr/src/sys/kern/kern_timeout.c:576
> #20 0xffffffff802d7f1a in softintr_dispatch (which=3D<value optimized out=
>)
>    at /usr/src/sys/arch/x86/x86/softintr.c:107
> #21 0xffffffff80112832 in Xsoftclock ()
> (gdb)

Adding a litte bit more info.  It seems that there's a bad c_magic
value in the CIRCQ...

(gdb) fr 19
#19 0xffffffff80258dd1 in callout_softclock (v=3D<value optimized out>)
     at /usr/src/sys/kern/kern_timeout.c:576
576=09=09=09KASSERT(c->c_magic =3D=3D CALLOUT_MAGIC);
(gdb) list
571=20
572=09=09mutex_spin_enter(&callout_lock);
573=20
574=09=09while (!CIRCQ_EMPTY(&timeout_todo)) {
575=09=09=09c =3D CIRCQ_FIRST(&timeout_todo);
576=09=09=09KASSERT(c->c_magic =3D=3D CALLOUT_MAGIC);
577=09=09=09KASSERT(c->c_func !=3D NULL);
578=09=09=09KASSERT((c->c_flags & CALLOUT_PENDING) !=3D 0);
579=09=09=09KASSERT((c->c_flags & CALLOUT_FIRED) =3D=3D 0);
580=09=09=09CIRCQ_REMOVE(&c->c_list);
(gdb) print *c
$1 =3D {c_list =3D {cq_next =3D {elem =3D 0xffff80004c41e478,
       list =3D 0xffff80004c41e478}, cq_prev =3D {elem =3D 0xffffffff805d0d=
a0,
       list =3D 0xffffffff805d0da0}},
   c_func =3D 0xffffffff80122000 <sme_events_worker+1072>, c_arg =3D 0x0,
   c_oncpu =3D 0xffffffff805adcc0, c_onlwp =3D 0xffff80004f04fb80, c_time =
=3D 0,
   c_flags =3D 6, c_runwait =3D 0, c_magic =3D 0}


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------
--0-1374946744-1195569065=:2656--