<div dir="ltr">I am trying to get create a custom error log of a process when it causes a segmentation fault.<div>We can modify the<b> /proc/sys/kernel/core_pattern</b> file to pipe the core information to a handler binary.</div><div><br><div>I am trying to use the <b>libunwind </b>library within this handler to also get the backtrace information but it is failing.</div><div><br></div><div>As per my understanding, the <b>do_coredump</b> kills the faulty process inside
<b>coredump_wait</b><b> </b>function before invoking the userspace handler,</div><div>This might be the reason the libunwind fails to gather the backtrace as it uses PTRACE calls.</div><div><br></div><div>Is there any way to overcome this without modifying the kernel code?</div><div><br></div><div><br></div></div></div>