Repair a verified behavior in apache/nuttx.
Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). The scheduler's pthread support (the sched/pthread module, i.e. the public pthread join() and pthread detach() interfaces together with the per-task-group join bookkeeping they rely on) mishandles the case…
The task
The scheduler's pthread support (the sched/pthread module, i.e. the public pthread_join() and pthread_detach() interfaces together with the per-task-group join bookkeeping they rely on) mishandles the case where a pthread is joined again while it is still exiting in SMP mode.
Part of henryen/OriGent-RL-Data.