debugging

All posts tagged debugging

I am by no means an expert in this, but here is how to determine what caused the core dump.

A core dump looks like the following.

core.38240

The number usually is the PID of the program that crashed, however most of the time this hasn’t been very helpful..at least for me.

First figure out what program caused the issue, normally I just use some binary that most likely didn’t cause the issue, like here I use /bin/ps. Usually the last section will say, the binary your specifying doesn’t match the core file which is whatever program. =) In this example, /usr/sbin/ndsd.

Once we got the correct program, exit from this and run it again with the correct binary.

more to come…