jasonmolenda wrote: I'll look more closely later when I have time, but ObjectFileMachO::SaveCore called `Process::CalculateCoreFileSaveRanges` with an `options` of `eSaveCoreDirtyOnly` (so, `GetCoreFileSaveRangesDirtyOnly()`), it's returning gigantic memory regions to be saved to the corefile. I tried doing a "full" style coredump of the test binary (using an lldb with this patch applied) and it was around 4.6GB. Then I tried a `-s modified-memory` corefile and it had dumped 34GB before I killed the process. Running an lldb without this PR, a dirty-memory-only coredump of this process is 10MB.
https://github.com/llvm/llvm-project/pull/107731 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits