Understanding How Linux Detect Programs Crash

5t0n3

New Member
Joined
Dec 7, 2021
Messages
1
Reaction score
0
Credits
16
Hi Everyone,

I need some help to understand how linux detect programs crash. I have been working on OPTEE-OS (see the image) and when a program crash on the RICH OS (in my case Linux) i need to forward the crash detected to the OPTEE Trustzone. I do not need to forward crash details or core dump file to the TrustZone but only that the process with pid XXXXXX crashed.
So i think i should edit the Linux Segmentation Fault handler but i have zero background on how Linux detect and handle programs crash and how it does it.

For example by starting with a simple .c code:

void foo(int *p) { *p = 1; } int main(int argc, char **argv) { int *p = NULL; foo(p); }

How linux detect that crash? and in general of all programs ? Is there any documentation from which I can start that explains the process in detail?
If I’m confusing, please explain to me how to proceed.

Thank you.

optee-os.png
 

Members online


Top