Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Sep 2020 16:43:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 249067] coredumps include whole maps
Message-ID:  <bug-249067-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249067

            Bug ID: 249067
           Summary: coredumps include whole maps
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: brooks@FreeBSD.org

FreeBSD coredumps dump whole apps even when most pages haven't been touched. 
Modern allocators often allocate very large regions of VA e.g. with 1GiB-100GiB
mmaps rather than making repeated calls to mmap. When such processes dump core
the whole map gets dumped even though it's nearly all unmapped pages.  Linux
breaks such maps into a set of PT_LOADs where unbacked anonymous pages aren't
present in the file.

We ran into this on a very slow riscv (100MHz FPGA with very slow disk), but we
believe it effects everyone.

-- 
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>