[BUG] Scheduling stop in the prvCheckForRunStateChange function for SMP
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- operating-systems
Línea de trabajo
Start in tasks.c, reading vTaskSuspendAll and prvCheckForRunStateChange, and compare their interrupt masking with the port macros portSET_INTERRUPT_MASK and portENABLE_INTERRUPTS in the ARM port. Understanding the SMP run-state logic around prvYieldCore is required before changing anything. Done means the configASSERT on taskTASK_SCHEDULED_TO_YIELD no longer fires under the multi-task, semaphore-heavy reproduction, which needs an SMP target to verify.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Running on the SMP system, the system stops scheduling, and an assertion is triggered at configASSERT( pxThisTCB->xTaskRunState == taskTASK_SCHEDULED_TO_YIELD ) in the code of the prvCheckForRunStateChange function.
In the vTaskSuspendAll function, the portSET_INTERRUPT_MASK() macro is used to disable interrupts before calling prvCheckForRunStateChange. However, the prvCheckForRunStateChange function code uses the portENABLE_INTERRUPTS() macro to temporarily enable task switching, which results in task switching not actually being enabled. After calling portENABLE_INTERRUPTS(), the interrupts used for scheduling remain masked.
Target
- Development board: [user-defined]
- Instruction Set Architecture: [ARM_CR82]
- IDE and version: [IAR 9.20]
To Reproduce
- Use multi-task with xSemaphoreXXX function on multi-core system.
- Frequent calls to the
vTaskSuspendAllfunction - Frequent calls to the
prvYieldCore( xCoreID )macro
Additional context
It might be appropriate to use the portDISABLE_INTERRUPTS() macro instead of the portSET_INTERRUPT_MASK() macro in the vTaskSuspendAll function.
- 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