[MDEV-27355] Fix UBSAN's Findings in Replication Created: 2021-12-23  Updated: 2023-12-14  Resolved: 2023-12-14

Status: Closed
Project: MariaDB Server
Component/s: Replication, Tests
Affects Version/s: 10.6.0
Fix Version/s: 10.4.33, 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3

Type: Bug Priority: Major
Reporter: Brandon Nesterenko Assignee: Brandon Nesterenko
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-26272 The macro MASTER_INFO_VAR invokes und... Closed

 Description   

UBSAN finds numerous issues in replication tests/code. This ticket is to document and fix these findings.



 Comments   
Comment by Elena Stepanova [ 2021-12-28 ]

Please also check with ps-protocol. Surprisingly, it seems to make a difference for replication/XA-related tests on UBSAN builds.

Comment by Brandon Nesterenko [ 2023-12-14 ]

Went through 10.4 through 11.4 using GCC with and without --ps-protocol and found no more UBSAN failures in replication. Closing this ticket.

Note though, that with the completion of MDEV-26272, Clang is now able to build MariaDB with UBSAN, and finds multiple issues in MariaDB with UBSAN overall (not seen by GCC). Future Clang specific findings to be fixed on an individual basis.

Generated at Thu Feb 08 09:52:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.