Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

inject: the fault reporter was deaf to the way an Objective-C program actually dies

vcvkkd250db102e41
diff --git a/userland/src/inject.c b/userland/src/inject.c
index 0497eac..837e852 100644
--- a/userland/src/inject.c
+++ b/userland/src/inject.c
@@ -290,6 +290,12 @@ watch_for_faults(void)
action.sa_flags = SA_SIGINFO | SA_RESETHAND;
sigaction(SIGSEGV, &action, NULL);
sigaction(SIGBUS, &action, NULL);
+ /* An Objective-C exception that nobody catches ends in abort(), not in a fault, and a program
+ that dies that way says nothing at all here -- a run that restarted a daemon 31 times was
+ silent until these three were watched as well. */
+ sigaction(SIGABRT, &action, NULL);
+ sigaction(SIGILL, &action, NULL);
+ sigaction(SIGTRAP, &action, NULL);
}
/*