Hi,
on sysbios 6.33.04, we can enable the Delete Terminated Task option without enabling the idle task.
If we do this, if the a task returns/exits and there is no other task ready to be executed, the scheduler calls the idle function deleteTerminatedTasksFunc() from the same context of the task.
Now deleteTerminatedTasksFunc() calls task_delete(), and deallocates the stack of the task, the stack of the active context. Committing a kind of suicide.
In our case, we identified the issue because the function Task_checkStacks() called during the next task context switch was reporting an error in the old_task stack.
In my opinion we shall not let the user enable Delete Terminated Task if the Idle Task is not enabled. Am I correct?
We have a test case for the CortexM3 processor of Concerto to replicate the issue.
best regards
Massimo