--disable-breakpad should let crashes flow to Windows Error Reporting |
|
Issue descriptionbreakpad/crashpad are great but they only record minidumps, not minidumps with heap, and may omit other information that Windows Error Reporting records. This is particularly problematic when dealing with the out-of-memory crashes that I occasionally see on my home computer. While these are probably due to bad websites with JavaScript memory leaks it could still be useful to get full crash dumps. This can either be done by giving crashpad the option to record full crash dumps or, more easily, by having --disable-breakpad cause crashpad to ignore crashes so that they are handled by Windows Error Reporting, as described here: https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
,
Oct 2
Thanks Bruce, I agree this is a good idea. We also have http://crbug.com/crashpad/239, which pretty much says the same thing but with a new --disable-crashpad switch to avoid any confusion.
,
Oct 3
It looks like the sandbox prevents WER from working. If I unconditionally crash in wWinMain then I get crash dumps from the browser process recorded by WER. If I crudely detect the renderer process at the earliest possible moment:
#if !defined(WIN_CONSOLE_APP)
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev, wchar_t*, int) {
#else
int main() {
HINSTANCE instance = GetModuleHandle(nullptr);
#endif
wchar_t* p = GetCommandLine();
wchar_t* pType = wcsstr(p, L"--type=");
if (pType && (wcsncmp(pType, L"--type=renderer", 15) == 0))
__debugbreak();
I get no crash dumps. I don't see a way around this. Maybe the better option would be to support some way of asking crashpad to save full memory dumps, perhaps a registry key. Or perhaps it's not important enough. Thoughts?
|
|
►
Sign in to add a comment |
|
Comment 1 by brucedaw...@chromium.org
, Oct 2