From owner-freebsd-current@FreeBSD.ORG Tue May 20 04:47:43 2003 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 D71E837B401; Tue, 20 May 2003 04:47:43 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D00EB43F75; Tue, 20 May 2003 04:47:41 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h4KBlel16645; Tue, 20 May 2003 08:47:40 -0300 Message-ID: <3ECA15DB.7020107@tcoip.com.br> Date: Tue, 20 May 2003 08:47:39 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030416 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: CURRENT Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: mckusick@FreeBSD.ORG Subject: panic: lockmgr: locking against myself 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: Tue, 20 May 2003 11:47:44 -0000 This is an easily reproducable panic. Whenever my system panics for some reason, that panic will follow during the background fsck afterwards. I'm inclined to disable background fsck, only that would be just masking the problem, not solving it. I *thought* this had been solved. :-( When this stuff happens, I always boot single user and run fsck by hand, so I can't see how it could be inconsistent state left by an early panic _during_ a background fsck. Kirk, do you recommend any course of action to me that would help tracking down this bug? Trace follows, further information available upon request. This kernel was compiled from yesterday (19th) sources. 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-undermydesk-freebsd"... "/var/crash/vmcore.2" is not a core dump: File format not recognized (gdb) quit root@dcs:/opt/home/dcs$ gdb -k /usr/obj/usr/src/sys/DCS/kernel.debug /var/crash/vmcore.2 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-undermydesk-freebsd"... panic: lockmgr: locking against myself panic messages: --- panic: lockmgr: locking against myself syncing disks, buffers remaining... 248 248 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 247 giving up on 231 buffers Uptime: 3m5s Dumping 255 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240Copyright (c) 1992-2003 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.1-BETA #30: Mon May 19 21:40:33 BRT 2003 root@dcs:/usr/obj/usr/src/sys/DCS Preloaded elf kernel "/boot/kernel/kernel" at 0xc04c0000. Preloaded elf module "/boot/kernel/snd_cmi.ko" at 0xc04c021c. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc04c02c8. Preloaded elf module "/boot/kernel/mac_biba.ko" at 0xc04c0374. Preloaded elf module "/boot/kernel/mac_mls.ko" at 0xc04c0424. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04c04d0. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1007050471 Hz CPU: Intel(R) Celeron(TM) CPU 1000MHz (1007.05-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383f9ff real memory = 268353536 (255 MB) avail memory = 255438848 (243 MB) Security policy loaded: TrustedBSD MAC/Biba (mac_biba) Security policy loaded: TrustedBSD MAC/MLS (mac_mls) Pentium Pro MTRR support enabled VESA: v3.0, 4096k memory, flags:0x1, mode table:0xc03ca722 (1000022) VESA: NVidia npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00f12d0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.AGP_ - AE_NOT_FOUND pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 5 at device 4.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub0: port error, restarting port 1 uhub0: port error, giving up port 1 ugen0: AKS eToken R2 2242, rev 1.00/1.00, addr 2 uhub0: port error, restarting port 2 uhub0: port error, giving up port 2 uhci1: port 0xd000-0xd01f irq 5 at device 4.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhub1: port error, restarting port 1 uhub1: port error, giving up port 1 uhub1: port error, restarting port 2 uhub1: port error, giving up port 2 pcm0: port 0xb800-0xb8ff at device 5.0 on pci0 pcib0: slot 5 INTA is routed to irq 5 fxp0: port 0xb400-0xb43f mem 0xf3000000-0xf30fffff,0xf3800000-0xf3800fff irq 10 at device 9.0 on pci0 fxp0: Ethernet address 00:02:b3:ae:0d:ea miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto 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 ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 orm0: