How do you generate a core dump file to help diagnosing software crash?

Sometime the user met a software crash, but the developer can't reproduce such problem on their side. So if the user can generate (provide) core dump file then submit a new issue to with this file, it will beneficial on bug fix.


  1. Right-click on "My Computer", then click "Properties"
  2. Click on "Advance" tab
  3. Under "Startup and Recovery", click "Settings"
  4. Under "Write debugging information", select "Small memory dump (64KB)"
  5. Default directory "C\Windows\Minidump" for "Small dump directory:"
  6. Click "OK" button.
  7. Use regedit.exe to verify item named "CrashDumpEnabled" value is 0x3 under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
  8. Restart the machine
  9. If software crash happens, Minixxxx-01.dmp will be generated

Note: usually developer uses WinDbg to know what and why caused this failure.



1.   Use "ulimit -c" to check the switch of generating core file. If result is zero, the switch is disabled, will not generate core file

  1. Use "ulimit -c filesize" to enable this switch (filesize is KB), or use "ulimit -c unlimited". Using filesize might cause file truncated, gdb will report error.
  2. If the user met software crash, core dump file (like as core.xxxx) will be generated
  3. Disable "core dump" function by using "ulimit -c 0"

Note:  the developer will use "gdb -c corefile problematical-executable", "bt" command in gdb to know what happened, with call stack info.

For more complete information about compiler optimizations, see our Optimization Notice.