Date: Tue, 08 Sep 2020 16:06:57 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 249067] coredumps include whole maps Message-ID: <bug-249067-227-f4P7K6d55K@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-249067-227@https.bugs.freebsd.org/bugzilla/> References: <bug-249067-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249067 --- Comment #2 from Mark Johnston <markj@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249067-227-f4P7K6d55K>
