Bug #107207 | Assertion Failure buf0buf.cc:4318:page_size.equals_to(space_page_size) | ||
---|---|---|---|
Submitted: | 4 May 2022 9:42 | Modified: | 4 May 2022 10:26 |
Reporter: | Mohit Joshi | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S6 (Debug Builds) |
Version: | 8.0.25, 8.0.29 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 May 2022 9:42]
Mohit Joshi
[4 May 2022 9:43]
Mohit Joshi
MTR testcase
Attachment: crash_bug.test (application/octet-stream, text), 17.57 KiB.
[4 May 2022 9:43]
Mohit Joshi
opt file
Attachment: crash_bug-master.opt (application/octet-stream, text), 123 bytes.
[4 May 2022 10:26]
MySQL Verification Team
Hello Mohit, Thank you for the report and test case. Observed that 8.0.29 debug build is affected. regards, Umesh
[4 May 2022 10:27]
MySQL Verification Team
- 8.0.29 debug build rm -rf 107207/ rm -rf keyring/ mkdir keyring bin/mysqld-debug --initialize-insecure --basedir=$PWD --datadir=$PWD/107207 --log-error-verbosity=3 bin/mysqld-debug --no-defaults --basedir=$PWD --datadir=$PWD/107207 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=$PWD/107207/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv=/tmp/ --plugin-dir=$PWD/lib/plugin/debug/ --early-plugin-load='keyring_file.so' --keyring_file_data=$PWD/keyring/keyring 2>&1 & bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.29-debug MySQL Community Server - GPL - Debug Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database test; Query OK, 1 row affected (0.00 sec) mysql> \q ^[[ABye [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.29]$ bin/mysql -uroot -S /tmp/mysql_ushastry.sock test < mysql-test/t/crash_bug.test Table Op Msg_type Msg_text test.tt_4 analyze status OK ERROR 2013 (HY000) at line 211: Lost connection to MySQL server during query [1]+ Aborted (core dumped) bin/mysqld-debug --no-defaults --basedir=$PWD --datadir=$PWD/107207 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=$PWD/107207/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv=/tmp/ --plugin-dir=$PWD/lib/plugin/debug/ --early-plugin-load='keyring_file.so' --keyring_file_data=$PWD/keyring/keyring 2>&1 (gdb) bt #0 0x00007fab70f14aa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000004795d5b in my_write_core(int) () #2 0x00000000033e3406 in handle_fatal_signal () #3 <signal handler called> #4 0x00007fab6f151387 in raise () from /lib64/libc.so.6 #5 0x00007fab6f152a78 in abort () from /lib64/libc.so.6 #6 0x00000000033e357b in my_server_abort() () #7 0x000000000478cfec in my_abort() () #8 0x0000000004c080b4 in ut_dbg_assertion_failed(char const*, char const*, unsigned long) () #9 0x0000000004cabcfa in buf_page_get_gen(page_id_t const&, page_size_t const&, unsigned long, buf_block_t*, Page_fetch, ut::Location, mtr_t*, bool) () #10 0x0000000004c964c4 in btr_search_drop_page_hash_when_freed(page_id_t const&, page_size_t const&) () #11 0x0000000004c96858 in btr_drop_next_batch(page_size_t const&, dict_index_t const**, dict_index_t const**) () #12 0x0000000004c96a85 in btr_drop_ahi_for_table(dict_table_t*) () #13 0x0000000004adbfd4 in row_drop_table_from_cache(dict_table_t*, trx_t*) () #14 0x0000000004add138 in row_drop_table_for_mysql(char const*, trx_t*, bool, dict_table_t*) () #15 0x0000000004903d60 in int innobase_basic_ddl::delete_impl<dd::Table>(THD*, char const*, dd::Table const*, TABLE const*) () #16 0x00000000048de866 in ha_innobase::delete_table(char const*, dd::Table const*) () #17 0x000000000357c9e7 in handler::ha_delete_table(char const*, dd::Table const*) () #18 0x00000000035743b3 in ha_delete_table(THD*, handlerton*, char const*, char const*, char const*, dd::Table const*, bool) () #19 0x00000000032aa9dd in drop_base_table(THD*, Drop_tables_ctx const&, TABLE_LIST*, bool, std::set<handlerton*, std::less<handlerton*>, std::allocator<handlerton*> >*, Foreign_key_parents_invalidator*, std::vector<MDL_ticket*, std::allocator<MDL_ticket*> >*, MEM_ROOT*) () #20 0x00000000032abb2b in mysql_rm_table_no_locks(THD*, TABLE_LIST*, bool, bool, bool, bool*, std::set<handlerton*, std::less<handlerton*>, std::allocator<handlerton*> >*, Foreign_key_parents_invalidator*, std::vector<MDL_ticket*, std::allocator<MDL_ticket*> >*) () #21 0x00000000032a7b11 in mysql_rm_table(THD*, TABLE_LIST*, bool, bool) () #22 0x00000000031f1f53 in mysql_execute_command(THD*, bool) () #23 0x00000000031f721b in dispatch_sql_command(THD*, Parser_state*) () #24 0x00000000031ed4c2 in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #25 0x00000000031eb4a2 in do_command(THD*) () #26 0x00000000033cdc5f in handle_connection () #27 0x000000000501c1cb in pfs_spawn_thread () #28 0x00007fab70f0fea5 in start_thread () from /lib64/libpthread.so.0 #29 0x00007fab6f219b0d in clone () from /lib64/libc.so.6 (gdb)
[16 Jun 2022 9:55]
Rahul Malik
Drop AHI during drop tablespace (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug#107207.patch (application/octet-stream, text), 71.40 KiB.
[16 Jun 2022 16:02]
OCA Admin
Contribution submitted via Github - PS-107207 Assertion Failure buf0buf.cc:4318:page_size.equals_to(spaceā¦ (*) Contribution by Rahul Malik (Github rahulmalik87, mysql-server/pull/412#issuecomment-1157718840): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: git_patch_969121117.txt (text/plain), 71.77 KiB.