Bug #77289 | InnoDB: Failing assertion: lock->index == index | lock0lock.cc line 5573 | ||
---|---|---|---|
Submitted: | 10 Jun 2015 2:49 | Modified: | 10 Jun 2015 7:11 |
Reporter: | Ramesh Sivaraman | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.6.23, 5.6.25, 5.7.8 | OS: | Linux (CentOS 7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | debug |
[10 Jun 2015 2:49]
Ramesh Sivaraman
[10 Jun 2015 2:50]
Ramesh Sivaraman
Testcase bundle
Attachment: 1433325459_bug_bundle.tar.gz (application/gzip, text), 1.03 MiB.
[10 Jun 2015 7:07]
MySQL Verification Team
Hello Ramesh, Thank you for the report and test case. Observed that 5.6.23, 5.6.25 and 5.7.8 debug builds are affected(but seeing different asserts than the reported with this test case). Thanks, Umesh
[10 Jun 2015 7:08]
MySQL Verification Team
// 5.6.25 scripts/mysql_install_db --basedir=/export/umesh/server/binaries/mysql-5.6.25 --datadir=/export/umesh/server/binaries/mysql-5.6.25/77289 bin/mysqld-debug --basedir=/export/umesh/server/binaries/mysql-5.6.25 --datadir=/export/umesh/server/binaries/mysql-5.6.25/77289 --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/server/binaries/mysql-5.6.25/77289/log.err --innodb_file_per_table=1 --innodb_flush_method=O_DIRECT --log-bin=binlog --binlog_format=MIXED --event-scheduler=ON --maximum-bulk_insert_buffer_size=1M --maximum-join_buffer_size=1M --maximum-max_heap_table_size=1M --maximum-max_join_size=1M --maximum-myisam_max_sort_file_size=1M --maximum-myisam_mmap_size=1M --maximum-myisam_sort_buffer_size=1M --maximum-optimizer_trace_max_mem_size=1M --maximum-preload_buffer_size=1M --maximum-query_alloc_block_size=1M --maximum-query_prealloc_size=1M --maximum-range_alloc_block_size=1M --maximum-read_buffer_size=1M --maximum-read_rnd_buffer_size=1M --maximum-sort_buffer_size=1M --maximum-tmp_table_size=1M --maximum-transaction_alloc_block_size=1M --maximum-transaction_prealloc_size=1M --log-output=none --sql_mode=ONLY_FULL_GROUP_BY 2>&1 & [umshastr@hod03]/export/umesh/server/binaries/mysql-5.6.25: bin/mysql -u root -S/tmp/mysql_ushastry.sock --force < testcases/1433325459.sql ERROR 1215 (HY000) at line 6: Cannot add foreign key constraint Table Op Msg_type Msg_text test.t1 repair status OK .. . ERROR 2013 (HY000) at line 42: Lost connection to MySQL server during query ERROR 2006 (HY000) at line 43: MySQL server has gone away ERROR 2006 (HY000) at line 44: MySQL server has gone away ERROR 2006 (HY000) at line 45: MySQL server has gone away [1]+ Aborted (core dumped) bin/mysqld-debug --basedir=/export/umesh/server/binaries/mysql-5.6.25 --datadir=/export/umesh/server/binaries/mysql-5.6.25/77289 --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/server/binaries/mysql-5.6.25/77289/log.err --innodb_file_per_table=1 --innodb_flush_method=O_DIRECT --log-bin=binlog --binlog_format=MIXED --event-scheduler=ON --maximum-bulk_insert_buffer_size=1M --maximum-join_buffer_size=1M --maximum-max_heap_table_size=1M --maximum-max_join_size=1M --maximum-myisam_max_sort_file_size=1M --maximum-myisam_mmap_size=1M --maximum-myisam_sort_buffer_size=1M --maximum-optimizer_trace_max_mem_size=1M --maximum-preload_buffer_size=1M --maximum-query_alloc_block_size=1M --maximum-query_prealloc_size=1M --maximum-range_alloc_block_size=1M --maximum-read_buffer_size=1M --maximum-read_rnd_buffer_size=1M --maximum-sort_buffer_size=1M --maximum-tmp_table_size=1M --maximum-transaction_alloc_block_size=1M --maximum-transaction_prealloc_size=1M --log-output=none --sql_mode=ONLY_FULL_GROUP_BY 2>&1 // gdb (gdb) bt #0 0x00007f94ebba0771 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000000ab0b17 in my_write_core (sig=6) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/mysys/stacktrace.c:422 #2 0x0000000000716112 in handle_fatal_signal (sig=6) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/signal_handler.cc:230 #3 <signal handler called> #4 0x00007f94ea7a65c9 in raise () from /lib64/libc.so.6 #5 0x00007f94ea7a7cd8 in abort () from /lib64/libc.so.6 #6 0x0000000000cfb644 in fseg_inode_get (header=0x7f94c8d14054 "", space=0, zip_size=0, mtr=0x7f94c1413550) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/fsp/fsp0fsp.cc:1849 #7 0x0000000000cfcae9 in fseg_n_reserved_pages (header=0x7f94c8d14054 "", used=0x7f94c1413480, mtr=0x7f94c1413550) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/fsp/fsp0fsp.cc:2178 #8 0x0000000000c5fcff in btr_get_size (index=0x7f948408c048, flag=2, mtr=0x7f94c1413550) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/btr/btr0btr.cc:1219 #9 0x0000000000cdfacc in dict_stats_analyze_index (index=0x7f948408c048) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/dict/dict0stats.cc:1910 #10 0x0000000000ce055e in dict_stats_update_persistent (table=0x7f948407c4c8) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/dict/dict0stats.cc:2209 #11 0x0000000000ce2753 in dict_stats_update (table=0x7f948407c4c8, stats_upd_option=DICT_STATS_RECALC_PERSISTENT) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/dict/dict0stats.cc:3127 #12 0x0000000000ce2a2c in dict_stats_update (table=0x7f948407c4c8, stats_upd_option=DICT_STATS_FETCH_ONLY_IF_NOT_IN_MEMORY) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/dict/dict0stats.cc:3248 #13 0x0000000000acda17 in dict_stats_init (table=0x7f948407c4c8) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/include/dict0stats.ic:174 #14 0x0000000000adcc88 in ha_innobase::open (this=0x7f94840776b0, name=0x7f9484087008 "./test/t1", mode=2, test_if_locked=2) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/innobase/handler/ha_innodb.cc:4859 #15 0x00000000006229f7 in handler::ha_open (this=0x7f94840776b0, table_arg=0x7f948408a4a0, name=0x7f9484087008 "./test/t1", mode=2, test_if_locked=2) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/handler.cc:2505 #16 0x0000000000890a4b in open_table_from_share (thd=0x2100b70, share=0x7f9484086ce0, alias=0x7f9484026010 "t1", db_stat=39, prgflag=44, ha_open_flags=0, outparam=0x7f948408a4a0, is_create_table=false) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/table.cc:2355 #17 0x00000000007635a3 in open_table (thd=0x2100b70, table_list=0x7f9484026018, ot_ctx=0x7f94c1414c80) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_base.cc:3167 #18 0x0000000000764412 in open_and_process_table (thd=0x2100b70, lex=0x2102930, tables=0x7f9484026018, counter=0x21029e0, flags=0, prelocking_strategy=0x7f94c1414dc0, has_prelocking_list=false, ot_ctx=0x7f94c1414c80) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_base.cc:4662 #19 0x0000000000764be0 in open_tables (thd=0x2100b70, start=0x7f94c1414d80, counter=0x21029e0, flags=0, prelocking_strategy=0x7f94c1414dc0) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_base.cc:5095 #20 0x00000000007651dc in open_normal_and_derived_tables (thd=0x2100b70, tables=0x7f9484026018, flags=0) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_base.cc:5791 #21 0x00000000007cc935 in mysql_execute_command (thd=0x2100b70) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_parse.cc:3507 #22 0x00000000007d1bae in mysql_parse (thd=0x2100b70, rawbuf=0x7f9484025f20 "INSERT INTO t1 SELECT * FROM t1", length=32, parser_state=0x7f94c1416700) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_parse.cc:6386 #23 0x00000000007d37d2 in dispatch_command (command=COM_QUERY, thd=0x2100b70, packet=0x21e65e1 "INSERT INTO t1 SELECT * FROM t1", packet_length=32) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_parse.cc:1340 #24 0x00000000007d505e in do_command (thd=0x2100b70) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_parse.cc:1037 #25 0x000000000078aa91 in do_handle_one_connection (thd_arg=0x2100b70) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_connect.cc:982 #26 0x000000000078ab57 in handle_one_connection (arg=0x2100b70) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/sql/sql_connect.cc:898 #27 0x0000000000d7ed74 in pfs_spawn_thread (arg=0x219ddb0) at /export/home/pb2/build/sb_0-15205200-1430827248.7/mysql-5.6.25/storage/perfschema/pfs.cc:1860 #28 0x00007f94ebb9bdf3 in start_thread () from /lib64/libpthread.so.0 #29 0x00007f94ea86747d in clone () from /lib64/libc.so.6 (gdb)
[10 Jun 2015 7:11]
MySQL Verification Team
// 5.7.8 [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: bin/mysql_install_db --insecure --basedir=/export/umesh/server/binaries/mysql-5.7.8 --datadir=/export/umesh/server/binaries/mysql-5.7.8/77289 -v 2015-06-10 09:04:33 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize 2015-06-10 09:04:33 [NOTE] Creating data directory /export/umesh/server/binaries/mysql-5.7.8/77289 2015-06-10 09:04:33 [NOTE] Executing /export/umesh/server/binaries/mysql-5.7.8/bin/mysqld --bootstrap --datadir=/export/umesh/server/binaries/mysql-5.7.8/77289 --lc-messages-dir=/export/umesh/server/binaries/mysql-5.7.8/share --lc-messages=en_US --basedir=/export/umesh/server/binaries/mysql-5.7.8 bin/mysqld-debug --basedir=/export/umesh/server/binaries/mysql-5.7.8 --datadir=/export/umesh/server/binaries/mysql-5.7.8/77289 --sql_mode=ONLY_FULL_GROUP_BY --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/server/binaries/mysql-5.7.8/77289/log.err --innodb_file_per_table=1 --innodb_flush_method=O_DIRECT --log-bin=binlog --binlog_format=MIXED --event-scheduler=ON --maximum-bulk_insert_buffer_size=1M --maximum-join_buffer_size=1M --maximum-max_heap_table_size=1M --maximum-max_join_size=1M --maximum-myisam_max_sort_file_size=1M --maximum-myisam_mmap_size=1M --maximum-myisam_sort_buffer_size=1M --maximum-optimizer_trace_max_mem_size=1M --maximum-preload_buffer_size=1M --maximum-query_alloc_block_size=1M --maximum-query_prealloc_size=1M --maximum-range_alloc_block_size=1M --maximum-read_buffer_size=1M --maximum-read_rnd_buffer_size=1M --maximum-sort_buffer_size=1M --maximum-tmp_table_size=1M --maximum-transaction_alloc_block_size=1M --maximum-transaction_prealloc_size=1M --log-output=none --sql_mode=ONLY_FULL_GROUP_BY --server_id=1 2>&1 & . [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: bin/mysqld-debug --basedir=/export/umesh/server/binaries/mysql-5.7.8 --datadir=/export/umesh/server/binaries/mysql-5.7.8/77289 --sql_mode=ONLY_FULL_GROUP_BY --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/server/binaries/mysql-5.7.8/77289/log.err --innodb_file_per_table=1 --innodb_flush_method=O_DIRECT --log-bin=binlog --binlog_format=MIXED --event-scheduler=ON --maximum-bulk_insert_buffer_size=1M --maximum-join_buffer_size=1M --maximum-max_heap_table_size=1M --maximum-max_join_size=1M --maximum-myisam_max_sort_file_size=1M --maximum-myisam_mmap_size=1M --maximum-myisam_sort_buffer_size=1M --maximum-optimizer_trace_max_mem_size=1M --maximum-preload_buffer_size=1M --maximum-query_alloc_block_size=1M --maximum-query_prealloc_size=1M --maximum-range_alloc_block_size=1M --maximum-read_buffer_size=1M --maximum-read_rnd_buffer_size=1M --maximum-sort_buffer_size=1M --maximum-tmp_table_size=1M --maximum-transaction_alloc_block_size=1M --maximum-transaction_prealloc_size=1M --log-output=none --sql_mode=ONLY_FULL_GROUP_BY --server_id=1 2>&1 & [1] 27660 [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: 2015-06-10T07:04:36.938021Z 0 [Warning] option 'transaction_alloc_block_size': unsigned value 1048576 adjusted to 131072 2015-06-10T07:04:36.938085Z 0 [Warning] option 'transaction_prealloc_size': unsigned value 1048576 adjusted to 131072 2015-06-10T07:04:36.938133Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-06-10T07:04:36.938154Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set. 2015-06-10T07:04:36.938224Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2015-06-10T07:04:36.938301Z 0 [Note] bin/mysqld-debug (mysqld 5.7.8-rc-enterprise-commercial-advanced-debug-log) starting as process 27660 ... [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: bin/mysql -u root -S/tmp/mysql_ushastry.sock --force < ../mysql-5.6.25/testcases/1433325459.sql . . ERROR 2013 (HY000) at line 32: Lost connection to MySQL server during query ERROR 2006 (HY000) at line 33: MySQL server has gone away . ERROR 2006 (HY000) at line 45: MySQL server has gone away [1]+ Aborted (core dumped) bin/mysqld-debug --basedir=/export/umesh/server/binaries/mysql-5.7.8 --datadir=/export/umesh/server/binaries/mysql-5.7.8/77289 --sql_mode=ONLY_FULL_GROUP_BY --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/server/binaries/mysql-5.7.8/77289/log.err --innodb_file_per_table=1 --innodb_flush_method=O_DIRECT --log-bin=binlog --binlog_format=MIXED --event-scheduler=ON --maximum-bulk_insert_buffer_size=1M --maximum-join_buffer_size=1M --maximum-max_heap_table_size=1M --maximum-max_join_size=1M --maximum-myisam_max_sort_file_size=1M --maximum-myisam_mmap_size=1M --maximum-myisam_sort_buffer_size=1M --maximum-optimizer_trace_max_mem_size=1M --maximum-preload_buffer_size=1M --maximum-query_alloc_block_size=1M --maximum-query_prealloc_size=1M --maximum-range_alloc_block_size=1M --maximum-read_buffer_size=1M --maximum-read_rnd_buffer_size=1M --maximum-sort_buffer_size=1M --maximum-tmp_table_size=1M --maximum-transaction_alloc_block_size=1M --maximum-transaction_prealloc_size=1M --log-output=none --sql_mode=ONLY_FULL_GROUP_BY --server_id=1 2>&1 [umshastr@hod03]/export/umesh/server/binaries/mysql-5.7.8: (gdb) bt #0 0x00007f5487c8c771 in pthread_kill () from /lib64/libpthread.so.0 #1 0x00000000016bf1e9 in my_write_core (sig=6) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/mysys/stacktrace.c:247 #2 0x0000000000d915a0 in handle_fatal_signal (sig=6) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/sql/signal_handler.cc:220 #3 <signal handler called> #4 0x00007f54868925c9 in raise () from /lib64/libc.so.6 #5 0x00007f5486893cd8 in abort () from /lib64/libc.so.6 #6 0x00007f548688b536 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f548688b5e2 in __assert_fail () from /lib64/libc.so.6 #8 0x000000000134cbdd in THD::send_statement_status (this=0x7f53e4000bc0) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/sql/sql_class.cc:4774 #9 0x00000000013a3f3f in dispatch_command (thd=0x7f53e4000bc0, com_data=0x7f545a65ae10, command=COM_QUERY) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/sql/sql_parse.cc:1692 #10 0x00000000013a14c7 in do_command (thd=0x7f53e4000bc0) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/sql/sql_parse.cc:851 #11 0x00000000014cc078 in handle_connection (arg=0x4784fe0) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/sql/conn_handler/connection_handler_per_thread.cc:299 #12 0x0000000001a61acd in pfs_spawn_thread (arg=0x491b550) at /export/home/pb2/build/sb_0-15472861-1433389453.06/mysqlcom-pro-5.7.8-rc/storage/perfschema/pfs.cc:2178 #13 0x00007f5487c87df3 in start_thread () from /lib64/libpthread.so.0 #14 0x00007f548695347d in clone () from /lib64/libc.so.6 (gdb)