Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) crashes #1545
Conversation
| sigaction(SIGABRT, &SIGABRT_action, NULL); | ||
|
|
||
| struct sigaction SIGSEGV_action; | ||
| SIGSEGV_action.sa_handler = SIGSEGV_handler; |
darind
Dec 2, 2019
Member
We can reuse the same signal handler for both signals, since the behaviour is quite similar (throw a NativeScriptException).
We can reuse the same signal handler for both signals, since the behaviour is quite similar (throw a NativeScriptException).
|
@darind |
Description
Various
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) crashesreported in Google Play. Occur at a ~0.4-0.5% crash rate. Usually Android 9 (sometimes 7/8/10). I see there is a similar handler for SIGABRT on those versions, so I just expanded that to include SIGSEGV.Does your commit message include the wording below to reference a specific issue in this repo?
Fixes #1413
Does your pull request have unit tests?
No idea how to test this from the JS like SIGABRT. However, prior to this change I was getting hundreds of these a day, and now almost 0 (the very few still are those
< API 25).