Thank you!!
os_malloc and os_zallc HANGs forever and Triggers WDT
-
AgentSmithers
- Posts: 195
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
os_malloc and os_zallc HANGs forever and Triggers WDT
Postby AgentSmithers » Sun Mar 10, 2019 7:45 am
Hi Everyone, Anyone knows the underlying reason on why or how malloc and zalloc hang when exhausted out of memory vs. returning NULL or failure. It's hanging at that point then the WDT kicks off and if I disable the WDT both Software and Hardware it hangs forever and never returns. I was hoping it just needed more time to run logic to find space to allocate however that is not the issue. Any insight would be extremely helpful! 
Thank you!!
Thank you!!
-
AgentSmithers
- Posts: 195
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
Re: os_malloc and os_zallc HANGs forever and Triggers WDT
Postby AgentSmithers » Tue Mar 12, 2019 7:41 am
I found the issue. After many burned hours I found that a buffer overflow was occurring.. To recreate the WDT issue, Alloc 8 bytes, write 9 then alloc again.. should hang indef due to a boundary pointer more than likely being overwritten.

Who is online
Users browsing this forum: No registered users and 181 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.