Commit 8e78c84
committed
Fix: Remove printf calls after task_spawn in mutex test
Root cause identified: Printf consistently hangs after mo_task_spawn() calls,
regardless of whether cooperative or preemptive scheduling is used.
Evidence from CI runs:
- Run #19501150265: Hung at 'Starting test...[' (preemptive)
- Run #19501667647: Hung at 'Starting test (coo[' (cooperative)
Both hangs occur immediately after 4 tasks are spawned, suggesting:
1. Task spawning modifies system state that breaks printf
2. UART/interrupt conflict after scheduler initialization
3. Possible stack corruption during task context setup
Fix: Remove all printf calls in app_main after task_spawn completes.
Task functions themselves can still print (they run in different context).
Re-enable preemptive scheduling now that printf hang is bypassed.1 parent 7164e8b commit 8e78c84
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
227 | 225 | | |
0 commit comments