Can't Parse Core Dump with esp32_rom.elf

priisen
Posts: 6
Joined: Wed May 19, 2021 12:52 pm

Can't Parse Core Dump with esp32_rom.elf

Postby priisen » 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):

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
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

priisen
Posts: 6
Joined: Wed May 19, 2021 12:52 pm

Re: Can't Parse Core Dump with esp32_rom.elf

Postby priisen » Fri Feb 04, 2022 10:21 am

Seems like this is fixed in ESP-IDF 4.4.

Are there any other forums or sites or support channels where ESP32 issues can be resolved?

Cheers
Paul

Who is online

Users browsing this forum: Baidu [Spider] and 127 guests