From bcb618cf8bfb3ffccdc415b138e230b3108b13f7 Mon Sep 17 00:00:00 2001 From: Chandan U Date: Thu, 26 Feb 2026 23:51:13 +0530 Subject: [PATCH] cpukit: initialize wait priority chain node before unblock append In thread queue flush, the wait priority node come from RBTree extraction and fail the off-chain assertion during _Chain_Append_unprotected(). Initialize the chain node before appending it to the local unblock chain. Updates #5491 --- cpukit/score/src/threadqflush.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c index e06e5837ea..69867bc579 100644 --- a/cpukit/score/src/threadqflush.c +++ b/cpukit/score/src/threadqflush.c @@ -132,6 +132,7 @@ size_t _Thread_queue_Flush_critical( Scheduler_Node *scheduler_node; scheduler_node = _Thread_Scheduler_get_home_node( first ); + _Chain_Initialize_node( &scheduler_node->Wait.Priority.Node.Node.Chain ); _Chain_Append_unprotected( &unblock, &scheduler_node->Wait.Priority.Node.Node.Chain