Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 13:58:42 +1100
From:      Tim Robbins <tjr@freebsd.org>
To:        Kris Gale <kris-fbsdcur@asn.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Error using savecore: Value too large.
Message-ID:  <20040219025842.GA34847@cat.robbins.dropbear.id.au>
In-Reply-To: <50862.68.106.19.246.1077140756.squirrel@mail.asn.net>
References:  <50862.68.106.19.246.1077140756.squirrel@mail.asn.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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;
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219025842.GA34847>