coredump - What component actually dumps core? -


I'm not sure whether it is a C library or something else that dumps the contents to the main file and the program is excluded. Turns out What do I mean here that glibc or libc handles sigsegv and creates core dumps in the handler function? Please explain.

In Linux, the kernel process execution and signal handling mechanisms are responsible.

  zero do_coredump (long signr, int exit_code, struct pt_regs * regs) {...  

  if (sig_kernel_coredump (signr)) {if (print_fatal_signals) print_fatal_signal (regs, info-> si_signo); / * * If this core was able to dump, then it kills all the other threads in the group and * synchronizes with their demise if we have lost the race with the second thread, then it first set group_exit_code And our do_group_exit call * below will use that value and we will ignore one passing it * / Do_coredump (info-> si_signo, info-> si_signo, regs);  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -