We're updating the issue view to help you get more done. 

Assertion `false' failed in 5.7 TokuDB PFS feature tree

Description

1 2 3 4 2016-12-05T05:28:06.681539Z 0 [Note] /sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/bin/mysqld: ready for connections. Version: '5.7.16-9-debug' socket: '/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/socket.sock' port: 12003 MySQL Community Server (GPL) mysqld: /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/perfschema/pfs.cc:4663: void pfs_start_file_close_wait_v1(PSI_file_locker*, const char*, uint): Assertion `false' failed. 05:28:18 UTC - mysqld got signal 6 ;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 Core was generated by `/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/bin/mysqld --no-de'. Program terminated with signal 6, Aborted. #0 0x00007f1fb2a91741 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:61 61 val = INTERNAL_SYSCALL (tgkill, err, 3, THREAD_GETMEM (THREAD_SELF, pid), (gdb) bt #0 0x00007f1fb2a91741 in __pthread_kill (threadid=<optimized out>, signo=6) at ../nptl/sysdeps/unix/sysv/linux/pthread_kill.c:61 #1 0x00000000018466f4 in my_write_core (sig=6) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/mysys/stacktrace.c:247 #2 0x0000000000e7d38b in handle_fatal_signal (sig=6) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/signal_handler.cc:223 #3 <signal handler called> #4 0x00007f1fb0e285f7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #5 0x00007f1fb0e29ce8 in __GI_abort () at abort.c:90 #6 0x00007f1fb0e21566 in __assert_fail_base (fmt=0x7f1fb0f71ce8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x2174144 "false", file=file@entry=0x2173808 "/git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/perfschema/pfs.cc", line=line@entry=4663, function=function@entry=0x2175b60 <pfs_start_file_close_wait_v1::__PRETTY_FUNCTION__> "void pfs_start_file_close_wait_v1(PSI_file_locker*, const char*, uint)") at assert.c:92 #7 0x00007f1fb0e21612 in __GI___assert_fail (assertion=0x2174144 "false", file=0x2173808 "/git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/perfschema/pfs.cc", line=4663, function=0x2175b60 <pfs_start_file_close_wait_v1::__PRETTY_FUNCTION__> "void pfs_start_file_close_wait_v1(PSI_file_locker*, const char*, uint)") at assert.c:101 #8 0x000000000187a1d2 in pfs_start_file_close_wait_v1 (locker=0x7f1fb307a078, src_file=0x7f1f86977888 "/git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/ft/ft-ops.cc", src_line=4791) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/perfschema/pfs.cc:4663 #9 0x00007f1f869591f8 in toku_instr_file_name_close_begin (io_instr=..., key=..., op=file_rename, name=0x7f1f6d050320 "/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/data//././test/t1_key_b_3_4_1d.tokudb", src_file=0x7f1f86977888 "/git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/ft/ft-ops.cc", src_line=4791) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/portability/toku_instr_mysql.cc:89 #10 0x00007f1f869578ee in toku_os_rename_with_source_location ( old_name=0x7f1f6d050320 "/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/data//././test/t1_key_b_3_4_1d.tokudb", new_name=0x7f1f6d0502b0 "/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/data//././test/_sql2_4810_2_key_b_a_2_1d.tokudb", src_file=0x7f1f86977888 "/git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/ft/ft-ops.cc", src_line=4791) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/portability/file.cc:230 #11 0x00007f1f868cdd9c in toku_ft_rename_iname (txn=0x7f1f6d097300, data_dir=0x7f1fa8fff790 "/sda/PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug/data//.", old_iname=0x7f1f6d276180 "./test/t1_key_b_3_4_1d.tokudb", new_iname=0x7f1f6d02e100 "./test/_sql2_4810_2_key_b_a_2_1d.tokudb", ct=0x7f1fa4fabc00) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/ft/ft-ops.cc:4791 #12 0x00007f1f8686a932 in env_dbrename (env=0x7f1fa4fd5700, txn=0x7f1f6d097300, fname=0x7f1f6d02f320 "./test/t1-key-b", dbname=0x0, newname=0x7f1f6d125860 "./test/#sql2-4810-2-key-b", flags=0) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/src/ydb.cc:3119 #13 0x00007f1f86864b43 in locked_env_dbrename (env=0x7f1fa4fd5700, txn=0x7f1f6d097100, fname=0x7f1f6d02f320 "./test/t1-key-b", dbname=0x0, newname=0x7f1f6d125860 "./test/#sql2-4810-2-key-b", flags=0) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/PerconaFT/src/ydb.cc:1376 #14 0x00007f1f868384a7 in ha_tokudb::delete_or_rename_dictionary (this=0x7f1f6d08f030, from_name=0x7f1fb307a700 "./test/t1", to_name=0x7f1fb307a910 "./test/#sql2-4810-2", secondary_name=0x7f1faec2f118 "b", is_key=true, txn=0x7f1f6d097100, is_delete=false) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/ha_tokudb.cc:7569 #15 0x00007f1f86838719 in ha_tokudb::delete_or_rename_table (this=0x7f1f6d08f030, from_name=0x7f1fb307a700 "./test/t1", to_name=0x7f1fb307a910 "./test/#sql2-4810-2", is_delete=false) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/ha_tokudb.cc:7632 #16 0x00007f1f86838c35 in ha_tokudb::rename_table (this=0x7f1f6d08f030, from=0x7f1fb307a700 "./test/t1", to=0x7f1fb307a910 "./test/#sql2-4810-2") at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/tokudb/ha_tokudb.cc:7734 #17 0x0000000000f1309f in handler::ha_rename_table (this=0x7f1f6d08f030, from=0x7f1fb307a700 "./test/t1", to=0x7f1fb307a910 "./test/#sql2-4810-2") at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/handler.cc:5115 #18 0x00000000015aaaea in mysql_rename_table (base=0x7f1fa5f92120, old_db=0x7f1f6d02bfd8 "test", old_name=0x7f1f6d02ba18 "t1", new_db=0x7f1f6d02bfd8 "test", new_name=0x7f1fb307b770 "#sql2-4810-2", flags=2) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_table.cc:5769 #19 0x00000000015b4bf7 in mysql_alter_table (thd=0x7f1f6d019000, new_db=0x7f1f6d02bfd8 "test", new_name=0x0, create_info=0x7f1fb307cbb0, table_list=0x7f1f6d02ba50, alter_info=0x7f1fb307cae0) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_table.cc:10210 #20 0x0000000001720320 in Sql_cmd_alter_table::execute (this=0x7f1f6d02c2a8, thd=0x7f1f6d019000) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_alter.cc:320 #21 0x000000000151cde9 in mysql_execute_command (thd=0x7f1f6d019000, first_level=true) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_parse.cc:5065 #22 0x000000000151edef in mysql_parse (thd=0x7f1f6d019000, parser_state=0x7f1fb307e500) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_parse.cc:5838 #23 0x0000000001513c4b in dispatch_command (thd=0x7f1f6d019000, com_data=0x7f1fb307ec90, command=COM_QUERY) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_parse.cc:1447 #24 0x0000000001512b65 in do_command (thd=0x7f1f6d019000) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/sql_parse.cc:1010 #25 0x000000000164f014 in handle_connection (arg=0x7f1f903411c0) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/sql/conn_handler/connection_handler_per_thread.cc:312 #26 0x000000000187532c in pfs_spawn_thread (arg=0x7f1fa6b90a20) at /git/tokudb-pfs-5.7-fresh-rebased_dbg/storage/perfschema/pfs.cc:2188 #27 0x00007f1fb2a8cdc5 in start_thread (arg=0x7f1fb307f700) at pthread_create.c:308 #28 0x00007f1fb0ee9ced in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

This issue only happens on:

1 PFS-PS051216-percona-server-5.7.16-9-linux-x86_64-debug

This issue does not happen on;

1 2 3 PS071116-percona-server-5.7.16-9-linux-x86_64-debug (same non-PFS) PS141116-percona-server-5.7.16-10-linux-x86_64-val (bit later build) PFS-PS051216-percona-server-5.6.34-79.0-linux-x86_64-debug (5.6 PFS tree)

The issue is 'all over' (screenfiller) - there are many testcases

Environment

None

Status

Assignee

Vladislav Lesin

Reporter

roel.vandepaar

Labels

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Freshdesk Tickets

None

Priority

Blocker