Bug #111448 | MySQL Server encounters Assertion Failure when executing query | ||
---|---|---|---|
Submitted: | 15 Jun 2023 20:37 | Modified: | 16 Jun 2023 5:47 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S6 (Debug Builds) |
Version: | 8.0.33 | OS: | Ubuntu (20.04 LTS) |
Assigned to: | CPU Architecture: | x86 (Intel(R) Core(TM) i7-10700 CPU) |
[15 Jun 2023 20:37]
Yu Liang
[16 Jun 2023 5:47]
MySQL Verification Team
Hello Yu Liang, Thank you for the report and test case. Observed that 8.0.33 debug build is affected. regards, Umesh
[16 Jun 2023 5:50]
MySQL Verification Team
-- release build - not affected ./mtr bug111448 --nocheck-testcases Logging: ./mtr bug111448 --nocheck-testcases MySQL Version 8.0.33 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ STOP SLAVE ; Warnings: Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead Note 3084 Replication thread(s) for channel '' are already stopped. RESET SLAVE , SLAVE , SLAVE ALL , MASTER TO 100 ; Warnings: Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead CHANGE MASTER TO MASTER_HOST = 'abc' , RELAY_LOG_POS = 100 FOR CHANNEL 'abc' ; Warnings: Warning 1287 'CHANGE MASTER' is deprecated and will be removed in a future release. Please use CHANGE REPLICATION SOURCE instead Warning 1287 'MASTER_HOST' is deprecated and will be removed in a future release. Please use SOURCE_HOST instead START SLAVE UNTIL SQL_AFTER_MTS_GAPS FOR CHANNEL 'abc' ; Warnings: Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead [ 50%] main.bug111448 [ fail ] Found warnings/errors in error log file! Test ended at 2023-06-16 07:45:55 include/load_error_log.inc line 2023-06-16T05:45:55.564627Z 9 [ERROR] [MY-013117] [Repl] Replica I/O for channel 'abc': Fatal error: Invalid (empty) username when attempting to connect to the source server. Connection attempt terminated. Error_code: MY-013117 ^ Found warnings in /export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var/log/mysqld.1.err ok - the logfile can be found in '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var/log/main.bug111448/bug111448.log' [100%] shutdown_report [ pass ] -- debug build - affected ./mtr bug111448 --nocheck-testcases --debug-server Logging: ./mtr bug111448 --nocheck-testcases --debug-server MySQL Version 8.0.33 Checking supported features - Binaries are debug compiled Using 'all' suites Collecting tests Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ STOP SLAVE ; Warnings: Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead Note 3084 Replication thread(s) for channel '' are already stopped. RESET SLAVE , SLAVE , SLAVE ALL , MASTER TO 100 ; Warnings: Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead CHANGE MASTER TO MASTER_HOST = 'abc' , RELAY_LOG_POS = 100 FOR CHANNEL 'abc' ; Warnings: Warning 1287 'CHANGE MASTER' is deprecated and will be removed in a future release. Please use CHANGE REPLICATION SOURCE instead Warning 1287 'MASTER_HOST' is deprecated and will be removed in a future release. Please use SOURCE_HOST instead START SLAVE UNTIL SQL_AFTER_MTS_GAPS FOR CHANNEL 'abc' ; Warnings: Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead [ 50%] main.bug111448 [ fail ] -bt #0 0x00007f4b48b0d644 in __io_getevents_0_4 () from /lib64/libaio.so.1 #1 0x00000000040f9f50 in LinuxAIOHandler::collect() () #2 0x00000000040fa3e6 in LinuxAIOHandler::poll(fil_node_t**, void**, IORequest*) () #3 0x00000000040fa4be in os_aio_linux_handler(unsigned long, fil_node_t**, void**, IORequest*) () #4 0x00000000040fc972 in os_aio_handler(unsigned long, fil_node_t**, void**, IORequest*) () #5 0x00000000043a8119 in fil_aio_wait(unsigned long) () #6 0x00000000040f9d89 in io_handler_thread(unsigned long) () #7 0x000000000410053e in void std::__invoke_impl<void, void (*&)(unsigned long), unsigned long&>(std::__invoke_other, void (*&)(unsigned long), unsigned long&) () #8 0x000000000410056b in std::__invoke_result<void (*&)(unsigned long), unsigned long&>::type std::__invoke<void (*&)(unsigned long), unsigned long&>(void (*&)(unsigned long), unsigned long&) () #9 0x000000000410109e in void std::_Bind<void (*(unsigned long))(unsigned long)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) () #10 0x00000000041010b9 in void std::_Bind<void (*(unsigned long))(unsigned long)>::operator()<, void>() () #11 0x0000000004101148 in void Detached_thread::operator()<void (*)(unsigned long), unsigned long>(void (*&&)(unsigned long), unsigned long&&) () #12 0x00000000041011be in void std::__invoke_impl<void, Detached_thread, void (*)(unsigned long), unsigned long>(std::__invoke_other, Detached_thread&&, void (*&&)(unsigned long), unsigned long&&) () #13 0x0000000004101208 in std::__invoke_result<Detached_thread, void (*)(unsigned long), unsigned long>::type std::__invoke<Detached_thread, void (*)(unsigned long), unsigned long>(Detached_thread&&, void (*&&)(unsigned long), unsigned long&&) () #14 0x000000000410177b in decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)(), (_S_declval<2ul>)())) std::thread::_Invoker<std::tuple<Detached_thread, void (*)(unsigned long), unsigned long> >::_M_invoke<0ul, 1ul, 2ul>(std::_Index_tuple<0ul, 1ul, 2ul>) () #15 0x000000000410178f in std::thread::_Invoker<std::tuple<Detached_thread, void (*)(unsigned long), unsigned long> >::operator()() () #16 0x000000000410179f in std::thread::_State_impl<std::thread::_Invoker<std::tuple<Detached_thread, void (*)(unsigned long), unsigned long> > >::_M_run() () #17 0x0000000004a944bf in execute_native_thread_routine () #18 0x00007f4b49906ea5 in start_thread () from /lib64/libpthread.so.0 #19 0x00007f4b47c0db2d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f4b041f5700 (LWP 4527)): #0 0x00007f4b4990baa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000003f9296e in my_write_core(int) () #2 0x00000000032365f5 in handle_fatal_signal () #3 <signal handler called> #4 0x00007f4b47b45387 in raise () from /lib64/libc.so.6 #5 0x00007f4b47b46a78 in abort () from /lib64/libc.so.6 #6 0x00007f4b47b3e1a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f4b47b3e252 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003d80d97 in Rpl_applier_reader::debug_print_next_event_positions() () #9 0x0000000003d810c8 in Rpl_applier_reader::open(char const**) () #10 0x0000000003d7006b in handle_slave_sql () #11 0x0000000004743af9 in pfs_spawn_thread () #12 0x00007f4b49906ea5 in start_thread () from /lib64/libpthread.so.0 #13 0x00007f4b47c0db2d in clone () from /lib64/libc.so.6