Bug #111406 | MySQL Server encounters Assertion Failure when executing query | ||
---|---|---|---|
Submitted: | 13 Jun 2023 19:08 | Modified: | 14 Jun 2023 5:21 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | 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) |
[13 Jun 2023 19:08]
Yu Liang
[14 Jun 2023 5:21]
MySQL Verification Team
Hello Yu Liang, Thank you for the report and test case. Observed that 8.0.33 only debug build is affected. regards, Umesh
[14 Jun 2023 5:22]
MySQL Verification Team
-- release build ./mtr bug111406 --nocheck-testcases Logging: ./mtr bug111406 --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 ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; create table v0(c1 INT); CREATE TABLE v2 ( PRIMARY KEY i3 ( c1 ) ) TABLE v0 ; UPDATE ( v2 NATURAL LEFT JOIN v0 ) SET c1 = DEFAULT ORDER BY c1 ; [ 50%] main.bug111406 [ pass ] 10 [100%] shutdown_report [ pass ] -- debug build - affected ./mtr bug111406 --nocheck-testcases --debug-server Logging: ./mtr bug111406 --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 ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; create table v0(c1 INT); CREATE TABLE v2 ( PRIMARY KEY i3 ( c1 ) ) TABLE v0 ; UPDATE ( v2 NATURAL LEFT JOIN v0 ) SET c1 = DEFAULT ORDER BY c1 ; [ 50%] main.bug111406 [ fail ] Test ended at 2023-06-14 07:20:22 CURRENT_TEST: main.bug111406 mysqltest: At line 6: Query 'UPDATE ( v2 NATURAL LEFT JOIN v0 ) SET c1 = DEFAULT ORDER BY c1 ' failed. ERROR 2013 (HY000): Lost connection to MySQL server during query #0 0x00007f15707bdaa1 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 0x00007f156e9f7387 in raise () from /lib64/libc.so.6 #5 0x00007f156e9f8a78 in abort () from /lib64/libc.so.6 #6 0x00007f156e9f01a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f156e9f0252 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003193a28 in safe_update_on_fly(QEP_TAB const*, Table_ref const*, Table_ref*) () #9 0x0000000003193ab7 in GetImmediateUpdateTable(JOIN const*, bool) () #10 0x00000000030735d7 in JOIN::attach_access_path_for_update_or_delete(AccessPath*) () #11 0x000000000307ec19 in JOIN::create_access_paths() () #12 0x00000000030b537e in JOIN::optimize(bool) () #13 0x000000000311a4b1 in Query_block::optimize(THD*, bool) () #14 0x000000000319107f in Query_expression::optimize(THD*, TABLE*, bool, bool) () #15 0x000000000311a0d5 in Sql_cmd_dml::execute_inner(THD*) () #16 0x000000000319b363 in Sql_cmd_update::execute_inner(THD*) () #17 0x0000000003123873 in Sql_cmd_dml::execute(THD*) () #18 0x00000000030c24af in mysql_execute_command(THD*, bool) () #19 0x00000000030c5dc9 in dispatch_sql_command(THD*, Parser_state*) () #20 0x00000000030c752b in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #21 0x00000000030c926e in do_command(THD*) () #22 0x0000000003227bb7 in handle_connection () #23 0x0000000004743af9 in pfs_spawn_thread () #24 0x00007f15707b8ea5 in start_thread () from /lib64/libpthread.so.0 #25 0x00007f156eabfb2d in clone () from /lib64/libc.so.6