LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Why core dump analysis require a program name? (https://www.linuxquestions.org/questions/programming-9/why-core-dump-analysis-require-a-program-name-821216/)

hs_linux 07-21-2010 04:31 AM

Why core dump analysis require a program name?
 
To analyse a coredump, I need to specify program name/path in GDB/KDevelop. Since the program name along with arguments is also within a core dump, I wonder if it doesn't keep the proper path of program that crashed and so asks for it?

Thanks

paulsm4 07-21-2010 09:44 PM

Because you'll often have different VERSIONS of a given executable, and it's important to be able to specify exactly WHICH version the core dump corresponds to.

It's also a very effective way to prevent you from getting too lazy by having the machine do everything for you ;) Builds character ;)

hs_linux 07-22-2010 12:49 AM

Thanks for the reply paulsm4. Different versions of an executable means different executables but with same name and present at different paths on the machine. So, this seems to confirm my belief that the core file doesn't record the path of program. Is that correct?

paulsm4 07-22-2010 12:55 AM

Hi -

Yes, it records the path of the executable AT THE TIME OF THE CORE DUMP.

If you're in a development environment (aren't we all ;)?), then the actual executable that happens to exist at that location is likely to change over time (i.e. change between compiles ;))

'Hope that helps .. PSM


All times are GMT -5. The time now is 04:13 AM.