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

From: Odhiambo Washington <odhiambo_at_gmail.com>
Date: Wed, 06 Oct 2021 19:05:23 UTC
On Wed, Oct 6, 2021 at 5:00 PM Tomasz CEDRO <tomek@cedro.info> wrote:

> On Wed, Oct 6, 2021 at 11:46 AM Odhiambo Washington wrote:
> > On Tue, Oct 5, 2021 at 11:35 PM Tomasz CEDRO 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?
>
> To read / analyze a core dump you need to use debugger anyway :-)
>

I know how to do that. How to analyze a coredump.


Question is what you will do with the core dump file, if you want to
> send it to someone for analysis then you do not need a debugger just
> enable core dump and configure application so it dumps on crash,.


That is the only thing I need help with. The rest I am capable of handling.


> if you want to analyze coredump yourself then you will have to use
> debugger anyway :-)
>
> Having a core dump is like having a "static" postmortem snapshot of
> the application, you cannot do a lot except you perfectly know the
> application internals already or you can guess what the problem is
> based on backtrace from a generated core dump.
>
> Running application under debugger will bring you to the same point
> except you are having control over live application, so you can see
> where problem occurred, put a breakpoint in a problematic function,
> restart application, then step by step track the problem cause leading
> to fix that you can verify at hand straight away yourself :-)
>
> Its not that hard with open source and skillset comes handy in various
> situations :-)
>
> Have fun! :-)
>
>
Thanks for your time looking into this.



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