Bug #88046 | InnoDB: ALTER TABLE ... CHANGE ... cause mysql server crash | ||
---|---|---|---|
Submitted: | 10 Oct 2017 13:50 | Modified: | 10 Oct 2017 16:50 |
Reporter: | kfpanda kf | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S6 (Debug Builds) |
Version: | 5.6.37 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | debug |
[10 Oct 2017 13:50]
kfpanda kf
[10 Oct 2017 16:50]
MySQL Verification Team
Thank you for the bug report . According your own comment, duplicate of bug https://bugs.mysql.com/bug.php?id=83799 which produces same callstack on debug server. 2017-10-10 13:29:38 6280 [Note] c:\dbs\5.6\bin\mysqld: ready for connections. Version: '5.6.39-debug-log' socket: '' port: 3560 Source distribution 2017-OCT-01 2017-10-10 13:30:47 6280 [ERROR] InnoDB: dict_load_foreigns() returned 38 for ALTER TABLE t1 CHANGE a2 a2_new INT,CHANGE a1 a1_new INT 2017-10-10 13:30:47 1a94 InnoDB: Assertion failure in thread 6804 in file handler0alter.cc line 5866 <cut> Thread pointer: 0x2b5d2ad2360 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... 7ff7a91e5205 mysqld.exe!my_sigabrt_handler()[my_thr_init.c:455] 7ffc1192fe21 ucrtbased.dll!raise() 7ffc11931979 ucrtbased.dll!abort() 7ff7a94f2032 mysqld.exe!ha_innobase::commit_inplace_alter_table()[handler0alter.cc:5866] 7ff7a8ced64b mysqld.exe!handler::ha_commit_inplace_alter_table()[handler.cc:4388] 7ff7a8e70114 mysqld.exe!mysql_inplace_alter_table()[sql_table.cc:6727] 7ff7a8e5cf54 mysqld.exe!mysql_alter_table()[sql_table.cc:8554] 7ff7a8fe9c9e mysqld.exe!Sql_cmd_alter_table::execute()[sql_alter.cc:307] 7ff7a8e222a3 mysqld.exe!mysql_execute_command()[sql_parse.cc:5026] 7ff7a8e1a4e2 mysqld.exe!mysql_parse()[sql_parse.cc:6444] 7ff7a8e23d5b mysqld.exe!dispatch_command()[sql_parse.cc:1376] 7ff7a8e22db7 mysqld.exe!do_command()[sql_parse.cc:1039] 7ff7a8e743f2 mysqld.exe!do_handle_one_connection()[sql_connect.cc:982] 7ff7a8e74222 mysqld.exe!handle_one_connection()[sql_connect.cc:900] 7ff7a96a3b25 mysqld.exe!pfs_spawn_thread()[pfs.cc:1863] 7ff7a91e3797 mysqld.exe!pthread_start()[my_winthread.c:62] 7ffc11938d48 ucrtbased.dll!_register_onexit_function() 7ffc11938991 ucrtbased.dll!_register_onexit_function() 7ffc5cb02774 KERNEL32.DLL!BaseThreadInitThunk() 7ffc5e110d51 ntdll.dll!RtlUserThreadStart() mysql 5.6 > DROP DATABASE test;CREATE DATABASE test;USE test; Query OK, 2 rows affected (0.04 sec) Query OK, 1 row affected (0.00 sec) Database changed mysql 5.6 > SET DEBUG='+d,innodb_test_open_ref_fail'; Query OK, 0 rows affected (0.00 sec) mysql 5.6 > SET @@SESSION.foreign_key_checks=0; Query OK, 0 rows affected (0.00 sec) mysql 5.6 > CREATE TABLE t2(b INT,c INT); Query OK, 0 rows affected (0.04 sec) mysql 5.6 > alter table t2 add constraint b foreign key(b)references t2(b); ERROR 2013 (HY000): Lost connection to MySQL server during query mysql 5.6 > 2017-10-10 13:39:40 fac InnoDB: Assertion failure in thread 4012 in file handler0alter.cc line 5866 where mysqld died. If you see no messages after this, something went terribly wrong... 7ff7a91e5205 mysqld.exe!my_sigabrt_handler()[my_thr_init.c:455] 7ffc11d2fe21 ucrtbased.dll!raise() 7ffc11d31979 ucrtbased.dll!abort() 7ff7a94f2032 mysqld.exe!ha_innobase::commit_inplace_alter_table()[handler0alter.cc:5866] 7ff7a8ced64b mysqld.exe!handler::ha_commit_inplace_alter_table()[handler.cc:4388] 7ff7a8e70114 mysqld.exe!mysql_inplace_alter_table()[sql_table.cc:6727] 7ff7a8e5cf54 mysqld.exe!mysql_alter_table()[sql_table.cc:8554] 7ff7a8fe9c9e mysqld.exe!Sql_cmd_alter_table::execute()[sql_alter.cc:307] 7ff7a8e222a3 mysqld.exe!mysql_execute_command()[sql_parse.cc:5026] 7ff7a8e1a4e2 mysqld.exe!mysql_parse()[sql_parse.cc:6444] 7ff7a8e23d5b mysqld.exe!dispatch_command()[sql_parse.cc:1376] 7ff7a8e22db7 mysqld.exe!do_command()[sql_parse.cc:1039] 7ff7a8e743f2 mysqld.exe!do_handle_one_connection()[sql_connect.cc:982] 7ff7a8e74222 mysqld.exe!handle_one_connection()[sql_connect.cc:900] 7ff7a96a3b25 mysqld.exe!pfs_spawn_thread()[pfs.cc:1863] 7ff7a91e3797 mysqld.exe!pthread_start()[my_winthread.c:62] 7ffc11d38d48 ucrtbased.dll!_register_onexit_function() 7ffc11d38991 ucrtbased.dll!_register_onexit_function() 7ffc5cb02774 KERNEL32.DLL!BaseThreadInitThunk() 7ffc5e110d51 ntdll.dll!RtlUserThreadStart()