Bug #82320 | ALTER Table failure with DUPLICATE key causes a crash | ||
---|---|---|---|
Submitted: | 22 Jul 2016 8:33 | Modified: | 22 Jul 2016 8:52 |
Reporter: | Krunal Bauskar | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.6, 5.6.31 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[22 Jul 2016 8:33]
Krunal Bauskar
[22 Jul 2016 8:52]
MySQL Verification Team
Hello Krunal, Thank you for the report and test case. Observed that 5.6.31 debug build is affected. Thanks, Umesh
[22 Jul 2016 8:52]
MySQL Verification Team
-- 5.6.31 debug build (gdb) bt #0 0x00007fa620cbd771 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000000ae497f in my_write_core (sig=6) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/mysys/stacktrace.c:422 #2 0x000000000074724e in handle_fatal_signal (sig=6) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/signal_handler.cc:230 #3 <signal handler called> #4 0x00007fa61f8c35d7 in raise () from /lib64/libc.so.6 #5 0x00007fa61f8c4cc8 in abort () from /lib64/libc.so.6 #6 0x00007fa61f8bc546 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007fa61f8bc5f2 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000000b19f2f in ha_innobase::inplace_alter_table (this=0x7fa5cc01c750, altered_table=0x7fa5cc017880, ha_alter_info=0x7fa5f65b1810) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/storage/innobase/handler/handler0alter.cc:3999 #9 0x0000000000872cda in handler::ha_inplace_alter_table (this=0x7fa5cc01c750, altered_table=0x7fa5cc017880, ha_alter_info=0x7fa5f65b1810) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/handler.h:2874 #10 0x000000000086c0ee in mysql_inplace_alter_table (thd=0x30d2de0, table_list=0x7fa5cc0050d8, table=0x7fa5cc01be60, altered_table=0x7fa5cc017880, ha_alter_info=0x7fa5f65b1810, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7fa5f65b2170, alter_ctx=0x7fa5f65b0d60) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_table.cc:6658 #11 0x000000000086dc9f in mysql_alter_table (thd=0x30d2de0, new_db=0x7fa5cc005638 "test", new_name=0x0, create_info=0x7fa5f65b2c10, table_list=0x7fa5cc0050d8, alter_info=0x7fa5f65b2cf0, order_num=0, order=0x0, ignore=false) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_table.cc:8511 #12 0x00000000009c0c35 in Sql_cmd_alter_table::execute (this=0x7fa5cc005708, thd=0x30d2de0) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_alter.cc:313 #13 0x0000000000803cf1 in mysql_execute_command (thd=0x30d2de0) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_parse.cc:4975 #14 0x000000000080468a in mysql_parse (thd=0x30d2de0, rawbuf=0x7fa5cc004fd0 "alter table t1 add b int, ALGORITHM=inplace", length=43, parser_state=0x7fa5f65b4700) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_parse.cc:6385 #15 0x000000000080628b in dispatch_command (command=COM_QUERY, thd=0x30d2de0, packet=0x3202471 "alter table t1 add b int, ALGORITHM=inplace", packet_length=43) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_parse.cc:1339 #16 0x0000000000807b13 in do_command (thd=0x30d2de0) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_parse.cc:1036 #17 0x00000000007bc759 in do_handle_one_connection (thd_arg=0x30d2de0) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_connect.cc:982 #18 0x00000000007bc81f in handle_one_connection (arg=0x30d2de0) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/sql/sql_connect.cc:898 #19 0x0000000000d90b32 in pfs_spawn_thread (arg=0x31e4050) at /export/home/pb2/build/sb_0-18928004-1463437877.21/mysqlcom-pro-5.6.31/storage/perfschema/pfs.cc:1860 #20 0x00007fa620cb8df5 in start_thread () from /lib64/libpthread.so.0 #21 0x00007fa61f98460d in clone () from /lib64/libc.so.6 (gdb)