[Bug 249067] coredumps include whole maps
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 8 16:06:59 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249067
--- Comment #2 from Mark Johnston <markj at FreeBSD.org> ---
It looks like Linux handles core dump data phdrs the same way we do. The trick
they use is to create a hole in the core file whenever a never-faulted virtual
page is written. So a program that maps 512MB, faults a single page, and dumps
core gives:
# ./a.out
addr is 0x7fc076b57000
Aborted (core dumped)
# du -h core
116K core
# du -h --apparent-size core
513M core
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list