Guru Meditation ErrorL Core 0 Panic'ed(store access fault)

meetshah10
Posts: 11
Joined: Tue Jun 14, 2022 6:30 am

Guru Meditation ErrorL Core 0 Panic'ed(store access fault)

Postby meetshah10 » Fri Aug 19, 2022 10:46 am

Hello Espressif,

I am trying to send a json data through HTTPS POST Request to a Postman mock server. The data from nrf52833 dk is received to ESP32-C3 through UART Communication. To store the data in JSON format i have used esp-idf-cJson github library. For UART and HTTP protocol I have referred to uart_asyn_rxtx_example and esp_http_client example.
The issue is when I am storing the data in uart thread in json format and print the Json through "cJSON_Print(root)" it shows me "Guru Meditation ErrorL Core 0 Panic'ed(store access fault)" and further when the char string is passed to http thread in "esp_http_client_set_post_field(client, json_packet, strlen(json_packet))" function it shows me "Meditation ErrorL Core 0 Panic'ed(Load access fault)". I am not able to resolve the issue from last fortnight . I have attached the error image and code file for the same.
Attachments
store access fault1.PNG
store access fault1.PNG (104.86 KiB) Viewed 5855 times
store access fault.PNG
store access fault.PNG (97.19 KiB) Viewed 5855 times
esp_http_client_example.c
(10.89 KiB) Downloaded 295 times

meetshah10
Posts: 11
Joined: Tue Jun 14, 2022 6:30 am

Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)

Postby meetshah10 » Mon Aug 22, 2022 1:54 pm

Hello Espressif teams,
It would be really nice if I get some response from side.

RalphD
Posts: 103
Joined: Thu Nov 25, 2021 9:02 pm

Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)

Postby RalphD » Mon Aug 22, 2022 4:17 pm

I have seen this in a quite similar module environment you are using. I could debug this down to a stack overflow issue. I changed all str copy task to strictly copy not more then the buffer sizes are ( e.g. snprintf() ) and doubled the stack size of the UART and WiFi stack.
Since I have not seen this error again. To nail it down what exactly causes this issue was not in the budget of the project.

May be it helps

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)

Postby ESP_igrr » Mon Aug 22, 2022 7:51 pm

Hi meetshah10,

From the screenshots, the issue looks like a heap corruption: the backtrace points to the heap allocator code. I would recommend enabling heap poisoning as described in this section of the docs: https://docs.espressif.com/projects/esp ... corruption
This should help you find which code might be writing out of bounds of the allocated memory.

Who is online

Users browsing this forum: Bing [Bot] and 94 guests