[BUG] prvSelectHighestPriorityTask can leave a core with no selectable task and spin the victim in prvCheckForRunStateChange
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- operating-systems
Línea de trabajo
Start in tasks.c with prvSelectHighestPriorityTask(), where xTaskScheduled can stay pdFALSE and pxCurrentTCBs is left unchanged, then trace how prvYieldCore() skips taskTASK_SCHEDULED_TO_YIELD and how prvCheckForRunStateChange() spins. Reproduce on the POSIX SMP port with configUSE_CORE_AFFINITY 1. Read the closed PR #1264 discussion before choosing between a fix and a bounded wait; done means the victim no longer spins.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When idle-task affinity plus a task's own mask leave a core with no selectable task, prvSelectHighestPriorityTask() returns with xTaskScheduled == pdFALSE and pxCurrentTCBs untouched. The victim stays taskTASK_SCHEDULED_TO_YIELD, prvYieldCore() suppresses any re-yield for it, and the victim spins forever in prvCheckForRunStateChange().
Target
- SMP build with
configUSE_CORE_AFFINITY 1(reproduced on a POSIX host-port harness)
To Reproduce
Public affinity APIs: pin idle tasks and a victim such that one core ends up with no selectable task (idle-task affinity plus the victim's own mask), then have the victim call vTaskDelay()/taskENTER_CRITICAL() - it never returns from prvCheckForRunStateChange().
Expected behavior
The run-state handling should not latch taskTASK_SCHEDULED_TO_YIELD when no core can select the task (or the wait in prvCheckForRunStateChange() should have a bounded escape).
Additional context
This is the sub-mechanism already diagnosed in PR #1264 (closed unmerged) - please see the discussion there; this issue is filed for tracking. configIDLE_AFFINITY (PR #1415) is opt-in (default 0) and does not fix the run-state handling. Happy to work on a fix following the direction discussed in #1264.
- Lenguaje dominante
- C
- Estrellas
- 4.6k
- Forks
- 1.6k
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FreeRTOS/FreeRTOS-Kernel
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FreeRTOS/FreeRTOS-Kernel#1542 ·
Los mantenedores suelen responder en 3 días
-
[BUG] Release asset FreeRTOS-KernelV11.3.2.zip has the files of main, not of the tag V11.3.2Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
FreeRTOS/FreeRTOS-Kernel#1520 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
FreeRTOS/FreeRTOS-Kernel#1494 · 3 comentarios ·
Los mantenedores suelen responder en 3 días
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
FreeRTOS/FreeRTOS-Kernel#1554 ·
Los mantenedores suelen responder en 3 días
-
[BUG] event_wait_timed can't return falsePosiblemente ocupada @TedLyngmo la tomó hace 39 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
FreeRTOS/FreeRTOS-Kernel#1546 ·
Los mantenedores suelen responder en 3 días
Todos los issues de FreeRTOS/FreeRTOS-Kernel
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 63/100
FreeRTOS/FreeRTOS-Plus-TCP#1395 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
qoretechnologies/qore#8222 ·
Los mantenedores suelen responder en 1 día
-
c easy first-contributor first-contributors good first issue help wanted up-for-grabs
Dificultad 1/5 1-3 horas Aptitud para principiantes 96/100
fork-commit-merge/fork-commit-merge#8696 ·
Los mantenedores suelen responder en 1 día