Bug #116375 UBSan error on Rpl_commit_order_queue_test.Simulate_mts

Submitted: 16 Oct 2024 12:40 Modified: 28 Oct 2025 9:43
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:8.0.41 OS:MacOS (15.0.1)
Assigned to: CPU Architecture:ARM

[16 Oct 2024 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 2024 9:55] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

regards,
Umesh
[27 Jan 2025 9:21] Laurynas Biveinis
Same on 8.0.41
[29 Apr 2025 7:20] Jon Stephens
Fixed in MySQL 8.0.43, 8.4.6, and 9.4.0.

Affects testing only--no docs needed.

Closed.
[13 May 2025 14:26] Laurynas Biveinis
This is closed for 8.0.43 so just mentioning for completeness that it still reproduces on 8.0.42
[28 Oct 2025 9:43] Laurynas Biveinis
Confirmed fixed on 8.0.44

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.