[MDEV-30747] UBSAN: load of value X, which is not a valid value for type 'enum_yes_no_unknown' in sql/sql_parse.cc Created: 2023-02-28  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.10, 11.0
Fix Version/s: 10.11

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Julius Goryavsky
Resolution: Unresolved Votes: 0
Labels: None


 Description   

SET GLOBAL wsrep_convert_lock_to_trx=ON;
LOCK TABLES performance_schema.events_transactions_history WRITE;
UNLOCK TABLES;

Leads to

10.10.4 6f6fa3bec2decb26598bce33d43594aabb25b201 (Debug, UBASAN)

/test/mtest/10.10_dbg_san/sql/sql_parse.cc:5624:26: runtime error: load of value 2779096485, which is not a valid value for type 'enum_yes_no_unknown'

Setup

Compiled with GCC 9.4.0
-DWITH_UBSAN=ON -DCMAKE_CXX_FLAGS=-static-libasan



 Comments   
Comment by Marko Mäkelä [ 2023-02-28 ]

I would expect MemorySanitizer to complain about this as well. 2779096485 == 0xa5a5a5a5, and the 0xa5 bytes probably originate from the macro TRASH_ALLOC().

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