From owner-freebsd-stable@FreeBSD.ORG Sat Sep 17 11:31:35 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65DF616A41F for ; Sat, 17 Sep 2005 11:31:35 +0000 (GMT) (envelope-from b_bonev@mail.orbitel.bg) Received: from smtp.orbitel.bg (smtp.orbitel.bg [195.24.32.22]) by mx1.FreeBSD.org (Postfix) with SMTP id 46F8443D49 for ; Sat, 17 Sep 2005 11:31:33 +0000 (GMT) (envelope-from b_bonev@mail.orbitel.bg) Received: (qmail 18323 invoked from network); 17 Sep 2005 11:31:32 -0000 Received: from unknown (HELO localhost) (10.0.0.4) by smtp.orbitel.bg with SMTP; 17 Sep 2005 11:31:32 -0000 Received: from smtp.orbitel.bg ([10.0.0.3]) by localhost (sof-rv2.orbitel.bg [10.0.0.4]) (amavisd-new, port 10024) with ESMTP id 23893-82; Sat, 17 Sep 2005 14:31:32 +0300 (EEST) Received: from server (unknown [83.228.34.40]) by smtp.orbitel.bg (Postfix) with ESMTP id 8EBE0A5CC0A; Sat, 17 Sep 2005 14:31:31 +0300 (EEST) From: "B. Bonev" To: Date: Sat, 17 Sep 2005 14:31:27 +0200 Organization: ORAC Ltd. Message-ID: <000001c5bb83$b9cbd3a0$4700000a@server> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at orbitel.bg Cc: freebsd-stable@freebsd.org Subject: BETA4: Panic and can't cleanup filesystem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 11:31:35 -0000 When trying to unmount my flash drive with force (#umount -f /flash) = machine hardlocked. After restart, when fsck-ing in background, computer panicked. Machine is SMP 2x500MHz PIII with Asus P2B-DS motherboard cvsuped and updated to RELENG_6 (BETA4) on 14 september with SHED_ULE = and PREEMPTION panic is written on hand: panic: handle_written_inodeblock: live inodedep cpuid=3D0 KDB: enter: panic [thread pid3 tid 100033] stopped at kdb_enter+0x2b:nop db> where Tracing pid 3 tid 100033 td 0xc15d17d0 kdb_enter(c062b964) at kdb_enter+0x2b panic(c063a716,0,2,0,0) at panic+0x127 handle_written_inodeblock(c1809a00,cbc1a738) at handle_written_inodeblock+0x533 softdep_disk_write_complete(cbc1a738) at = softdep_disk_write_complete+0xb6 bufdone(cbc1a738) at bufdone+0x160 g_vfs_done(c1825ad4) at g_vfs_done+0x8a biodone(c1825ad4,d42e8cc4,0,c062632c,1ea) at biodone+0x57 g_io_shedule_up(c15d17d0) at g_io_shedule_up+0xb5 g_up_procbody(0,d42e8d38,0,c04be5c0,0) at g_up_procbody+0x5a fork_exit(c04be5c0,0,d42e8d38 at fork_exit+0xa0 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1,eip=3D0,esp=3D0xd42e8d6c,ebp=3D0 --- db>show alllocks Process 3 (g_up) thread 0xc15d17d0 (100033) exclusive sleep mutex SoftdepLock r=3D0 (0xc06dbda0) locked @ /usr/src/sys/ufs/ffs/ffs_softdep.c:4075 exclusive sleep mutex g_xup r=3D0 (0xd42e8cc4) locked @ /usr/src/sys/geom/geom_io.c:490 Process 31 (irq20:acpi0) thread 0xc15cd320 (100021) exclusive sleep mutex acpica subsystem lock r=3D0 (0xc15c0280) locked @ /usr/src/sys/modules/acpi/../../../dev/acpica/Osd/Osdynch.c:361 db> panic Dump... after restart, system stoped and entered in single mode with = inconsistency in /var after fsck, there was message: BAD SUPERBLOCK: VALUES IN SUPERBLOCK DISAGREE WITH THOSE IN FIRST = ALTERNATE then search for SUPERBLOCK failed, and fsck don't have option -b... tried to mount all filesystems and got another panic: # /var: bad dir ino 2 at offset 0: mangled entry panic: ufs_dirbad: bad dir cpuid=3D0 KDB: enter: panic [thread pid 133 tid 100063] stoped at kdb_enter+0x2b: nop db>where Tracing pid 133 tid 100063 td 0xc18554000 kdb_enter(c062b964) at kdb_enter+0x2b panic(c063b64c,c1829800,da96c904,c059eb66,c18866b4) at panic+0x127 ufs_dirbad(c18866b4,0,c063b606,c1854000,0) at ufs_dirbad+0x3a ufs_lookup(da96c92c) at ufs_lookup+0x36a VOP_CACHEDLOOKUP_APV(c066fd80,da96c92c) at VOP_CACHEDLOOKUP_APV+0x87 lookup(da96cbcc,c0515064,0,c1854000,c06bc7c0) at lookup+0x3d6 namei(da96cbcc,c062cf75,267,c1854000,da96ca68) at namei+0x35a vn_open_cred(da96cbcc,da96cccc,0,c15c9a80,3) at vn_open_cred+0x277 vn_open(da96cbcc,da96cccc,0,3,c062cf75) at vn_open+0x1e kern_open(c185400,28065e40,0,1,0) at kern_open+0xb6 open(c185400,da96cd04,3,1,296) at open+0x1a syscall(3b,3b,3b,28070000,80486b1) at syscall+0x27f xint0x80_syscall() at xint0x80_syscall+0x1f --- syscall(5,FreeBSD ELF32,open), eip=3D0x28054e67,esp=3D0xbfbfebcc,ebp=3D0xbfbfec78 --- With every restart, system going in single mode. What can i do to clean = /var filesystem and to debug these panics? Any help are welcome... --=20 I am using the free version of SPAMfighter for private users. It has removed 162 spam emails to date. Paying users do not have this message in their emails. Try www.SPAMfighter.com for free now!