Bug #116375 UBSan error on Rpl_commit_order_queue_test.Simulate_mts
Submitted: 16 Oct 12:40 Modified: 17 Oct 9:55
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:8.0.40 OS:MacOS (15.0.1)
Assigned to: CPU Architecture:ARM

[16 Oct 12:40] Laurynas Biveinis
Description:
./runtime_output_directory/rpl_commit_order_queue-t
...
[ RUN      ] Rpl_commit_order_queue_test.Simulate_mts
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h:377:10: runtime error: load of value 16, which is not a valid value for type 'bool'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__atomic/cxx_atomic_impl.h:377:10 in 
[       OK ] Rpl_commit_order_queue_test.Simulate_mts (11832 ms)
...

How to repeat:
XCode 16
-DFORCE_UNSUPPORTED_COMPILER=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_DEBUG=ON
-DMYSQL_MAINTAINER_MODE=ON -DWITH_SYSTEM_LIBS=ON
-DWITH_NDBCLUSTER_STORAGE_ENGINE=OFF -DDOWNLOAD_BOOST=ON
-DWITH_BOOST=<path> -DFORCE_COLORED_OUTPUT=ON -DCMAKE_CXX_FLAGS=-g
-DCMAKE_CXX_FLAGS_DEBUG=-g -DCMAKE_CXX_FLAGS_RELEASE=-O2 -DNDEBUG -g
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON
[17 Oct 9:55] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

regards,
Umesh