# xStreamBufferReceive(..., portMAX\_DELAY) Task Moves to Suspended and Never Wakes on Data

**URL:** <https://forums.freertos.org/t/xstreambufferreceive-portmax-delay-task-moves-to-suspended-and-never-wakes-on-data/23654>\
**Category:** Kernel\
**Tags:** debug\
**Created:** [July 30, 2025, 2:02pm UTC](https://forums.freertos.org/t/xstreambufferreceive-portmax-delay-task-moves-to-suspended-and-never-wakes-on-data/23654 "2025-07-30T14:02:50Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![gnx](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gnx](https://forums.freertos.org/u/gnx)\
**Post date:** [August 1, 2025, 7:36am UTC](https://forums.freertos.org/t/xstreambufferreceive-portmax-delay-task-moves-to-suspended-and-never-wakes-on-data/23654/12 "2025-08-01T07:36:07Z")

</div>

Thanks everyone for your help!

It turned out to be a **simple stack overflow**.  
Apologies for missing such a basic issue — I should’ve checked the stack usage more carefully.

The explanation about undefined behavior causing the task to enter the `eSuspended` state makes sense. That clears up my confusion.

I won’t dig further into the exact corruption, since the root cause is now resolved.

Really appreciate all your input — marking this as closed.

Thanks again! 🙏

---

_[View the full topic](https://forums.freertos.org/t/xstreambufferreceive-portmax-delay-task-moves-to-suspended-and-never-wakes-on-data/23654)._
