From owner-freebsd-current@FreeBSD.ORG Wed Feb 18 18:59:17 2004 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 EDA6D16A4CE for ; Wed, 18 Feb 2004 18:59:17 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8B1B43D1D for ; Wed, 18 Feb 2004 18:59:17 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.41.141) by smtp01.syd.iprimus.net.au (7.0.024) id 402BA92700206077; Thu, 19 Feb 2004 13:59:13 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id DA78E41C0; Thu, 19 Feb 2004 13:58:42 +1100 (EST) Date: Thu, 19 Feb 2004 13:58:42 +1100 From: Tim Robbins To: Kris Gale Message-ID: <20040219025842.GA34847@cat.robbins.dropbear.id.au> References: <50862.68.106.19.246.1077140756.squirrel@mail.asn.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50862.68.106.19.246.1077140756.squirrel@mail.asn.net> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: Error using savecore: Value too large. 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: Thu, 19 Feb 2004 02:59:18 -0000 On Wed, Feb 18, 2004 at 02:45:56PM -0700, Kris Gale wrote: > I'm trying to save a crash dump using savecore, and I'm seeing this: > > Feb 19 05:31:05 chief2 savecore: reboot after panic: page fault > savecore: unable to open bounds file, using 0 > savecore: writing core to vmcore.0 > savecore: write error on vmcore.0 file: Value too large to be stored in > data type [...] > The vmcore.0 created is only 16M. The system has 4gb of RAM, > and the dump device is about 40gb. > > Should I be concerned about this error message, and if so, > how can I work around it? Try this patch: ==== //depot/user/tjr/freebsd-tjr/src/sbin/savecore/savecore.c#3 - /home/tim/p4/src/sbin/savecore/savecore.c ==== @@ -422,7 +422,7 @@ if (fwrite(buf + nw, hs - nw, 1, fp) != 1) break; if (he > hs) - if (fseek(fp, he - hs, SEEK_CUR) == -1) + if (fseeko(fp, he - hs, SEEK_CUR) == -1) break; } }