dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0$ mysql-test/mtr --mem --manual-gdb parts.partition_debug_innodb 10.5-ba573c4736f908a6525acddb7573cc7d818eaa25 (gdb) set logging file /tmp/gdb.txt (gdb) set logging on Copying output to /tmp/gdb.txt. (gdb) break storage/innobase/handler/ha_innodb.cc:13473 r Breakpoint 1 at 0x13b16c0: file /home/dan/mariadb-server-10.5/storage/innobase/handler/ha_innodb.cc, line 13473. (gdb) r Starting program: /home/dan/build-mariadb-server-10.5-debug-gccO0/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/home/dan/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/my.cnf --log-output=file --gdb --innodb --innodb-cmpmem --innodb-cmp-per-index --innodb-trx --innodb-locks --innodb-lock-waits --innodb-metrics --innodb-buffer-pool-stats --innodb-buffer-page --innodb-buffer-page-lru --innodb-sys-columns --innodb-sys-fields --innodb-sys-foreign --innodb-sys-foreign-cols --innodb-sys-indexes --innodb-sys-tables --innodb-sys-virtual --loose-enable-partition --loose-innodb-file-per-table=1 --skip-stack-trace --loose-innodb-buffer-pool-size=32M --loose-debug-sync-timeout=300 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/powerpc64le-linux-gnu/libthread_db.so.1". 2020-05-08 20:46:37 0 [Note] /home/dan/build-mariadb-server-10.5-debug-gccO0/sql/mariadbd (mysqld 10.5.3-MariaDB-debug-log) starting as process 157378 ... [New Thread 0x7ffff2f8f120 (LWP 157381)] [New Thread 0x7ffff1bdf120 (LWP 157382)] [New Thread 0x7ffff0bbf120 (LWP 157383)] [New Thread 0x7fffe9fff120 (LWP 157384)] [New Thread 0x7fffe97ef120 (LWP 157385)] [New Thread 0x7fffe8fdf120 (LWP 157386)] [New Thread 0x7fffd7fff120 (LWP 157387)] [Thread 0x7fffe9fff120 (LWP 157384) exited] [New Thread 0x7fffe9fff120 (LWP 157388)] [Thread 0x7fffe9fff120 (LWP 157388) exited] [New Thread 0x7fffe9fff120 (LWP 157389)] [New Thread 0x7ffff0db8120 (LWP 157390)] Thread 1 "mariadbd" hit Breakpoint 1, ha_innobase::delete_table (this=0x103d363d0, name=0x10271b168 "./test/t1#P#p20", sqlcom=SQLCOM_END) at /home/dan/mariadb-server-10.5/storage/innobase/handler/ha_innodb.cc:13473 13473 ib::error() << "Table " << tbl_name << (gdb) bt full #0 ha_innobase::delete_table (this=0x103d363d0, name=0x10271b168 "./test/t1#P#p20", sqlcom=SQLCOM_END) at /home/dan/mariadb-server-10.5/storage/innobase/handler/ha_innodb.cc:13473 len = 13 num_partitions = 0 tbl_name = {m_name = 0x7fffffffdd58 "test/t1#P#p20", static part_suffix = "#P#"} err = DB_SUCCESS thd = 0x103c442c8 norm_name = "test/t1#P#p20", '\000' , "\240\325/\001\001\000\000\000p\035\005\003\001", '\000' , "`\340\377\377\377\177\000\000\320\335\377\377\377\177\000\000\005\000\000\000\377\177\000\000\260\061\005\003\001\000\000\000\200\000R\364\377\177\000\000\260\061\005\003\001\000\000\000\310\036\005\003\001\000\000\000 \336\377\377\377\177\000\000\320\335\377\377\377\177\000\000 \336\377\377\377\177\000\000\000aQ\002\001\000\000\000\304'\245\001\001\000\000\000\360\335\377\377\000\000\000\000\350p\324\001\001", '\000' , "Tġ\001\001\000\000\000\000aQ\002\000\000\001\000\070\316#\001\001\000\000\000 \336\377\377\377\177\000\000p"... _db_stack_frame_ = {func = 0x101b98a80 "execute_ddl_log_action", file = 0x101b983e0 "/home/dan/mariadb-server-10.5/sql/sql_table.cc", level = 2147483652, line = -1, prev = 0x7fffffffe2a8} parent_trx = 0x7ffff0fc1160 iter = {first = 0x0, second = {first = 4348004024, first_versioned = 0, static UNVERSIONED = 18446744073709551615}} trx = 0x7ffff0fc2290 name_len = 15 __PRETTY_FUNCTION__ = "int ha_innobase::delete_table(const char*, enum_sql_command)" #1 0x000000010139476c in ha_innobase::delete_table (this=0x103d363d0, name=0x10271b168 "./test/t1#P#p20") at /home/dan/mariadb-server-10.5/storage/innobase/handler/ha_innodb.cc:13550 sqlcom = SQLCOM_END __PRETTY_FUNCTION__ = "virtual int ha_innobase::delete_table(const char*)" #2 0x0000000100d9123c in handler::ha_delete_table (this=0x103d363d0, name=0x10271b168 "./test/t1#P#p20") at /home/dan/mariadb-server-10.5/sql/handler.cc:4866 No locals. #3 0x0000000100a48090 in execute_ddl_log_action (thd=0x103c442c8, ddl_log_entry=0x7fffffffe7b8) at /home/dan/mariadb-server-10.5/sql/sql_table.cc:1169 frm_action = false handler_name = {str = 0x10271b568 "InnoDB", length = 6} file = 0x103d363d0 mem_root = {free = 0x0, used = 0x103d363b8, pre_alloc = 0x0, min_malloc = 32, block_size = 985, block_num = 5, first_block_usage = 0, error_handler = 0x100acaa90 , m_psi_key = 9} error = 1 to_path = "\000aQ\002\001\000\000\000\000\000\377\367\377\177\000\000 \343\377\377\000\000\000\000\370\205\271\001\001", '\000' , "Tġ\001\001\000\000\000\200\264\t\363\000\000\001\000p\343\377\377\377\177\000\000P\343\377\377\377\177\000\000\240\343\377\377\377\177\000\000`\343\377\377\377\177\000\000\374\066\245\001\001\000\000\000\000aQ\002\001\000\000\000\320\343\377\377\377\177\000\000\260\061\005\003\001\000\000\000\260\061\005\003\001\000\000\000\000aQ\002\001", '\000' , "\240\343\377\377\000\000\000\000船\001\001", '\000' , "Tġ\001\001\000\000\000\000aQ\002\000\000\001\000\374\066\245\001\001\000\000\000\320\343\377\377\377\177\--Type for more, q to quit, c to continue without paging-- 000\000 \344\377\377\377"... from_path = "\350\345\377\377\377\177\000\000\a\000\000\000s\001\000\000\065T\210\363\235\250\005\000\277\017\000\000\000\000\000\000\260\266\t\363\377\177\000\000\250\266\t\363\377\177\000\000\350\345\377\377\377\177\000\000\200\264\t\363\377\177\000\000\000_\a\003\001\000\000\000\000\026\312\366\377\177\000\000\000\020\000\000\000\000\000\000\000\070\236\366\377\177\000\000(\037\312\366\377\177\000\000\310B\304\003\001\000\000\000\200\345\377\377\377\177\000\000@\346\377\377\377\177\000\000\310\036\005\003\001\000\000\000\234/\244\000\001\000\000\000\000aQ\002\001\000\000\000\020\000\000\000\000\000\000\000\000\060\000\000\000\000\000\000\000\020\000\000\000\000\000\000`\261q\002\001\000\000\000&\000\000\000\267\002\000\000\340\203\271\001\001\000\000\000\000"... hton = 0x10326e048 _db_stack_frame_ = {func = 0x101b98b88 "execute_ddl_log_entry_no_lock", file = 0x101b983e0 "/home/dan/mariadb-server-10.5/sql/sql_table.cc", level = 2147483651, line = -1, prev = 0x7fffffffe798} __PRETTY_FUNCTION__ = "int execute_ddl_log_action(THD*, DDL_LOG_ENTRY*)" #4 0x0000000100a48b94 in execute_ddl_log_entry_no_lock (thd=0x103c442c8, first_entry=3) at /home/dan/mariadb-server-10.5/sql/sql_table.cc:1361 ddl_log_entry = {name = 0x10271b168 "./test/t1#P#p20", from_name = 0x10271b368 "", handler_name = 0x10271b568 "InnoDB", tmp_name = 0x0, next_entry = 1, entry_pos = 3, entry_type = DDL_LOG_ENTRY_CODE, action_type = DDL_LOG_DELETE_ACTION, phase = 0 '\000'} read_entry = 3 _db_stack_frame_ = {func = 0x101b98db8 "execute_ddl_log_recovery", file = 0x101b983e0 "/home/dan/mariadb-server-10.5/sql/sql_table.cc", level = 2147483650, line = -1, prev = 0x7fffffffe870} __PRETTY_FUNCTION__ = "bool execute_ddl_log_entry_no_lock(THD*, uint)" #5 0x0000000100a49b80 in execute_ddl_log_recovery () at /home/dan/mariadb-server-10.5/sql/sql_table.cc:1681 num_entries = 3 i = 2 thd = 0x103c442c8 ddl_log_entry = {name = 0x10271b168 "./test/t1#P#p20", from_name = 0x10271b368 "", handler_name = 0x10271b568 "InnoDB", tmp_name = 0x0, next_entry = 3, entry_pos = 2, entry_type = DDL_LOG_EXECUTE_CODE, action_type = 0, phase = 0 '\000'} file_name = '\000' , "\260\351\377\377\377\177", '\000' ... recover_query_string = "INTERNAL DDL LOG RECOVER IN PROGRESS" _db_stack_frame_ = {func = 0x101fee778 "?func", file = 0x101fee780 "?file", level = 2147483649, line = -1, prev = 0x0} #6 0x0000000100778c90 in mysqld_main (argc=168, argv=0x103053b60) at /home/dan/mariadb-server-10.5/sql/mysqld.cc:5497 please_close_stdin = true ho_error = 0 new_thread_stack_size = 299008 user = 0x10000ffff "" #7 0x00000001007699d4 in main (argc=27, argv=0x7ffffffff088) at /home/dan/mariadb-server-10.5/sql/main.cc:25 No locals. (gdb) info locals len = 13 num_partitions = 0 tbl_name = {m_name = 0x7fffffffdd58 "test/t1#P#p20", static part_suffix = "#P#"} err = DB_SUCCESS thd = 0x103c442c8 norm_name = "test/t1#P#p20", '\000' , "\240\325/\001\001\000\000\000p\035\005\003\001", '\000' , "`\340\377\377\377\177\000\000\320\335\377\377\377\177\000\000\005\000\000\000\377\177\000\000\260\061\005\003\001\000\000\000\200\000R\364\377\177\000\000\260\061\005\003\001\000\000\000\310\036\005\003\001\000\000\000 \336\377\377\377\177\000\000\320\335\377\377\377\177\000\000 \336\377\377\377\177\000\000\000aQ\002\001\000\000\000\304'\245\001\001\000\000\000\360\335\377\377\000\000\000\000\350p\324\001\001", '\000' , "Tġ\001\001\000\000\000\000aQ\002\000\000\001\000\070\316#\001\001\000\000\000 \336\377\377\377\177\000\000p"... _db_stack_frame_ = {func = 0x101b98a80 "execute_ddl_log_action", file = 0x101b983e0 "/home/dan/mariadb-server-10.5/sql/sql_table.cc", level = 2147483652, line = -1, prev = 0x7fffffffe2a8} parent_trx = 0x7ffff0fc1160 iter = {first = 0x0, second = {first = 4348004024, first_versioned = 0, static UNVERSIONED = 18446744073709551615}} trx = 0x7ffff0fc2290 name_len = 15 __PRETTY_FUNCTION__ = "int ha_innobase::delete_table(const char*, enum_sql_command)" dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ ls -la total 576 drwxr-xr-x 2 dan dan 180 May 8 20:45 . drwxr-xr-x 6 dan dan 280 May 8 20:46 .. -rw-r--r-- 1 dan dan 65 May 8 20:41 db.opt -rw-rw---- 1 dan dan 765 May 8 20:45 '#sql-shadow-3-t1.frm' -rw-rw---- 1 dan dan 44 May 8 20:45 '#sql-shadow-3-t1.par' -rw-rw---- 1 dan dan 689 May 8 20:45 t1.frm -rw-rw---- 1 dan dan 36 May 8 20:45 t1.par -rw-rw---- 1 dan dan 98304 May 8 20:45 t1#P#p0.ibd -rw-rw---- 1 dan dan 98304 May 8 20:45 t1#P#p10.ibd dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ hd db.opt 00000000 64 65 66 61 75 6c 74 2d 63 68 61 72 61 63 74 65 |default-characte| 00000010 72 2d 73 65 74 3d 6c 61 74 69 6e 31 0a 64 65 66 |r-set=latin1.def| 00000020 61 75 6c 74 2d 63 6f 6c 6c 61 74 69 6f 6e 3d 6c |ault-collation=l| 00000030 61 74 69 6e 31 5f 73 77 65 64 69 73 68 5f 63 69 |atin1_swedish_ci| 00000040 0a |.| 00000041 dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ hd t1.frm 00000000 fe 01 0a 14 1a 00 5e 00 01 00 b1 02 00 00 10 00 |......^.........| 00000010 46 00 00 00 00 00 00 00 00 00 00 02 08 00 09 00 |F...............| 00000020 00 05 00 00 00 00 08 00 00 00 00 00 00 00 00 10 |................| 00000030 00 00 00 97 88 01 00 b5 00 00 00 00 00 0c 00 00 |................| 00000040 00 10 07 1b cd 07 91 19 11 ea 9b 36 98 be 94 63 |...........6...c| 00000050 a5 7a 01 06 49 6e 6e 6f 44 42 69 01 00 00 00 00 |.z..InnoDBi.....| 00000060 00 00 02 00 ff 00 00 00 00 00 00 00 00 00 ff 00 |................| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000000b0 00 00 00 00 00 00 09 00 70 61 72 74 69 74 69 6f |........partitio| 000000c0 6e a2 00 00 00 20 50 41 52 54 49 54 49 4f 4e 20 |n.... PARTITION | 000000d0 42 59 20 4c 49 53 54 20 28 60 61 60 29 0a 28 50 |BY LIST (`a`).(P| 000000e0 41 52 54 49 54 49 4f 4e 20 60 70 30 60 20 56 41 |ARTITION `p0` VA| 000000f0 4c 55 45 53 20 49 4e 20 28 30 2c 31 2c 32 2c 33 |LUES IN (0,1,2,3| 00000100 2c 34 2c 35 2c 36 2c 37 2c 38 2c 39 29 20 45 4e |,4,5,6,7,8,9) EN| 00000110 47 49 4e 45 20 3d 20 49 6e 6e 6f 44 42 2c 0a 20 |GINE = InnoDB,. | 00000120 50 41 52 54 49 54 49 4f 4e 20 60 70 31 30 60 20 |PARTITION `p10` | 00000130 56 41 4c 55 45 53 20 49 4e 20 28 31 31 2c 31 32 |VALUES IN (11,12| 00000140 2c 31 33 2c 31 34 2c 31 35 2c 31 36 2c 31 37 2c |,13,14,15,16,17,| 00000150 31 38 2c 31 39 29 20 45 4e 47 49 4e 45 20 3d 20 |18,19) ENGINE = | 00000160 49 6e 6e 6f 44 42 29 00 00 48 01 48 01 00 00 00 |InnoDB)..H.H....| 00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000260 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 4b |...............K| 00000270 00 00 00 46 00 06 00 00 00 00 00 00 00 00 00 50 |...F...........P| 00000280 00 16 00 02 00 00 00 00 00 00 00 00 0b 00 02 00 |................| 00000290 00 1b 80 00 00 00 03 08 00 00 00 00 00 40 00 06 |.............@..| 000002a0 00 00 00 80 00 00 00 0f 08 00 00 ff 61 ff 62 ff |............a.b.| * 000002b1 dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ hd t1.par 00000000 07 00 00 00 4f 0c 00 70 02 00 00 00 0c 0c 00 00 |....O..p........| 00000010 07 00 00 00 70 30 00 70 31 30 00 00 00 00 00 00 |....p0.p10......| 00000020 00 00 00 00 |....| 00000024 dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ hd \#sql-shadow-3-t1.frm 00000000 fe 01 0a 14 1a 00 5e 00 01 00 fd 02 00 00 10 00 |......^.........| 00000010 46 00 00 00 00 00 00 00 00 00 00 02 08 00 09 00 |F...............| 00000020 00 05 00 00 00 00 08 00 00 00 00 00 00 00 00 10 |................| 00000030 00 00 00 97 88 01 00 01 01 00 00 00 00 0c 00 00 |................| 00000040 00 10 07 26 67 00 91 19 11 ea 9b 36 98 be 94 63 |...&g......6...c| 00000050 a5 7a 01 06 49 6e 6e 6f 44 42 b5 01 00 00 00 00 |.z..InnoDB......| 00000060 00 00 02 00 ff 00 00 00 00 00 00 00 00 00 ff 00 |................| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000000b0 00 00 00 00 00 00 09 00 70 61 72 74 69 74 69 6f |........partitio| 000000c0 6e ee 00 00 00 20 50 41 52 54 49 54 49 4f 4e 20 |n.... PARTITION | 000000d0 42 59 20 4c 49 53 54 20 28 60 61 60 29 0a 28 50 |BY LIST (`a`).(P| 000000e0 41 52 54 49 54 49 4f 4e 20 60 70 30 60 20 56 41 |ARTITION `p0` VA| 000000f0 4c 55 45 53 20 49 4e 20 28 30 2c 31 2c 32 2c 33 |LUES IN (0,1,2,3| 00000100 2c 34 2c 35 2c 36 2c 37 2c 38 2c 39 29 20 45 4e |,4,5,6,7,8,9) EN| 00000110 47 49 4e 45 20 3d 20 49 6e 6e 6f 44 42 2c 0a 20 |GINE = InnoDB,. | 00000120 50 41 52 54 49 54 49 4f 4e 20 60 70 31 30 60 20 |PARTITION `p10` | 00000130 56 41 4c 55 45 53 20 49 4e 20 28 31 31 2c 31 32 |VALUES IN (11,12| 00000140 2c 31 33 2c 31 34 2c 31 35 2c 31 36 2c 31 37 2c |,13,14,15,16,17,| 00000150 31 38 2c 31 39 29 20 45 4e 47 49 4e 45 20 3d 20 |18,19) ENGINE = | 00000160 49 6e 6e 6f 44 42 2c 0a 20 50 41 52 54 49 54 49 |InnoDB,. PARTITI| 00000170 4f 4e 20 60 70 32 30 60 20 56 41 4c 55 45 53 20 |ON `p20` VALUES | 00000180 49 4e 20 28 32 30 2c 32 31 2c 32 32 2c 32 33 2c |IN (20,21,22,23,| 00000190 32 34 2c 32 35 2c 32 36 2c 32 37 2c 32 38 2c 32 |24,25,26,27,28,2| 000001a0 39 29 20 45 4e 47 49 4e 45 20 3d 20 49 6e 6e 6f |9) ENGINE = Inno| 000001b0 44 42 29 00 00 48 01 48 01 00 00 00 00 00 00 00 |DB)..H.H........| 000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000002b0 00 00 00 00 00 00 00 02 00 00 00 4b 00 00 00 46 |...........K...F| 000002c0 00 06 00 00 00 00 00 00 00 00 00 50 00 16 00 02 |...........P....| 000002d0 00 00 00 00 00 00 00 00 0b 00 02 00 00 1b 80 00 |................| 000002e0 00 00 03 08 00 00 00 00 00 40 00 06 00 00 00 80 |.........@......| 000002f0 00 00 00 0f 08 00 00 ff 61 ff 62 ff 00 |........a.b..| 000002fd dan@fstn4-p1:~/build-mariadb-server-10.5-debug-gccO0/mysql-test/var/mysqld.1/data/test$ hd \#sql-shadow-3-t1.par 00000000 08 00 00 00 7f 3c 0c 00 03 00 00 00 0c 0c 0c 00 |.....<..........| 00000010 0b 00 00 00 70 30 00 70 31 30 00 70 32 30 00 00 |....p0.p10.p20..| 00000020 00 00 00 00 00 00 00 00 00 00 00 00 |............| 0000002c