Project

General

Profile

Bug #12667

savecore -v floating point exception on incomplete core

Added by Hans Rosenfeld 2 months ago.

Status:
New
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

My system crashed and for some unknown reason the core was incomplete. Trying to decompress it with savecore -vf resulted in a floating point exception because 0 pages were saved, and savecore then does this:

(void) printf("%ld (%ld%%) zero pages were not written\n",
    (pgcnt_t)zpages, (pgcnt_t)zpages * 100 /
    dumphdr.dump_npages);

Also available in: Atom PDF