Page 1 of 1

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

Posted: Fri Aug 19, 2022 10:46 am
by meetshah10
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.

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

Posted: Mon Aug 22, 2022 1:54 pm
by meetshah10
Hello Espressif teams,
It would be really nice if I get some response from side.

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

Posted: Mon Aug 22, 2022 4:17 pm
by RalphD
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

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

Posted: Mon Aug 22, 2022 7:51 pm
by ESP_igrr
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.