Linux kernel: sequence of events/paths before process coredump happens -


when there segmentation fault , process coredump generated sequence of events happening in kernel , user space (w.r.t linux) ?

linux support sigsegv handler. how signal handler gets called , on return coredump generated ?

i'm looking sequence of events , pointers linux kernel function names (w.r.t latest kernel). figure rest function names, i'do understand can make out rest code.

when sigsegv generated, kernel checks if there handler it. if there is, call it, other signal. if there handler, no core generated. happens in get_signal_to_deliver: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/signal.c#n2192

if gets default action sigsegv, generate coredump , exit. coredump generated do_coredump in fs/coredump.c: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/coredump.c#n485


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -