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:
Chris Peterson 2012-04-09 12:45:25 -07:00
Родитель 465a5c3e9b
Коммит 34deeb369a
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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