Bug #76542 | Assertion `!auto_increment_lock && !auto_increment_safe_stmt_log_lock' failed | ||
---|---|---|---|
Submitted: | 31 Mar 2015 8:53 | Modified: | 31 Mar 2015 12:12 |
Reporter: | Ramesh Sivaraman | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S6 (Debug Builds) |
Version: | 5.1, 5.5, 5.6, | OS: | Any (CentOS 7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | auto_increment, debug |
[31 Mar 2015 8:53]
Ramesh Sivaraman
[31 Mar 2015 8:55]
Ramesh Sivaraman
Testcase bundle
Attachment: 1427790803_bug_bundle.tar.gz (application/gzip, text), 1014.12 KiB.
[31 Mar 2015 12:12]
MySQL Verification Team
Thanks for the report. Affects debug builds of 5.1, 5.5, 5.6, Does not affect 5.7, 5.8. Version: '5.6.25-debug-log' MySQL Community Server (GPL) Assertion failed: !auto_increment_lock && !auto_increment_safe_stmt_log_lock, file ..\..\sql\ha_partition.cc, line 3602 mysqld-debug.exe!my_sigabrt_handler()[my_thr_init.c:458] mysqld-debug.exe!raise()[winsig.c:594] mysqld-debug.exe!abort()[abort.c:82] mysqld-debug.exe!_wassert()[assert.c:156] mysqld-debug.exe!ha_partition::external_lock()[ha_partition.cc:3602] mysqld-debug.exe!handler::ha_external_lock()[handler.cc:7191] mysqld-debug.exe!copy_data_between_tables()[sql_table.cc:9116] mysqld-debug.exe!mysql_alter_table()[sql_table.cc:8568] mysqld-debug.exe!Sql_cmd_alter_table::execute()[sql_alter.cc:313] mysqld-debug.exe!mysql_execute_command()[sql_parse.cc:4981] mysqld-debug.exe!mysql_parse()[sql_parse.cc:6391] mysqld-debug.exe!dispatch_command()[sql_parse.cc:1343] mysqld-debug.exe!do_command()[sql_parse.cc:1037] mysqld-debug.exe!do_handle_one_connection()[sql_connect.cc:982] mysqld-debug.exe!handle_one_connection()[sql_connect.cc:899] mysqld-debug.exe!pfs_spawn_thread()[pfs.cc:1862] mysqld-debug.exe!pthread_start()[my_winthread.c:62] mysqld-debug.exe!_callthreadstartex()[threadex.c:376] mysqld-debug.exe!_threadstartex()[threadex.c:359] ------------ Testcase ------------ Start debug build with --log-bin --server-id=1 then run this: ------ set sql_mode=""; drop table if exists t1; create table t1(a int,b int,c int,unique(a,b),key(b)) engine=innodb; alter table t1 change column a a char(100); insert into t1(a,b,c) values (0x3230303030313031313132323333,2147483647,null); insert into t1(a,b,c) values ('',null,null); alter table t1 engine=heap partition by key(a)(partition z); select hex(a),b,c from t1; set sql_mode="strict_all_tables"; alter table t1 modify b int auto_increment; -----