Re: Error using savecore: Value too large.

From: Tim Robbins <tjr_at_freebsd.org>
Date: Thu, 19 Feb 2004 13:58:42 +1100
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 ====
_at__at_ -422,7 +422,7 _at__at_
 				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;
 			}
 		}
Received on Wed Feb 18 2004 - 17:59:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:43 UTC