Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2021 22:34:34 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        questions <questions@freebsd.org>
Subject:   Re: How do I get a coredump file from an application?
Message-ID:  <CAM8r67AqEzfwf%2BXv-fLy-mjQ0RZ1zJjaiSk8r1gR7QcsM0cOYQ@mail.gmail.com>
In-Reply-To: <CAAdA2WPSfnbWLi3FZYmqONCYGg_7wgEObq8TzKbaY-cd8G13yw@mail.gmail.com>
References:  <CAAdA2WPSfnbWLi3FZYmqONCYGg_7wgEObq8TzKbaY-cd8G13yw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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? 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

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67AqEzfwf%2BXv-fLy-mjQ0RZ1zJjaiSk8r1gR7QcsM0cOYQ>