Re: How do I get a coredump file from an application?
- Reply: Odhiambo Washington : "Re: How do I get a coredump file from an application?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Oct 2021 20:34:34 UTC
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