Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

yanosz
Posts: 12
Joined: Sun Jun 10, 2018 12:37 pm

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Postby yanosz » Mon Apr 22, 2019 5:53 pm

Hello folks,

after upgrading to esp-idf v3.3 and using the built-in mqtt client, I run into errors

Code: Select all

I (7843) main.c: Start mqtt
I (7863) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400014dc  PS      : 0x00060030  A0      : 0x801090bb  A1      : 0x3ffbb670  
A2      : 0x00000005  A3      : 0x00000001  A4      : 0x000000ff  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000001  A9      : 0x00000000  
A10     : 0x3ffdb3e4  A11     : 0x4011e4e0  A12     : 0x4011e6b8  A13     : 0x4011e630  
0x4011e4e0: ssl_connect_async at /home/esp32/esp-idf/components/tcp_transport/transport_ssl.c:162

0x4011e6b8: ssl_read at /home/esp32/esp-idf/components/tcp_transport/transport_ssl.c:162

0x4011e630: ssl_write at /home/esp32/esp-idf/components/tcp_transport/transport_ssl.c:162

A14     : 0x4011e610  A15     : 0x4011e5b4  SAR     : 0x00000000  EXCCAUSE: 0x0000001c  
0x4011e610: ssl_close at /home/esp32/esp-idf/components/tcp_transport/transport_ssl.c:162

0x4011e5b4: ssl_poll_read at /home/esp32/esp-idf/components/tcp_transport/transport_ssl.c:162

EXCVADDR: 0x00000005  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffe5f  

ELF file SHA256: b3ef058d7361ad3e0dfa06adbc744f01491c527b40b0235bd1d1132f7116e347

Backtrace: 0x400014dc:0x3ffbb670 0x401090b8:0x3ffbb680 0x401077bd:0x3ffbb6b0 0x40106f1e:0x3ffbb730 0x400d0b3a:0x3ffbb750 0x40093da9:0x3ffbb770
0x401090b8: esp_mqtt_client_init at /home/esp32/esp-idf/components/mqtt/esp-mqtt/mqtt_client.c:951

0x401077bd: mqtt_start at /home/esp32/JellingStone/main/mqtt.c:94

0x40106f1e: app_main at /home/esp32/JellingStone/main/main.c:116

0x400d0b3a: main_task at /home/esp32/esp-idf/components/esp32/cpu_start.c:530

0x40093da9: vPortTaskWrapper at /home/esp32/esp-idf/components/freertos/port.c:403


I tried to increase the main task stack size (https://www.esp32.com/viewtopic.php?f=13&t=10145)

Code: Select all

CONFIG_BTU_TASK_STACK_SIZE=4096
CONFIG_MAIN_TASK_STACK_SIZE=4096
CONFIG_MB_CONTROLLER_STACK_SIZE=4096
But the problem remains. Board is Lolin D32 with no additional hardware attached. Using v3.1and the mqtt component (external), mqtt was working. What may be wrong here? Code is at: https://github.com/fieldtracks/JellingStone

Thanks in advance,
Greetz, yanosz

yanosz
Posts: 12
Joined: Sun Jun 10, 2018 12:37 pm

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Postby yanosz » Tue Apr 23, 2019 1:35 pm

... well, it turned out, that I made a typo a few months ago.

Screwing up git submodule add, I got two mqtt-clients in my system. While the was using the correct one, the linker was not.
Over the time, the progress made the new mqtt-client less and less ABI compatible to the one in my esp-idf directory.

twimc:
I noticed, that the symbol names and line numbers from make monitor, did not match. I.e. it didn't make sense to get such an exception at this line. It turned out, that debugging-symbols were refering the up-to-date correct, but not-linked version of the mqtt-client. oops.

Greetz,
yanosz

Who is online

Users browsing this forum: AlexESP32, Google [Bot] and 18 guests