Error using savecore: Value too large.
Tim Robbins
tjr at freebsd.org
Wed Feb 18 18:59:18 PST 2004
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;
}
}
More information about the freebsd-current
mailing list