Subject: Re: More amd64 instability
To: None <paul@whooppee.com>
From: Juan RP <juan@xtrarom.org>
List: current-users
Date: 11/20/2007 15:39:38
On Tue, 20 Nov 2007 06:35:27 -0800 (PST)
Paul Goyette <paul@whooppee.com> wrote:

> On Tue, 20 Nov 2007, Paul Goyette wrote:
> 
> > Hmmm, this time I got a crash while I was sleeping.  I'm pretty sure
> > there wasn't anyone else on the box (there aren't any other users!), so
> > "exitting from xterm" was not the trigger this time.  Backtrace follows.
> >
> > <snip>
> >
> > #18 0xffffffff803712dd in __kernassert (t=0x0, f=0xffff80004f04fb80 "",
> >    at /usr/src/sys/lib/libkern/__assert.c:50
> > #19 0xffffffff80258dd1 in callout_softclock (v=<value optimized out>)
> >    at /usr/src/sys/kern/kern_timeout.c:576
> > #20 0xffffffff802d7f1a in softintr_dispatch (which=<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=<value optimized out>)
>      at /usr/src/sys/kern/kern_timeout.c:576
> 576			KASSERT(c->c_magic == CALLOUT_MAGIC);
> (gdb) list
> 571 
> 572		mutex_spin_enter(&callout_lock);
> 573 
> 574		while (!CIRCQ_EMPTY(&timeout_todo)) {
> 575			c = CIRCQ_FIRST(&timeout_todo);
> 576			KASSERT(c->c_magic == CALLOUT_MAGIC);
> 577			KASSERT(c->c_func != NULL);
> 578			KASSERT((c->c_flags & CALLOUT_PENDING) != 0);
> 579			KASSERT((c->c_flags & CALLOUT_FIRED) == 0);
> 580			CIRCQ_REMOVE(&c->c_list);
> (gdb) print *c
> $1 = {c_list = {cq_next = {elem = 0xffff80004c41e478,
>        list = 0xffff80004c41e478}, cq_prev = {elem = 0xffffffff805d0da0,
>        list = 0xffffffff805d0da0}},
>    c_func = 0xffffffff80122000 <sme_events_worker+1072>, c_arg = 0x0,
>    c_oncpu = 0xffffffff805adcc0, c_onlwp = 0xffff80004f04fb80, c_time = 0,
>    c_flags = 6, c_runwait = 0, c_magic = 0}

Can you show a dmesg from this machine? and I'd want to see the output
of 'ident /netbsd' if possible.

-- 
Juan Romero Pardines	- The NetBSD Project
http://plog.xtrarom.org	- NetBSD/pkgsrc news in Spanish