From owner-freebsd-current@FreeBSD.ORG Fri Jul 9 08:46:07 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0629A16A4CE; Fri, 9 Jul 2004 08:46:07 +0000 (GMT) Received: from freebee.digiware.nl (dsl390.iae.nl [212.61.63.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id E862C43D31; Fri, 9 Jul 2004 08:46:05 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from dual (dual [212.61.27.71]) by freebee.digiware.nl (8.12.10/8.12.10) with SMTP id i698ckvZ095901; Fri, 9 Jul 2004 10:38:46 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <068601c46590$23054360$471b3dd4@digiware.nl> From: "Willem Jan Withagen" To: "Willem Jan Withagen" , "Robert Watson" References: <1e4101c462ca$c23251d0$471b3dd4@digiware.nl> Date: Fri, 9 Jul 2004 10:38:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-current@freebsd.org Subject: panic: mi_switch: called by old code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 08:46:07 -0000 [ 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 to continue, or q 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