Bug #100661 | DBUG_ASSERT(item->fixed) raise an exception in delete_unused_merged_columns() | ||
---|---|---|---|
Submitted: | 27 Aug 2020 12:15 | Modified: | 7 Sep 2020 8:23 |
Reporter: | Hope Lee (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 8.0.20, 8.0.21 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[27 Aug 2020 12:15]
Hope Lee
[27 Aug 2020 12:19]
MySQL Verification Team
Hello Lee, Thank you for the report and test case. Observed that 8.0.21 debug build is affected. regards, Umesh
[27 Aug 2020 12:21]
MySQL Verification Team
- 8.0.21 rm -rf 100640/ bin/mysqld-debug --initialize-insecure --basedir=$PWD --datadir=$PWD/100640 --log-error-verbosity=3 bin/mysqld-debug --no-defaults --basedir=$PWD --datadir=$PWD/100640 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=$PWD/100640/log.err --mysqlx=0 --log-error-verbosity=3 --secure-file-priv="" --performance-schema=ON --performance-schema-instrument='memory/%=ON' 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.21-debug MySQL Community Server - GPL - Debug Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. 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> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> SELECT 1 FROM (SELECT (SELECT 1 FROM t1 ) AS layer_0_column_0 FROM t1 WHERE 25 IN (1, 2, 3) ) AS layer_1_left_tb RIGHT JOIN t1 AS layer_1_right_tb ON layer_1_right_tb.a = layer_1_left_tb.layer_0_column_0; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> \q Bye [1]+ Aborted (core dumped) bin/mysqld-debug --no-defaults --basedir=$PWD --datadir=$PWD/100640 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=$PWD/100640/log.err --mysqlx=0 --log-error-verbosity=3 --secure-file-priv="" --performance-schema=ON --performance-schema-instrument='memory/%=ON' 2>&1 - (gdb) bt #0 0x00007f169a62c771 in pthread_kill () from /lib64/libpthread.so.0 #1 0x00000000045cfac3 in my_write_core (sig=6) at ../../mysql-8.0.21/mysys/stacktrace.cc:308 #2 0x00000000032bc308 in handle_fatal_signal (sig=6) at ../../mysql-8.0.21/sql/signal_handler.cc:171 #3 <signal handler called> #4 0x00007f16986535d7 in raise () from /lib64/libc.so.6 #5 0x00007f1698654cc8 in abort () from /lib64/libc.so.6 #6 0x00007f169864c546 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f169864c5f2 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003142afa in SELECT_LEX::delete_unused_merged_columns (this=0x7f15e80fa238, tables=0x7f15e8109c58) at ../../mysql-8.0.21/sql/sql_resolver.cc:4925 #9 0x0000000003142c78 in SELECT_LEX::delete_unused_merged_columns (this=0x7f15e80fa238, tables=0x7f15e80fa470) at ../../mysql-8.0.21/sql/sql_resolver.cc:4951 #10 0x00000000031374f6 in SELECT_LEX::apply_local_transforms (this=0x7f15e80fa238, thd=0x7f15e8000ca0, prune=true) at ../../mysql-8.0.21/sql/sql_resolver.cc:676 #11 0x0000000003136ec5 in SELECT_LEX::prepare (this=0x7f15e80fa238, thd=0x7f15e8000ca0) at ../../mysql-8.0.21/sql/sql_resolver.cc:529 #12 0x000000000315f0bf in Sql_cmd_select::prepare_inner (this=0x7f15e810a408, thd=0x7f15e8000ca0) at ../../mysql-8.0.21/sql/sql_select.cc:594 #13 0x000000000315ea17 in Sql_cmd_dml::prepare (this=0x7f15e810a408, thd=0x7f15e8000ca0) at ../../mysql-8.0.21/sql/sql_select.cc:477 #14 0x000000000315f26d in Sql_cmd_dml::execute (this=0x7f15e810a408, thd=0x7f15e8000ca0) at ../../mysql-8.0.21/sql/sql_select.cc:662 #15 0x00000000030e76e8 in mysql_execute_command (thd=0x7f15e8000ca0, first_level=true) at ../../mysql-8.0.21/sql/sql_parse.cc:4573 #16 0x00000000030ea112 in mysql_parse (thd=0x7f15e8000ca0, parser_state=0x7f168a779c60) at ../../mysql-8.0.21/sql/sql_parse.cc:5393 #17 0x00000000030df1aa in dispatch_command (thd=0x7f15e8000ca0, com_data=0x7f168a77ad10, command=COM_QUERY) at ../../mysql-8.0.21/sql/sql_parse.cc:1810 #18 0x00000000030dd6ec in do_command (thd=0x7f15e8000ca0) at ../../mysql-8.0.21/sql/sql_parse.cc:1294 #19 0x00000000032a70c7 in handle_connection (arg=0xb2a4e70) at ../../mysql-8.0.21/sql/conn_handler/connection_handler_per_thread.cc:302 #20 0x0000000004dcd772 in pfs_spawn_thread (arg=0xb2b4a10) at ../../../mysql-8.0.21/storage/perfschema/pfs.cc:2880 #21 0x00007f169a627df5 in start_thread () from /lib64/libpthread.so.0 #22 0x00007f169871460d in clone () from /lib64/libc.so.6 (gdb)
[7 Sep 2020 8:23]
Erlend Dahl
Already fixed in the upcoming 8.0.22 release.