Skip to main content
InterviewHubPRO
Section Overview
Q31

Question 31 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

62%
Linux OS Internals (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is the Core Dump file and how do you analyze it using GDB?

senior LevelCode Examplelinux-osAdvanced Internals

In Simple Words: A Core Dump is a memory snapshot of a process captured at the exact moment it crashed (e.g. SIGSEGV segmentation fault):

  • Enabled via ulimit -c unlimited.
  • Debugging with GDB:
    bash
    gdb /usr/local/bin/myapp /var/crash/core.1042
    (gdb) bt full # Prints complete stack trace with local variables!
    
  • Identifies the exact file, function, line number, and null pointer that caused the crash.