GUIDINGLI opened a new pull request, #8151:
URL: https://github.com/apache/nuttx/pull/8151

   ## Summary
   
   sched: fix task_delete crash in SMP case
   
   A testcase as following:
   
   child_task()
   {
     sleep(3);
   }
   
   main_task()
   {
     while (1)
       {
         ret = task_create("child_task", child_task, );
         sleep(1);
   
         task_delete(ret);
       }
   }
   
   Root casuse:
   task_delete hasn's cover the condition that the deleted-task is justing 
running on the other CPU.
   
   Fix:
   Let the nxsched_remove_readytorun() do the real work
   
   Signed-off-by: ligd <liguidi...@xiaomi.com>
   
   ## Impact
   
   task delete
   
   ## Testing
   
   VELA


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to