[BUG] Scheduling stop in the prvCheckForRunStateChange function for SMP
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- c
- Domaine
- operating-systems
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C
- Étoiles
- 4.6k
- Forks
- 1.6k
- Merge moyen
- 2 j 22 h
- PR mergées (30 j)
- 4
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de FreeRTOS/FreeRTOS-Kernel
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FreeRTOS/FreeRTOS-Kernel#1542 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] Release asset FreeRTOS-KernelV11.3.2.zip has the files of main, not of the tag V11.3.2Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
FreeRTOS/FreeRTOS-Kernel#1520 ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
FreeRTOS/FreeRTOS-Kernel#1494 · 3 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
FreeRTOS/FreeRTOS-Kernel#1554 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] event_wait_timed can't return falsePeut-être pris @TedLyngmo l’a pris il y a 39 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 38/100
FreeRTOS/FreeRTOS-Kernel#1546 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de FreeRTOS/FreeRTOS-Kernel
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 63/100
FreeRTOS/FreeRTOS-Plus-TCP#1395 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
qoretechnologies/qore#8222 ·
Les mainteneurs répondent en général sous 1 jour
-
c easy first-contributor first-contributors good first issue help wanted up-for-grabs
Difficulté 1/5 1-3 heures Accessibilité débutants 96/100
fork-commit-merge/fork-commit-merge#8696 ·
Les mainteneurs répondent en général sous 1 jour