зеркало из https://github.com/mozilla/gecko-dev.git
Bug 743306 - Part 2: On Android, segfault in MOZ_Crash because SIGABRT is handled asynchronously. r=glandium
--HG-- extra : rebase_source : 46233676f73a5b8040f92ec251fe0ae3ecca9934
This commit is contained in:
Родитель
465a5c3e9b
Коммит
34deeb369a
|
@ -72,6 +72,13 @@ MOZ_Crash()
|
|||
*/
|
||||
*((volatile int *) NULL) = 123;
|
||||
exit(3);
|
||||
#elif defined(ANDROID)
|
||||
/*
|
||||
* On Android, raise(SIGABRT) is handled asynchronously. Seg fault now
|
||||
* so we crash immediately and capture the current call stack.
|
||||
*/
|
||||
*((volatile int *) NULL) = 123;
|
||||
abort();
|
||||
#elif defined(__APPLE__)
|
||||
/*
|
||||
* On Mac OS X, Breakpad ignores signals. Only real Mach exceptions are
|
||||
|
|
Загрузка…
Ссылка в новой задаче