Quote:
|
Originally Posted by toonarific I just recently had my hosting company install gdb onto my server. I am running a mud on one of my IPs, that occassionally crashes. How do I create a coredump file to review it to see what is causing the crash? I havent used gdb before, and cant seem to find the right command to generate the coredump file |
Hi toonarific,
First, read the man page on gdb, i.e. issue the command: man gdb
Next, you will at least have to run the "mud" under gdb for it to be useful, or execute gdb and attach it to the "mud" process.
A few key things about using gdb to debug software is:
1) was the program "mud" compiled with symbols or were they striped out of the executable
2) is the source code for the "mud" available or are you working from an executable only
Sometimes, simply running: gdb mud
and then starting up gdb to run the program may be all you need to do, i.e. by running the program until it crashes in gdb for you, but from what you say you want it to output a core dump - you should check out the GDB manual online for information on doing that. See:
http://www.gnu.org/software/gdb/documentation/
Run ulimit -a to see if the core file size output is unlimited or set to zero.
-- Tom