Coredump file query
Posted: Sat Nov 30, 2024 8:36 pm
Hi,
Some background: I'm dynamically copying core files from my esp32's and saving them externally. Since they are saved as ELF files, I should be able to run `espcoredump.py` on them to get a summary. Via menuconfig, I've set my core files output to be ELF.
But, after I download a corefile to my local host, the `espcoredump.py` utility fails with the error: parsing expected b'\x7fELF' but parsed b'dT\x00\x00'
The value b'\x7fELF' always appears 24 bytes into the file, not at the beginning. I verified the 24-byte padding is also present on the esp32 file before downloading. The `espcoredump.py` utility expects the file to start with b'\x7fELF'.
Is there a work-around, or some other utility I should be using?
Some background: I'm dynamically copying core files from my esp32's and saving them externally. Since they are saved as ELF files, I should be able to run `espcoredump.py` on them to get a summary. Via menuconfig, I've set my core files output to be ELF.
But, after I download a corefile to my local host, the `espcoredump.py` utility fails with the error: parsing expected b'\x7fELF' but parsed b'dT\x00\x00'
The value b'\x7fELF' always appears 24 bytes into the file, not at the beginning. I verified the 24-byte padding is also present on the esp32 file before downloading. The `espcoredump.py` utility expects the file to start with b'\x7fELF'.
Is there a work-around, or some other utility I should be using?