[MDEV-3871] Valgrind warnings in ha_maria::check_if_incompatible_data on an attempt to alter a partitioned Aria table to an unknown engine Created: 2012-11-20  Updated: 2022-09-08

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.0, 5.5.28
Fix Version/s: 5.5

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Michael Widenius
Resolution: Unresolved Votes: 0
Labels: valgrind

Issue Links:
Relates

 Description   

Conditional jump or move depends on uninitialised value(s)
   at 0x966037: ha_maria::check_if_incompatible_data(st_ha_create_information*, unsigned int) (ha_maria.cc:3191)
   by 0xC7E657: ha_partition::check_if_incompatible_data(st_ha_create_information*, unsigned int) (ha_partition.cc:6989)
   by 0x6AC739: mysql_compare_tables(TABLE*, Alter_info*, st_ha_create_information*, unsigned int, enum_alter_table_change_level*, st_key**, unsigned int**, unsigned int*, unsigned int**, unsigned int*, unsigned int*) (sql_table.cc:5369)
   by 0x6AF306: mysql_alter_table(THD*, char*, char*, st_ha_create_information*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool, bool) (sql_table.cc:6404)
   by 0x9406CD: Alter_table_statement::execute(THD*) (sql_alter.cc:106)
   by 0x615175: mysql_execute_command(THD*) (sql_parse.cc:4771)
   by 0x618393: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:6056)
   by 0x60B33F: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1216)
   by 0x60A538: do_command(THD*) (sql_parse.cc:945)
   by 0x70F63F: do_handle_one_connection(THD*) (sql_connect.cc:1254)
   by 0x70F00F: handle_one_connection (sql_connect.cc:1168)
   by 0xBE083A: pfs_spawn_thread (pfs.cc:1800)
   by 0x5895EFB: start_thread (pthread_create.c:304)
   by 0x611959C: clone (clone.S:112)

The trace is from maria/10.0 revno 3479

Test case

--source include/have_partition.inc
 
CREATE TABLE t1 (a INT) ENGINE=Aria PARTITION BY HASH(a) PARTITIONS 2;
ALTER TABLE t1 ENGINE = Unknown;



 Comments   
Comment by Sergei Golubchik [ 2013-05-21 ]

cannot repeat it in 5.5.31

Comment by Elena Stepanova [ 2013-05-21 ]

Right, on maria/5.5 it's reproducible on revno 3580, but not reproducible on revno 3581 (5.3->5.5 merge before 5.5.28a). Not sure which exactly patch from the merge made it disappear.

Generated at Thu Feb 08 06:51:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.