LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Crash Dumps (https://www.linuxquestions.org/questions/linux-software-2/crash-dumps-235519/)

overbored 09-26-2004 06:56 PM

Crash Dumps
 
When (user-mode) applications crash in Windows, they may produce a standard type of crash dump (e.g., minidumps). Similarly, if the (kernel-mode) system crashes, you can get various types of dumps (see control panel > system > advanced).

I'm wondering if Linux (user-mode) programs also produce standard crash dumps. I've done some Googling on this, but I haven't found an authoritative reference on Linux crash dumps. Are they called coredumps? Are there various types of coredumps? I'm interested in learning more about these, and how to analyze them (assuming I'm getting them from many Linux users using various distributions).

As for kernel-mode crash dumps, the only thing I've found was the lkcd (linux kernel crash dump), but this doesn't look like it's standard in Linux (i.e., you'd have to recompile your kernel with this). Linux doesn't already produce crash dumps, does it?

Thanks in advance!

CroMagnon 09-26-2004 08:36 PM

If a program crashes, the system will usually create a core dump, which is basically the contents of the memory being used by that program. Have a look here http://www.unknownroad.com/rtfm/gdbt...nced.html#CORE for a short description of how to use the core dump with gdb (also, the rest of the tutorial is great if you haven't used it before). I'm not sure how well this works if someone sends you their core file, but I've seen developers ask for core files before, so it must be possible.

I'm not sure about whether the kernel dumps by default or not - I've never seen a kernel crash that I didn't cause, and I never needed to use a dump file to fix my own (stupid) mistakes.

overbored 09-26-2004 10:45 PM

Yeah well most kernel crashes (Windows & Linux alike) aren't caused by the kernel, but rather bad drivers or modules. Basically one of the things I'd like to find out is which driver/module caused it.


All times are GMT -5. The time now is 10:16 PM.