[MDEV-19658] UBSAN: runtime error: load of value 2779096485, which is not a valid value for type 'enum_binlog_format' Created: 2019-05-31  Updated: 2020-03-23  Resolved: 2020-03-23

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.2.32, 10.3.23, 10.4.13, 10.5.2

Type: Bug Priority: Critical
Reporter: Eugene Kosov (Inactive) Assignee: Eugene Kosov (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-21692 UBSAN error: load of value 277909648... Closed

 Description   

Happens during bootstrap so test case is irrelevant.

Precise message is:

mariadb/sql/sql_class.h:3846:24: runtime error: load of value 2779096485, which is not a valid value for type 'enum_binlog_format'

(gdb) bt
#0  THD::set_current_stmt_binlog_format_stmt (this=0x7fffa0000cf8) at sql_class.h:3846
#1  0x0000555557bf4788 in THD::reset_current_stmt_binlog_format_row (this=0x7fffa0000cf8) at sql_class.h:3885
#2  0x0000555557bbb248 in THD::init (this=0x7fffa0000cf8) at sql_class.cc:1190
#3  0x0000555557bb7444 in THD::THD (this=0x7fffa0000cf8, id=3, is_wsrep_applier=false) at sql_class.cc:792
#4  0x0000555557bd9bfa in create_thd () at sql_class.cc:4460
#5  0x0000555558a8e927 in innobase_create_background_thd (name=0x555559b75737 "InnoDB purge worker") at ha_innodb.cc:1664
#6  0x0000555558e3ebae in srv_worker_thread (arg=0x0) at srv0srv.cc:2581
#7  0x00007ffff7aa2182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#8  0x00007ffff6c74b1f in clone () at clone.S:95
(gdb) p current_stmt_binlog_format
$2 = 2779096485
(gdb) p/x current_stmt_binlog_format
$3 = 0xa5a5a5a5

0x5a goes from TRASH_ALLOC()

Issue might affect versions prior to 10.2: I didn't check it.


Generated at Thu Feb 08 08:53:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.