[MDEV-18632] wsrep_is_wsrep_xid: Conditional jump or move depends on uninitialised value Created: 2019-02-18  Updated: 2019-02-19  Resolved: 2019-02-19

Status: Closed
Project: MariaDB Server
Component/s: Galera, Storage Engine - InnoDB
Affects Version/s: 10.4
Fix Version/s: 10.4.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

--source include/have_innodb.inc
 
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
--connect (con1,localhost,root,,test)
ALTER TABLE t1;
--connect (con2,localhost,root,,test)
--error ER_SP_DOES_NOT_EXIST
SELECT f() FROM t1;
 
# Cleanup
--disconnect con2
--disconnect con1
--connection default
DROP TABLE t1;

10.4 19c6a7bb

==10013== Thread 29:
==10013== Conditional jump or move depends on uninitialised value(s)
==10013==    at 0xAD1284: wsrep_is_wsrep_xid (wsrep_xid.cc:59)
==10013==    by 0xF2EA4B: innobase_rollback(handlerton*, THD*, bool) (ha_innodb.cc:4715)
==10013==    by 0xBD6F75: ha_rollback_trans(THD*, bool) (handler.cc:1851)
==10013==    by 0xA13732: trans_rollback_stmt(THD*) (transaction.cc:572)
==10013==    by 0x892889: mysql_execute_command(THD*) (sql_parse.cc:6380)
==10013==    by 0x8977D1: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:8141)
==10013==    by 0x882DBF: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1820)
==10013==    by 0x88162F: do_command(THD*) (sql_parse.cc:1358)
==10013==    by 0x9FCA3E: do_handle_one_connection(CONNECT*) (sql_connect.cc:1399)
==10013==    by 0x9FC7AF: handle_one_connection (sql_connect.cc:1302)
==10013==    by 0xF13C2C: pfs_spawn_thread (pfs.cc:1862)
==10013==    by 0x4E3F493: start_thread (pthread_create.c:333)
==10013==    by 0x6A9A93E: clone (clone.S:97)

Not reproducible on 10.3 a4cd91c5.


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