Memory Free Assertion Issue
Posted: Thu May 31, 2018 5:05 pm
Hi,
We are creating framework SDK using ESP32 IDF 2.1 for our product development purpose in which we ha EA a ported one cloud based component called it as KAA Project Component.
So, Basically, It is working fine and able to access data using cloud based component successfully without any issue. But, When we started it over stress test at that time we found memory assertion issue when requesting multiple requests within some interval which is random issue.
So, We had tracked it down using back trace and cloud based component and we had found only caution for memory assertion issue is like pointer is going to be changed while freeing it but still is shows as allocated.
So, We have checked heap memory code section and put some debugging statements and found that pointer which is going to free is not allocated before but it's allocation flag is set which is little bit strange for that.
So, Somehow, Pointer is going to be changed which we need to find out. We have also tried with heap trace memory debug enable option as well but didn't find much details for memory leakage or corruption issue.
Does anyone e has any idea or clue to debug that issue?
We are creating framework SDK using ESP32 IDF 2.1 for our product development purpose in which we ha EA a ported one cloud based component called it as KAA Project Component.
So, Basically, It is working fine and able to access data using cloud based component successfully without any issue. But, When we started it over stress test at that time we found memory assertion issue when requesting multiple requests within some interval which is random issue.
So, We had tracked it down using back trace and cloud based component and we had found only caution for memory assertion issue is like pointer is going to be changed while freeing it but still is shows as allocated.
So, We have checked heap memory code section and put some debugging statements and found that pointer which is going to free is not allocated before but it's allocation flag is set which is little bit strange for that.
So, Somehow, Pointer is going to be changed which we need to find out. We have also tried with heap trace memory debug enable option as well but didn't find much details for memory leakage or corruption issue.
Does anyone e has any idea or clue to debug that issue?