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
parent 43693c5ef7
commit e8f1923660

View File

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