RTEMS | testsuites/psxtests: psx13 restores a mode it never read (#5724)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Mon Aug 24 01:41:57 UTC 2026
Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5724
`FutimensTest()` of `psx13` restores the mode of its test file with a `chmod()`
call which reads `fstat.st_mode`. The first `stat()` of that function runs
later, so the structure holds whatever the stack slot contains. The file
receives a mode decided by the previous frame.
On `or1k` that mode denies write access to the owner, so `futimens( fd, NULL )`
fails with `EACCES` and the test asserts. The other ten architectures pass
because their stack holds a usable mode. `UtimensatTest()` in the same file
reads the mode first and is correct.
Found while running the full test suite on eleven simulators. This description
was created with Claude Code assistance.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5724
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-52b7xcdi6sahzmuuobb34dh4a-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/20260824/8c1fc3db/attachment-0001.htm>
More information about the bugs
mailing list