RTEMS | cpukit/score/cpu/i386: The illegal instruction and the context validation (#5697)

Sebastian Huber (@sebhub) gitlab at rtems.org
Mon Aug 17 02:23:33 UTC 2026



Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5697



`_CPU_Instruction_illegal()` emits a `.word 0`. The two zero bytes are the
encoding of an add instruction on x86, so nothing is raised and the caller runs
on. `spfatal26` asserts right behind the call. `_CPU_Context_validate()` and
`_CPU_Context_volatile_clobber()` are stubs, so `spcontext01` cannot detect a
defect in the context switch.

Found while running the full test suite on Qemu. This description was created
with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5697
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-ecmu0l0mg8s5d9bz8pewezeu4-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


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


More information about the bugs mailing list