From owner-freebsd-current Mon Dec 10 5:10:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id A589937B417; Mon, 10 Dec 2001 05:10:36 -0800 (PST) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.6/8.11.5) with ESMTP id fBAD7Y801018; Mon, 10 Dec 2001 08:07:35 -0500 (EST) (envelope-from mi@aldan.algebra.com) Message-Id: <200112101307.fBAD7Y801018@aldan.algebra.com> Date: Mon, 10 Dec 2001 08:07:33 -0500 (EST) From: Mikhail Teterin Subject: panic upon manual swapon(8) To: current@FreeBSD.org Cc: dillon@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I typicly run without any swap space configured -- 320Mb of RAM is usually fine. However, after noticing a message "get swap space failed" (or similar) in the nightly report, I tried to tell my Nov 5 -current to swapon /dev/da0b I used to do this with full impunity in the past, but this time the thing paniced with: IdlePTD 5033984 initial pcb at 3e3f00 panicstr: bwrite: buffer is not busy??? panic messages: --- Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = 01000000 fault virtual address = 0x18 fault code = supervisor read, page not present instruction pointer = 0x8:0xc024f50f stack pointer = 0x10:0xcf0fab8c frame pointer = 0x10:0xcf0fab98 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 16315 (swapon) trap number = 12 panic: page fault cpuid = 0; lapic.id = 01000000 boot() called on cpu#0 syncing disks... panic: bwrite: buffer is not busy??? cpuid = 0; lapic.id = 01000000 boot() called on cpu#0 Uptime: 22h14m15s Some sources have been re-cvsuped since, but not the vfs_subr.c, where the actual panic occured, seemingly: #0 dumpsys () at /ccd/src/sys/kern/kern_shutdown.c:492 warning: Source file is more recent than executable. 492 if (!dodump) (kgdb) where #0 dumpsys () at /ccd/src/sys/kern/kern_shutdown.c:492 #1 0xc02124c0 in boot (howto=260) at /ccd/src/sys/kern/kern_shutdown.c:335 #2 0xc021295d in panic (fmt=0xc035c878 "bwrite: buffer is not busy???") at /ccd/src/sys/kern/kern_shutdown.c:634 #3 0xc0247203 in bwrite (bp=0xc7cea51c) at /ccd/src/sys/kern/vfs_bio.c:666 #4 0xc02484bc in vfs_bio_awrite (bp=0xc7cea51c) at /ccd/src/sys/kern/vfs_bio.c:1529 #5 0xc02ce8f4 in ffs_fsync (ap=0xcf0faa44) at /ccd/src/sys/ufs/ffs/ffs_vnops.c:239 #6 0xc02ccdbe in ffs_sync (mp=0xc16be600, waitfor=2, cred=0xc1027b00, td=0xc04098e4) at vnode_if.h:441 #7 0xc0253c5a in sync (td=0xc04098e4, uap=0x0) at /ccd/src/sys/kern/vfs_syscalls.c:657 #8 0xc02120e1 in boot (howto=256) at /ccd/src/sys/kern/kern_shutdown.c:244 #9 0xc021295d in panic (fmt=0xc0376e3e "%s") at /ccd/src/sys/kern/kern_shutdown.c:634 #10 0xc03185ea in trap_fatal (frame=0xcf0fab4c, eva=24) at /ccd/src/sys/i386/i386/trap.c:939 #11 0xc0318311 in trap_pfault (frame=0xcf0fab4c, usermode=0, eva=24) at /ccd/src/sys/i386/i386/trap.c:853 #12 0xc0317d4f in trap (frame={tf_fs = 24, tf_es = -821100528, tf_ds = -831127536, tf_edi = 2, tf_esi = 0, tf_ebp = -821056616, tf_isp = -821056648, tf_ebx = 0, tf_edx = 1, tf_ecx = -829663484, #13 0xc024f50f in vlrureclaim (mp=0x0, count=2) at /ccd/src/sys/kern/vfs_subr.c:561 #14 0xc024f58e in getnewvnode (tag=VT_NON, mp=0x0, vops=0xc163d000, vpp=0xc04167f8) at /ccd/src/sys/kern/vfs_subr.c:593 #15 0xc02e5b92 in swaponvp (td=0xce8c5704, vp=0xce818080, dev=0xc1714f00, nblks=0) at /ccd/src/sys/vm/vm_swap.c:268 #16 0xc02e5b02 in swapon (td=0xce8c5704, uap=0xcf0fad20) at /ccd/src/sys/vm/vm_swap.c:230 #17 0xc0318a98 in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077938364, tf_esi = 2, tf_ebp = -1077938372, tf_isp = -821056140, tf_ebx = -1077938105, tf_edx = 0, tf_ecx = 134571136, tf_eax = 85, tf_trapno = 12, tf_err = 2, tf_eip = 134515980, tf_cs = 31, tf_eflags = 659, tf_esp = -1077938568, tf_ss = 47}) at /ccd/src/sys/i386/i386/trap.c:1129 18 0xc030727d 0xc030727din syscall_with_err_pushed () #19 0x0 in ?? () (kgdb) up 13 #13 0xc024f50f in vlrureclaim (mp=0x0, count=2) at /ccd/src/sys/kern/vfs_subr.c:561 561 } [...] env LANG=C ls -l /ccd/src/sys/kern/vfs_subr.c -rw-r--r-- 1 mi wheel 76055 Nov 4 16:34 /ccd/src/sys/kern/vfs_subr.c [...] (kgdb) up #14 0xc024f58e in getnewvnode (tag=VT_NON, mp=0x0, vops=0xc163d000, vpp=0xc04167f8) at /ccd/src/sys/kern/vfs_subr.c:593 593 vlrureclaim(mp, 2); (kgdb) p mp $1 = (struct mount *) 0x0 Anything else? Thanks, -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message