Getting backtrace of a process

Valdis Kl=?utf-8?Q?=c4=93?=tnieks valdis.kletnieks at vt.edu
Tue Jun 15 02:01:51 EDT 2021


On Mon, 14 Jun 2021 20:40:57 +0530, hemanth nandish said:

> As per my understanding, the *do_coredump* kills the faulty process inside
> *coredump_wait*  function before invoking the userspace handler,
> This might be the reason the libunwind fails to gather the backtrace as it
> uses PTRACE calls.
>
> Is there any way to overcome this without modifying the kernel code?

You might want to look at how gdb implements stuff like 'thread apply all bt',
which works just fine on a coredump.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210615/568f64de/attachment.sig>


More information about the Kernelnewbies mailing list