GUIDINGLI opened a new pull request #4021: URL: https://github.com/apache/incubator-nuttx/pull/4021
sched/waitpid: handle waitpid waitting tcb->group is NULL ## Summary Fail case: exit -> nxtask_terminate -> nxtask_exithook -> nxsched_release_tcb group_leave || nxsched_releasepid & group_leave /\ / \ switch out & waitpid() Thread A group_leave in nxtask_exithook, switch out, Thread B do waitpid(thread A) then meet traget thread A group is NULL, error. Change-Id: Ia181d7a13aa645ec1c3141a45839fbf79db35b17 Signed-off-by: ligd <liguidi...@xiaomi.com> ## Impact ## Testing -- 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