RTEMS | previous is not always NULL for node set off chain (#5491)

Chandan U (@Chandanuvm) gitlab at rtems.org
Fri Feb 20 19:20:37 UTC 2026




Chandan U commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5491#note_143089


When I traced the log's of only smp tests, I found 1st failed file smp01.c which failed with "assertion \\"\_Chain_Is_node_off_chain( &the_semaphore-\>Object.Node)\\" pointing failed: file \\"../../../cpukit/include/rtems/rtems/semimpl.h\\", line 85, function: \_Semaphore_Get_flags"

![IMG_20260221_004531.jpg](/uploads/11e56be0628ff537b50c00a194d74872/IMG_20260221_004531.jpg){width="544" height="600"}

Then there i found that semaphore by design stores it's flag in prev pointer , and since the MR !871 made \_Chain_Is_node_off_chain() stricter by asserting if prev==null , it was throwing assertion failure.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5491#note_143089
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260220/c29f1d6d/attachment.htm>


More information about the bugs mailing list