Can't Parse Core Dump with esp32_rom.elf
Posted: Thu Jan 20, 2022 8:58 am
Hi All,
I have a core dump and elf file but espcoredump.py fails when using esp32_rom.elf (from https://dl.espressif.com/dl/esp32_rom.elf):
I get this error with or without the -r option. Only deleting, renaming or moving the esp32_rom.elf file elsewhere fixes it (then there's no ROM symbols). Any way to get the ROM symbols?
Cheers
Paul
I have a core dump and elf file but espcoredump.py fails when using esp32_rom.elf (from https://dl.espressif.com/dl/esp32_rom.elf):
Code: Select all
paul@gfi:~/Downloads$ espcoredump.py info_corefile -c core1629 -t b64 -r esp32_rom.elf svp2.elf
espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================
Traceback (most recent call last):
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 295, in <module>
info_corefile()
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 122, in info_corefile
rom_elf, rom_sym_cmd = load_aux_elf(args.rom_elf)
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 44, in load_aux_elf
elf = ElfFile(elf_path)
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 125, in __init__
self.read_elf(elf_path)
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 155, in read_elf
sec.sh.sh_flags) for sec in self._model.sections]
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 155, in <listcomp>
sec.sh.sh_flags) for sec in self._model.sections]
KeyError: 1044
Cheers
Paul