malloc fails with LoadProhibited guru meditation error
Posted: Fri Feb 24, 2017 11:04 pm
Hi,
I have a problem with my program:
At a certain point my program stops with a Guru meditation error LoadProhibited.
When looking with gdb for the backtrace symbols I get the following:
The exact backtrace changes with every execution. But it is always something with memory allocation. Sometimes it fails when I try to allocate 34 bytes within my code.
That's why I have logged my free heap space before. I still have about 150k free heap memory.
Now I don't really have an idea what's going on!?!?
Any ideas???
Thank you!
Best,
Malte
I have a problem with my program:
At a certain point my program stops with a Guru meditation error LoadProhibited.
Code: Select all
I (65449) TLV: free heap: 152908 bytes
I (65449) TLV: tlv->bin: 0x0
I (65449) TLV: tlv->len: 0
I (Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x40083d02 PS : 0x00060a33 A0 : 0x800d199b A1 : 0x3ffc12d0
A2 : 0x0000d554 A3 : 0x00000000 A4 : 0xfb4ca03f A5 : 0x00000030
A6 : 0x00000003 A7 : 0x00060023 A8 : 0xfb4ca03f A9 : 0x4ca03ffb
A10 : 0x3ffb1364 A11 : 0x00060820 A12 : 0x3ffb7b8c A13 : 0x00000018
A14 : 0x400957f2 A15 : 0x3ffb7b84 SAR : 0x00000014 EXCCAUSE: 0x0000001c
EXCVADDR: 0xfb4ca043 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x40083d02:0x3ffc12d0 0x400d199b:0x3ffc12f0 0x400d19dc:0x3ffc1310 0x40081982:0x3ffc1330 0x4000bef8:0x3ffc1350 0x400f1956:0x3ffc1370 0x40099d4d:0x3ffc1390 0x400957f5:0x3ffc13f0
Code: Select all
(gdb) info symbol 0x40083d02
pvPortMallocTagged + 86 in section .iram0.text
(gdb) info symbol 0x400d199b
pvPortMallocCaps + 139 in section .flash.text
(gdb) info symbol 0x400d19dc
pvPortMalloc + 12 in section .flash.text
(gdb) info symbol 0x40081982
_calloc_r + 14 in section .iram0.text
(gdb) info symbol 0x4000bef8
No symbol matches 0x4000bef8.
(gdb) info symbol 0x400f1956
esf_buf_alloc + 486 in section .flash.text
(gdb) info symbol 0x40099d4d
wdevProcessRxSucDataAll + 1665 in section .iram0.text
(gdb) info symbol 0x400957f5
ppTask + 353 in section .iram0.text
That's why I have logged my free heap space before. I still have about 150k free heap memory.
Now I don't really have an idea what's going on!?!?
Any ideas???
Thank you!
Best,
Malte