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

src/ydb.cc:2917 can_acquire_table_lock: Assertion `r == 0' failed (errno=36) (r=36)

Description

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 Core was generated by `/sda/PS200317-percona-server-5.7.17-11-linux-x86_64-debug/bin/mysqld --no-defau'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill (threadid=<optimised out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62 62 ../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory. [Current thread is 1 (Thread 0x7f55f8215700 (LWP 30406))] (gdb) bt #0 __pthread_kill (threadid=<optimised out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62 #1 0x0000563bac63ddb4 in my_write_core (sig=6) at /git/PS57_dbg/mysys/stacktrace.c:249 #2 0x0000563babbccace in handle_fatal_signal (sig=6) at /git/PS57_dbg/sql/signal_handler.cc:223 #3 <signal handler called> #4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 #5 0x00007f55f5ee03ea in __GI_abort () at abort.c:89 #6 0x00007f55d4962162 in toku_do_backtrace_abort () at /git/PS57_dbg/storage/tokudb/PerconaFT/portability/toku_assert.cc:147 #7 0x00007f55d4962326 in toku_do_assert_zero_fail (expr=36, expr_as_string=0x7f55d496b9aa "r", function=0x7f55d496dd60 <can_acquire_table_lock(__toku_db_env*, __toku_db_txn*, char const*)::__FUNCTION__> "can_acquire_table_lock", file=0x7f55d496beb0 "/git/PS57_dbg/storage/tokudb/PerconaFT/src/ydb.cc", line=2917, caller_errno=36) at /git/PS57_dbg/storage/tokudb/PerconaFT/portability/toku_assert.cc:177 #8 0x00007f55d4858fd7 in can_acquire_table_lock (env=0x7f55eebc5400, txn=0x7f55b6c97200, iname_in_env=0x7f55b6c1d640 "./test/t_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_002e_0"...) at /git/PS57_dbg/storage/tokudb/PerconaFT/src/ydb.cc:2917 #9 0x00007f55d4859c99 in env_dbrename (env=0x7f55eebc5400, txn=0x7f55b6c97200, fname=0x7f55b6c2f2a0 "./test/t1-main", dbname=0x0, newname=0x7f55b6c223a0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"..., flags=0) at /git/PS57_dbg/storage/tokudb/PerconaFT/src/ydb.cc:3138 #10 0x00007f55d48537d6 in locked_env_dbrename (env=0x7f55eebc5400, txn=0x7f55b6c97100, fname=0x7f55b6c2f2a0 "./test/t1-main", dbname=0x0, newname=0x7f55b6c223a0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"..., flags=0) at /git/PS57_dbg/storage/tokudb/PerconaFT/src/ydb.cc:1366 #11 0x00007f55d4824325 in ha_tokudb::delete_or_rename_dictionary (this=0x7f55b6c8f030, from_name=0x7f55f82125e0 "./test/t1", to_name=0x7f55f82127f0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"..., secondary_name=0x7f55d4963abd "main", is_key=false, txn=0x7f55b6c97100, is_delete=false) at /git/PS57_dbg/storage/tokudb/ha_tokudb.cc:7553 #12 0x00007f55d482464a in ha_tokudb::delete_or_rename_table (this=0x7f55b6c8f030, from_name=0x7f55f82125e0 "./test/t1", to_name=0x7f55f82127f0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"..., is_delete=false) at /git/PS57_dbg/storage/tokudb/ha_tokudb.cc:7623 #13 0x00007f55d4824ddd in ha_tokudb::rename_table (this=0x7f55b6c8f030, from=0x7f55f82125e0 "./test/t1", to=0x7f55f82127f0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"...) at /git/PS57_dbg/storage/tokudb/ha_tokudb.cc:7749 #14 0x0000563babc6d785 in handler::ha_rename_table (this=0x7f55b6c8f030, from=0x7f55f82125e0 "./test/t1", to=0x7f55f82127f0 "./test/t@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@002e@0"...) at /git/PS57_dbg/sql/handler.cc:5198 #15 0x0000563bac37b5f8 in mysql_rename_table (base=0x7f55efbbfee0, old_db=0x7f55b6c2c018 "test", old_name=0x7f55b6c2b9f8 "t1", new_db=0x7f55b6c2c5e0 "test", new_name=0x7f55b6c2ba28 "t", '.' <repeats 54 times>, flags=0) at /git/PS57_dbg/sql/sql_table.cc:5828 #16 0x0000563bac327a4c in do_rename (thd=0x7f55b6c19000, ren_table=0x7f55b6c2ba90, new_db=0x7f55b6c2c5e0 "test", new_table_name=0x7f55b6c2ba28 "t", '.' <repeats 54 times>, new_table_alias=0x7f55b6c2c020 "t", '.' <repeats 54 times>, skip_error=false) at /git/PS57_dbg/sql/sql_rename.cc:280 #17 0x0000563bac327d31 in rename_tables (thd=0x7f55b6c19000, table_list=0x7f55b6c2ba90, skip_error=false) at /git/PS57_dbg/sql/sql_rename.cc:366 #18 0x0000563bac3275eb in mysql_rename_tables (thd=0x7f55b6c19000, table_list=0x7f55b6c2ba90, silent=false) at /git/PS57_dbg/sql/sql_rename.cc:151 #19 0x0000563bac2dd37a in mysql_execute_command (thd=0x7f55b6c19000, first_level=true) at /git/PS57_dbg/sql/sql_parse.cc:3654 #20 0x0000563bac2e4043 in mysql_parse (thd=0x7f55b6c19000, parser_state=0x7f55f82144a0) at /git/PS57_dbg/sql/sql_parse.cc:5927 #21 0x0000563bac2d7eb7 in dispatch_command (thd=0x7f55b6c19000, com_data=0x7f55f8214da0, command=COM_QUERY) at /git/PS57_dbg/sql/sql_parse.cc:1493 #22 0x0000563bac2d6c54 in do_command (thd=0x7f55b6c19000) at /git/PS57_dbg/sql/sql_parse.cc:1021 #23 0x0000563bac427c28 in handle_connection (arg=0x7f55cf7aaa60) at /git/PS57_dbg/sql/conn_handler/connection_handler_per_thread.cc:312 #24 0x0000563bacb26949 in pfs_spawn_thread (arg=0x7f55efbc8120) at /git/PS57_dbg/storage/perfschema/pfs.cc:2188 #25 0x00007f55f6b1f6ca in start_thread (arg=0x7f55f8215700) at pthread_create.c:333 #26 0x00007f55f5fb10af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
1 2 3 DROP DATABASE test;CREATE DATABASE test;USE test; CREATE TABLE t1 ( id int(8) NOT NULL, PRIMARY KEY (id) ) ENGINE=TokuDB DEFAULT CHARSET=latin1; RENAME TABLE t1 TO `t......................................................`;

Environment

None

Status

Assignee

Unassigned

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

Affects versions

5.7.17-11

Priority

Major