Skip to main content
The coredump feature is currently not supported and will be added in a future release.
A coredump is a memory snapshot of a user-space process that allows you to analyze the cause of a process crash. The system collects coredumps according to the Yocto Project Linux standard for all user-space process crashes. By default, the build allows coredumps. The device saves generated coredumps in the /var/coredump directory.
  • To verify the location of the coredump, run the following command:
    Sample output: /var/coredump/%e.core
  • To verify the size of the coredump, run the following command (the coredump size must be greater than 0 [zero]):
    Sample output: unlimited
  • If the coredumps aren’t enabled, use the following file to enable it:
    meta-qcom-distro/recipes-products/packagegroups/packagegroup-qcom-utilities.bb.
    • Use this patch to enable coredumps, then rebuild and reflash the device.

Analyze coredump using GDB

You can generate a coredump by forcibly killing a process. To do this, run the following commands:
Sample output: root 1024 1 0 17:46 ? 00:00:00 /usr/bin/tqftpserv root 1047 934 0 17:47 pts/0 00:00:00 grep -i tqftp*
Sample output: tqftpserv.core The tqftpserv.core is the coredump file. If the device already has debug symbols, run the following commands to use the GDB tool on the coredump:
Sample output:
For more information, see Linux manual page.