Subject: Re: Kernel Debug ASSERTion with SCHED_M2
To: Mindaugas R. <rmind@NetBSD.org>
From: Markus W Kilbinger <mk@kilbi.de>
List: current-users
Date: 10/14/2007 09:27:31
>>>>> "Mindaugas" == Mindaugas R <rmind@NetBSD.org> writes:

    >> panic: kernel diagnostic assertion "sil->sl_slept > 0" failed:
    >> file "../../../../kern/sched_m2.c", line 484
    >>
    >> on my dual cpy i386 machine even with revision 1.16 of
    >> kern_sleepq.c.

Though fix by by

  cvs rdiff -r1.3 -r1.4 src/sys/kern/sched_m2.c

    Mindaugas> However it would be interesting to see what exactly the
    Mindaugas> case it is. Can you show the backtrace and also an
    Mindaugas> output of "show sched" in DDB?

here's the requested ddb output:

  panic: kernel diagnostic assertion "sil->sl_slept > 0" failed: file "../../../../kern/sched_m2.c", line 484
  Stopped in pid 0.2 (system) at  netbsd:breakpoint+0x1:  ret
  db{0}> t
  breakpoint(c05b409c,c05463b3,c0553fcf,c0553fe1,1e4) at netbsd:breakpoint+0x1
  __kernassert(c05463b3,c0553fe1,1e4,c0553fcf,cb6a2540) at netbsd:__kernassert+0x3
  9
  sched_wakeup(cb6a2540,c062d870,cb6cff7c,c035747d,c062d870) at netbsd:sched_wakeu
  p+0xaa
  sleepq_remove(c062d878,cb6a2540,0,4,104) at netbsd:sleepq_remove+0x128
  sleepq_unsleep(cb6a2540,cb6a2e00,0,c0357161,c05c8740) at netbsd:sleepq_unsleep+0
  x47
  callout_softclock(0,c01010ae,1,0,c01010ae) at netbsd:callout_softclock+0x317
  softintr_dispatch(0,cb61ebfc,cd33de13,uvm_fault(0xc0608ca0, 0xcb6d0000, 1) -> 0xe
  kernel: supervisor trap page fault, code=0
  
  Faulted in DDB; continuing...
  db{0}> show sched
  Symbol not found
  db{0}> 

Markus.