From owner-freebsd-fs@FreeBSD.ORG Wed Feb 13 23:36:40 2008 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D43516A417; Wed, 13 Feb 2008 23:36:40 +0000 (UTC) (envelope-from jakob@dev.citybikes.cz) Received: from dev.citybikes.cz (r5o136.net.upc.cz [86.49.14.136]) by mx1.freebsd.org (Postfix) with ESMTP id 9953613C455; Wed, 13 Feb 2008 23:36:39 +0000 (UTC) (envelope-from jakob@dev.citybikes.cz) Received: from dev.citybikes.cz (localhost [127.0.0.1]) by dev.citybikes.cz (8.14.2/8.14.2) with ESMTP id m1DN4YbG001619; Thu, 14 Feb 2008 00:04:34 +0100 (CET) (envelope-from jakob@dev.citybikes.cz) Received: (from jakob@localhost) by dev.citybikes.cz (8.14.2/8.14.2/Submit) id m1DN4XUA001618; Thu, 14 Feb 2008 00:04:34 +0100 (CET) (envelope-from jakob) Date: Thu, 14 Feb 2008 00:04:33 +0100 From: Jakub Siroky To: Kris Kennaway Message-ID: <20080214000433.6d8e1f34@dev.citybikes.cz> In-Reply-To: <47921AE2.1060004@FreeBSD.org> References: <20080118120140.2a8170a0@dev> <47921931.9050606@FreeBSD.org> <47921AE2.1060004@FreeBSD.org> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org Subject: Re: infinite loop when copying to ext2fs / ext2_new_block() X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 23:36:40 -0000 This is the dump when I place a panic call inside the loop and then use kgdb: Panic String: ext2_new_block: bit already set for block 5346 panic() at panic+0x17a - added otherwise loop occurs, especially when the volume is almost full ext2_new_block() at ext2_new_block+0x892 ext2_alloc() at ext2_alloc+0x189 ext2_balloc() at ext2_balloc+0x1f3 ext2_write() at ext2_write+0x178 VOP_WRITE_APV() at VOP_WRITE_APV+0x131 vn_write() at vn_write+0x1ce dofilewrite() at dofilewrite+0x85 kern_writev() at kern_writev+0x4c write() at write+0x54 syscall() at syscall+0x1f6 Xfast_syscall() at Xfast_syscall+0xab --- syscall (4, FreeBSD ELF64, write), rip = 0x800713d3c, rsp = 0x7fffffffe948, rbp = 0x19df2 --- Regards, Jakub On Sat, 19 Jan 2008 16:44:34 +0100 Kris Kennaway wrote: > Kris Kennaway wrote: > > Jakub Siroky wrote: > >> I have two large ext2fs partitions (368 and 313GB) to hold data > >> shared between several OSes. While there were no problems on > >> 6-STABLE branch I was quite disappointed after upgrade to > >> 7-STABLE. Whenever I copy/write to ext2fs partition the system > >> freezes totally without crashdump. So I set debugging settings to > >> kernel config (DEBUG,WITNESS,..) and in console I reproduced error > >> situation ending with full screen of unstoppable running text with > >> lot of memory addresses and a few recognisable words: 'new block > >> bit set for ext already' - again with no crashdump. Then I have > >> formatted 1GB partition with ext2fs and the problem on this small > >> partition appears only sometimes. > > > > OK, I am able to reproduce this. > > > > Kris > > > > Is anyone able to look at this? I could not spot a candidate change > that has not been merged to 6.x. > > Kris