Re: How do I get a coredump file from an application?

From: Odhiambo Washington <odhiambo_at_gmail.com>
Date: Wed, 06 Oct 2021 09:45:47 UTC
On Tue, Oct 5, 2021 at 11:35 PM Tomasz CEDRO <tomek@cedro.info> wrote:

> On Mon, Oct 4, 2021 at 9:45 AM Odhiambo Washington wrote:
> > I have my MTA (Exim) crushing, with the following message in its
> panic.log:
> > (...)
> > I need to obtain a coredump file from the crashing process for debugging
> > purposes.
>
> Have you tried running your application under gdb / lldb?


Nope. Seems rather involving, no?


> That may help you tracing the problem on a live application, you can
> backtrace
> after crash to see where problem occurred, you can set breakpoint
> before problem happens and step by step see why problem occurs, just
> remember to compile application in debug mode with debug symbols
> enabled so you will trace source code not the assembly :-)
>
> Here is some stuff that may help:
>
> https://forums.freebsd.org/threads/how-to-enable-system-daemons-core-dumps.76500/
>
> https://www.freebsd.org/cgi/man.cgi?query=dtrace&sektion=1&manpath=freebsd-release-ports
>
> https://www.freebsd.org/cgi/man.cgi?query=core&sektion=5&manpath=freebsd-release-ports
> https://wiki.freebsd.org/lldb
> https://www.gnu.org/software/gdb/documentation/
> https://www.cs.umd.edu/~srhuang/teaching/cmsc212/gdb-tutorial-handout.pdf


Thanks. I have gone through these, bar for the lldb option.




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' :-)