How to analyze a core dump (game.core/db.core)
How many times has it happened that the core crashes generating a .core and you don't know the reason? This guide will explain how to read the .core (like the game.core) to understand the cause of the crash.
We usually use the GDB (gnu debugger) to achieve this.We go to the relative path in which the executable and the core dump has been generated and start gdb.
After that, we send some specific instructions.
In case it says "dwarf error", you have to install the latest gdb and run it as gdbXXX instead of gdb, for example:
The instruction
bt full returns the full backtrace, instead of doing just bt.On updated fbsd versions, the gnutarget may be
i386-portbld-freebsd10.1 instead of i386-marcel-freebsd.Important: the executable must be the original one; recompiled executables will give mismatched results.
Credits by MartySama0134


