RTEMS | C++ std::mutex has no error checks (#5641)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Mon Jul 13 15:27:03 UTC 2026
Wayne Thornton commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5641#note_154347
Compiling on Windows 10 Enterprise LTSC with Visual Studio Enterprise 2022 installed the code compiles and runs, but displays an error message.
Command used to compile: `cl /EHsc /W4 /showIncludes /Zi /MDd mutex_exception.cpp /link /VERBOSE > compile_log.txt 2>&1`
The compilation log output is as follows: [compile_log.txt](/uploads/bd8bd6880693d37232411218915e0cfc/compile_log.txt)
Results as follows:
```
C:\Users\Wayne Thornton\Desktop>mutex_exception.exe
locking test
main: m1 at0000008253DEFD40
main: lock: m1
t1: unlock: m at 0000008253DEFD40
D:\a\_work\1\s\src\vctools\crt\github\stl\src\mutex.cpp(152): unlock of mutex not owned by the current thread
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5641#note_154347
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-ccu13pe64oae7xyivi8abdd7y-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/20260713/d2738366/attachment.htm>
More information about the bugs
mailing list