Skip to main content

Generate core dumps on unrecoverable software errors

Project description

esp-coredump

A Python-based utility that helps users to retrieve and analyse core dumps. This tool provides two commands for core dumps analysis:

  • info_corefile - prints crashed task’s registers, callstack, list of available tasks in the system, memory regions and contents of memory stored in core dump (TCBs and stacks)

  • dbg_corefile - creates core dump ELF file and runs GDB debug session with this file. User can examine memory, variables and tasks states manually. Note that since not all memory is saved in core dump only values of variables allocated on stack will be meaningful

Installation

esp-coredump is a stand-alone utility integrated into ESP-IDF.

To install the ESP-IDF framework please visit the documentation.

Examples

esp-coredump can be used as a CLI tool as well as separate package

Build test_apps for a target, flash and get a base64 text (test_apps folder)

from esp_coredump import CoreDump

# Instantiate the coredump object
coredump = CoreDump(chip='esp32',core="./test/esp32/coredump.b64",core_format='b64', prog='./test_apps/build/test_core_dump.elf')
coredump.info_corefile()  #  print the info of the test app corefile
coredump.dbg_corefile()  #  run GDB debug session with provided ELF file

Documentation

Visit the documentation or run esp-coredump -h.

License

This document and the attached source code are released as Free Software under Apache Software License Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esp-coredump-1.4.tar.gz (27.0 kB view details)

Uploaded Source

File details

Details for the file esp-coredump-1.4.tar.gz.

File metadata

  • Download URL: esp-coredump-1.4.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.14

File hashes

Hashes for esp-coredump-1.4.tar.gz
Algorithm Hash digest
SHA256 993d9827065ae4ab9df7f79fa4e483f5c9d01e11ae442a589d35dd6a85841b91
MD5 076889fb9f8affc54fa2f75d44472608
BLAKE2b-256 74cb4ebf0a266b81a4fa52355973c11d6d8f8023fe12e3c55417e3ae2a1f1b39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page