From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 7 21:20:01 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6286106566C for ; Thu, 7 Jul 2011 21:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 66DE58FC0A for ; Thu, 7 Jul 2011 21:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p67LK1hm094746 for ; Thu, 7 Jul 2011 21:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p67LK1Hh094745; Thu, 7 Jul 2011 21:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 7 Jul 2011 21:20:01 GMT Resent-Message-Id: <201107072120.p67LK1Hh094745@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oskar Nordquist Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B29A106566B for ; Thu, 7 Jul 2011 21:12:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8588FC08 for ; Thu, 7 Jul 2011 21:12:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p67LCFqI006018 for ; Thu, 7 Jul 2011 21:12:15 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p67LCFjf006017; Thu, 7 Jul 2011 21:12:15 GMT (envelope-from nobody) Message-Id: <201107072112.p67LCFjf006017@red.freebsd.org> Date: Thu, 7 Jul 2011 21:12:15 GMT From: Oskar Nordquist To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/158711: panic in ffs_blkfree and ffs_valloc X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 21:20:01 -0000 >Number: 158711 >Category: misc >Synopsis: panic in ffs_blkfree and ffs_valloc >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 07 21:20:01 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Oskar Nordquist >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD dvalin 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: I have a VIA chipset server, with two (2) Western Digital MyBook USB SATA external hard-drives; 1TB and 2TB. Just before panic I get these errors: _vfs_done():da1s1a[WRITE(offset=1632295927808, length=16384)]error = 5 _vfs_done():da1s1a[WRITE(offset=1632488620032, length=16384)]error = 5 _vfs_done():da1s1a[WRITE(offset=1632665665536, length=131072)]error = 5 and then the panics are either panic: ffs_blkfree: freeing free block or: panic: ffs_valloc: dup alloc I should note that I got the ffs_blkfree panic in 8.2-RC3, and then ffs_valloc in 8.2-RELEASE. But I suspect both panics can happen in 8.2-RELEASE as well. Also I have on several occasions had the "AutoSense failed" error, which may be related. >How-To-Repeat: Simultaneously read/write to/from multiple USB SATA-disks at once. Have never seen the problem when only writing or reading once at a time in a single shell. Happens very often when I copy files from one USB disk to another in one shell, while simultaneously reading/writing to the first drive in another shell. This could possibly be due to bad sectors on the drives, as I get several messages with fsck that some sectors could not be read. >Fix: >Release-Note: >Audit-Trail: >Unformatted: