mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-25 04:51:13 +00:00
f72b9c6ff4
Breakpad can be used on processes where a mistaken library saves then restores one of our signal handlers with 'signal' instead of 'sigaction'. This loses the SA_SIGINFO flag associated with the Breakpad handler, and in some cases (e.g. Android/ARM kernels), the values of the 'info' and 'uc' parameters that ExceptionHandler::SignalHandler() receives will be completely bogus, leading to a crash when the function is executed (and of course, no minidump generation). To work-around this, have SignalHandler() check the state of the flag. If it is incorrectly unset, re-register with 'sigaction' and the correct flag, then return. The signal will be re-thrown, and this time the function will be called with the correct values. Review URL: https://breakpad.appspot.com/481002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1067 4c0a9323-5329-0410-9bdc-e9ce6186880e |
||
---|---|---|
.. | ||
apple/Framework | ||
ios | ||
linux | ||
mac | ||
solaris/handler | ||
windows | ||
minidump_file_writer-inl.h | ||
minidump_file_writer.cc | ||
minidump_file_writer.h | ||
minidump_file_writer_unittest.cc |