alexhe / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Provide additional customization for minidumps on Windows using callbacks #234

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
By default, breakpad on Windows only creates a minidump and no further
customization is possible to include more information, either by providing
a full dump or by a minidump callback function.

Original issue reported on code.google.com by sor...@gmail.com on 7 Dec 2007 at 9:42

GoogleCodeExporter commented 9 years ago
In Mozilla, we work around this by simply writing out a text file with extra
information using the same GUID as the dump filename, but a different extension.

Original comment by ted.mielczarek on 10 Dec 2007 at 2:54

GoogleCodeExporter commented 9 years ago
to ted.mielczarek
Do you do it during the crash? Can you share specific details or a link if the 
code is open sourced?

Original comment by iKus...@gmail.com on 19 Feb 2015 at 12:28

GoogleCodeExporter commented 9 years ago
Yes, we do it in the minidump callback:
https://hg.mozilla.org/mozilla-central/annotate/9696d1c4b3ba/toolkit/crashreport
er/nsExceptionHandler.cpp#l731
https://hg.mozilla.org/mozilla-central/annotate/9696d1c4b3ba/toolkit/crashreport
er/nsExceptionHandler.cpp#l854

We're careful not to allocate memory or call into unsafe library functions (use 
the linux syscall wrapper that Breakpad provides on Linux).

It's pretty ugly but it seems to work reliably.

Original comment by ted.mielczarek on 19 Feb 2015 at 1:38