From owner-freebsd-bugs@FreeBSD.ORG Wed May 28 01:50:19 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 851AE37B418 for ; Wed, 28 May 2003 01:50:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDF4643FA3 for ; Wed, 28 May 2003 01:50:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4S8o9Up037984 for ; Wed, 28 May 2003 01:50:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4S8o9iT037983; Wed, 28 May 2003 01:50:09 -0700 (PDT) Date: Wed, 28 May 2003 01:50:09 -0700 (PDT) Message-Id: <200305280850.h4S8o9iT037983@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Aaron Smith Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aaron Smith List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 08:50:19 -0000 The following reply was made to PR i386/41723; it has been noted by GNATS. From: Aaron Smith To: freebsd-gnats-submit@FreeBSD.org, kreature@c2i.net, freebsd-misuser@dcf77-zeit.netscum.dyndns.dk, bright@mu.org Cc: Subject: Re: i386/41723: Copying files to filesystem causes "integer divide fault" and panic. Date: Tue, 27 May 2003 20:13:54 -0700 [apologies for the long URL] http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&threadm=200205261326.g4QDQrC00472%40beerswilling.netscum.dyndns.dk&rnum=1&prev=/groups%3Fq%3Dffs_dirpref%2Bdivide%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%3D200205261326.g4QDQrC00472%2540beerswilling.netscum.dyndns.dk%26rnum%3D1 As indicated in this thread, there is an overflow problem in ffs_dirpref for large filesystems. The symptom is an integer divide-by-zero exception at ffs_dirpref+0x1e8 (at least on a recent -CURRENT). This bug has been around for a year plus. Who else has seen this, and is anyone working on it before I do? It looks like it would reliably happen on any large FS for which you increase the average file size. I'm going to go through and change some types to int64_t and see if I can get this to stop panicking on my 1TB filesystem. Any advice that would lead to less hassle would be much appreciated. --Aaron