panic: mi_switch: called by old code

From: Willem Jan Withagen <wjw_at_withagen.nl>
Date: Fri, 9 Jul 2004 10:38:40 +0200
[ After fixing M_WAITOK ]
> > >
> > > Not shure if we are any further, or that this in the code supped between 2
> > juli
> > > and this morning....
> > >
> > > panic: mi_switch: called by old code
> > > cpuid = 1;
> > > Stack backtrace:
> > >
> > > Writing a 2Gb dump now.....
> >
> > The dump gives me:
>
>  #26 0xffffffff8025b073 in panic (fmt=0xffffffffb4076940 "\205šA\200’’’’\001")
>      at /home2/src/sys/kern/kern_shutdown.c:543
> #27 0xffffffff802619cb in mi_switch (flags=2, newtd=0xffffff007b566240)
>      at /home2/src/sys/kern/kern_synch.c:306
> #28 0xffffffff80260964 in maybe_preempt (td=0xffffff007b566240)
>      at /home2/src/sys/kern/kern_switch.c:529
> #29 0xffffffff8026cf41 in sched_add (td=0xffffff007b566240)
>      at /home2/src/sys/kern/sched_ule.c:1633
> #30 0xffffffff8026b591 in kseq_assign (kseq=0x0)
>      at /home2/src/sys/kern/sched_ule.c:647
> #31 0xffffffff8026cbcb in sched_choose ()
>      at /home2/src/sys/kern/sched_ule.c:1516
> #32 0xffffffff802602bd in choosethread ()
>      at /home2/src/sys/kern/kern_switch.c:142
> #33 0xffffffff8026c296 in sched_switch (td=0xffffff005abe96c0, newtd=0x0)
>      at /home2/src/sys/kern/sched_ule.c:1168
> #34 0xffffffff80261b37 in mi_switch (flags=-1274582128, newtd=0x0)
>      at /home2/src/sys/kern/kern_synch.c:355
> ---Type <return> to continue, or q <return> to quit---
> #35 0xffffffff8027c4ef in ast (framep=0xffffffffb4076c40)
>      at /home2/src/sys/kern/subr_trap.c:245
> #36 0xffffffff8039a84d in Xfast_syscall ()
>      at /home2/src/sys/amd64/amd64/exception.S:259
>
> So with guidance I can retreive needed data......

It started to occur more and more often to the point where it did not even make
it thru booting... :(
So I tried booting with ACPI, which gives me a single processor system.
And that has compiled a new -current kernel although the amd64-kernel has a
linking problem at the moment.

But my conclussion seems lead to that "panic: mi_switch: called by old code"
does not occur in singple processor mode....

How I fix this for SMP. It runs ULE.

--WjW
Received on Fri Jul 09 2004 - 06:46:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:00 UTC