From owner-freebsd-current@FreeBSD.ORG Wed Mar 3 16:03:18 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 BDE0D16A4CE for ; Wed, 3 Mar 2004 16:03:18 -0800 (PST) Received: from server.hmallett.co.uk (hmallett.plus.com [81.174.158.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id C268043D39 for ; Wed, 3 Mar 2004 16:03:17 -0800 (PST) (envelope-from hywel@hmallett.co.uk) Received: from study (study [192.168.0.3]) by server.hmallett.co.uk (Postfix) with SMTP id B4FAD209B for ; Thu, 4 Mar 2004 00:03:11 +0000 (GMT) Message-ID: <006801c4017c$171633c0$0300a8c0@hmallett.co.uk> From: "Hywel Mallett" To: Date: Thu, 4 Mar 2004 00:03:13 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailman-Approved-At: Thu, 04 Mar 2004 04:48:27 -0800 Subject: Panic: ffs_umount 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: Thu, 04 Mar 2004 00:03:18 -0000 Hi all, I got a panic while trying to umount a floppy I'm not a developer, but I followed the instructions in the developers handbook, so I've got a backtrace and a dmesg attached. The last security log before the crash had the following line: > fd0: hard error cmd=read fsbn 62 of 56-63 (ST0 44 ST1 20 ST2 20 cyl 1 hd 1 sec 9) server# cd /usr/obj/usr/src/sys/server/ server# gdb -k kernel.debug /usr/local/var/crash/vmcore.0 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... panic: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x6c fault code = supervisor write, page not present instruction pointer = 0x8:0xc05e3c7d stack pointer = 0x10:0xd1f24c48 frame pointer = 0x10:0xd1f24c8c 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 = 1951 (umount) trap number = 12 panic: page fault syncing disks, buffers remaining... 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 2638 giving up on 2442 buffers Uptime: 9h2m24s Dumping 319 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 --- Reading symbols from /usr/obj/usr/src/sys/server/modules/usr/src/sys/modules/acpi/acpi.ko.debug.. .done. Loaded symbols for /usr/obj/usr/src/sys/server/modules/usr/src/sys/modules/acpi/acpi.ko.debug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) list *0xc05e3c7d 0xc05e3c7d is in ffs_unmount (/usr/src/sys/ufs/ffs/ffs_vfsops.c:990). 985 if (error) { 986 fs->fs_clean = 0; 987 return (error); 988 } 989 } 990 ump->um_devvp->v_rdev->si_mountpoint = NULL; 991 992 vinvalbuf(ump->um_devvp, V_SAVE, NOCRED, td, 0, 0); 993 /* XXX: see comment above VOP_OPEN */ 994 #ifdef notyet (kgdb) backtrace #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc04c3b99 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:372 #2 0xc04c3f78 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc0646db6 in trap_fatal (frame=0xd1f24c08, eva=0) at /usr/src/sys/i386/i386/trap.c:821 #4 0xc0646a52 in trap_pfault (frame=0xd1f24c08, usermode=0, eva=108) at /usr/src/sys/i386/i386/trap.c:735 #5 0xc06465ad in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1009713920, tf_esi = -999817216, tf_ebp = -772649844, tf_isp = -772649932, tf_ebx = 0, tf_edx = 4, tf_ecx = -1066665592, tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -1067565955, tf_cs = 8, tf_eflags = 66118, tf_esp = -1009713920, tf_ss = 1}) at /usr/src/sys/i386/i386/trap.c:420 #6 0xc06377b8 in calltrap () at {standard input}:94 #7 0xc051e644 in dounmount (mp=0xc30fbc00, flags=-999817216, td=0xc3d0fd00) at /usr/src/sys/kern/vfs_mount.c:1144 #8 0xc051e3cb in unmount (td=0xc4645500, uap=0xd1f24d14) at /usr/src/sys/kern/vfs_mount.c:1083 #9 0xc0647140 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134523407, tf_esi = 134536705, tf_ebp = -1077942936, tf_isp = -772649612, tf_ebx = -1077943024, tf_edx = 25, tf_ecx = 0, tf_eax = 22, tf_trapno = 12, tf_err = 2, tf_eip = 671874959, tf_cs = 31, tf_eflags = 518, tf_esp = -1077943124, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1010 #10 0xc063780d in Xint0x80_syscall () at {standard input}:136 ---Can't read userspace from dump, or kernel process--- (kgdb) quit server# dmesg Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2.1-RELEASE #0: Wed Feb 25 01:05:40 GMT 2004 hywel@server.hmallett.co.uk:/usr/obj/usr/src/sys/server Preloaded elf kernel "/boot/kernel/kernel" at 0xc07b0000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07b01f4. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (267.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 335478784 (319 MB) avail memory = 320430080 (305 MB) Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00fdb90 acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: on acpi0 pcib0: port 0x5000-0x500f,0x4000-0x4041,0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 7 INTD is routed to irq 11 pcib0: slot 10 INTA is routed to irq 10 agp0: mem 0xe4000000-0xe43fffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0xe000-0xe01f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe400-0xe47f mem 0xe4401000-0xe440107f irq 10 at device 10.0 on pci0 xl0: Ethernet address: 00:01:02:e3:3b:d0 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 12.0 (no driver attached) fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 orm0: