Examine local variable in a MacOS minidump?

84 views
Skip to first unread message

Helen Li

unread,
May 9, 2017, 12:21:50 PM5/9/17
to Chromium-dev
Hi Chromium-dev,

I have a MacOS minidump. http://dev.chromium.org/developers/crash-reports#TOC-Extracting-Local-Variables-on-POSIX has a 8-step recommendation for how to get the local variable out of a POSIX minidump.  Examining local variables in a Windows minidump is straightforward with WinDbg, is there a similar way to do it on Mac? 

If there's no new tool, I will follow the 8-step instruction.

void URLFetcherCore::DumpWithoutCrashing() const {
   ...
   base::debug::Alias(&stack_size);
   base::debug::Alias(&instruction_pointers_copy); <-- I would like to read this from the MacOS minidump.
   base::debug::DumpWithoutCrashing();
}

Thanks!

Robert Sesek

unread,
May 10, 2017, 8:43:38 AM5/10/17
to xunj...@chromium.org, Chromium-dev
Hi Helen,

No, there are no tools to automatically extract stack variables from minidumps on Mac. You'll either need to manually examine the stack memory to recover it (assuming your data is on the stack, otherwise you won't be able to recover it), or you can use crash keys: http://dev.chromium.org/developers/debugging-with-crash-keys.

- Robert

rsesek / @chromium.org

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAEkFr04iPB8M0%3Dsz6KHSm6wk4b8E_Zur0btfs6VhkCncom%2BD0Q%40mail.gmail.com.

Helen Li

unread,
May 10, 2017, 3:36:52 PM5/10/17
to Robert Sesek, Chromium-dev
Got it. Thanks for the help, Robert.
Reply all
Reply to author
Forward
0 new messages