Corrupt Heap Error

pablo1610
Posts: 7
Joined: Thu Oct 28, 2021 9:10 am

Corrupt Heap Error

Postby pablo1610 » Thu Apr 21, 2022 10:34 am

Hi,

I'm having the next problem but I don't know from where it's comming. It's always the same position, I'm checking the heap integrity every ten seconds and it always return true.

Code: Select all

CORRUPT HEAP: Bad head at 0x3ffafac8. Expected 0xabba1234 got 0x3ffafefc
abort() was called at PC 0x40087361 on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x4008931c:0x3ffd2190 0x40089599:0x3ffd21b0 0x40087361:0x3ffd21d0 0x4008748d:0x3ffd2200 0x4010fa6f:0x3ffd2220 0x4010863d:0x3ffd24e0 0x40108599:0x3ffd2530 0x4008defd:0x3ffd2560 0x400825ae:0x3ffd2580 0x40087259:0x3ffd25a0 0x4000bec7:0x3ffd25c0 0x4015d161:0x3ffd25e0 0x400d68ee:0x3ffd2600 0x400d1f39:0x3ffd2620 0x400d2073:0x3ffd2660 0x400d20c2:0x3ffd2680 0x400ede09:0x3ffd26a0 0x4008a5aa:0x3ffd26c0

ESP_Sprite
Posts: 9720
Joined: Thu Nov 26, 2015 4:08 am

Re: Corrupt Heap Error

Postby ESP_Sprite » Fri Apr 22, 2022 3:09 am

That's likely either a buffer you're overflowing, or some use-after-free condition. It's not entirely applicable to Arduino, but perhaps the ESP-IDF heap debugging chapter can help. If you can post your code, people here can possibly also help.

pablo1610
Posts: 7
Joined: Thu Oct 28, 2021 9:10 am

Re: Corrupt Heap Error

Postby pablo1610 » Fri Apr 22, 2022 7:23 am

ESP_Sprite wrote:
Fri Apr 22, 2022 3:09 am
That's likely either a buffer you're overflowing, or some use-after-free condition. It's not entirely applicable to Arduino, but perhaps the ESP-IDF heap debugging chapter can help. If you can post your code, people here can possibly also help.
Hi,

Thank you, but I have solved my error. I was triying to free a variable allocated in the stack.

Who is online

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