Bug #75688 | Assertion `!first_qep_tab->table()->no_keyread' failed. | ||
---|---|---|---|
Submitted: | 30 Jan 2015 4:04 | Modified: | 23 Feb 2015 15:50 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S6 (Debug Builds) |
Version: | 5.7.5-m15, 5.7.6 | OS: | Any |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
[30 Jan 2015 4:04]
Roel Van de Paar
[30 Jan 2015 4:05]
Roel Van de Paar
As described above
Attachment: 1422580718_bug_bundle.tar.gz (application/gzip, text), 93.32 KiB.
[30 Jan 2015 4:49]
MySQL Verification Team
Hello Roel, Thank you for the bug report and test case. Observed that 5.7.6 debug build is affected. Thanks, Umesh
[30 Jan 2015 4:51]
MySQL Verification Team
// 5.7.6 debug build affected bin/mysql_install_db --basedir=/export/umesh/mysql-5.7.6 --datadir=/export/umesh/mysql-5.7.6/75684 -v bin/mysqld --basedir=/export/umesh/mysql-5.7.6 --datadir=/export/umesh/mysql-5.7.6/75684 --core-file --socket=/tmp/mysql_ushastry.sock --port=15000 --log-error=/export/umesh/mysql-5.7.6/75684/log.err 2>&1 & // Build used commit: 348792f557bf6d66fc8e794b938c4bb9b917fa5e date: 2015-01-28 16:35:09 +0100 build-date: 2015-01-28 17:07:08 +0100 short: 348792f branch: mysql-trunk MySQL source 5.7.6 2015-01-30T04:45:52.384294Z 0 [Note] bin/mysqld-debug: ready for connections. Version: '5.7.6-m16-enterprise-commercial-advanced-debug' socket: '/tmp/mysql_ushastry.sock' port: 15000 MySQL Enterprise Server - Advanced Edition Debug (Commercial) mysqld-debug: /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_optimizer.cc:858: int JOIN::replace_index_subquery(): Assertion `!first_qep_tab->table()->no_keyre ad' failed. 04:46:13 UTC - mysqld got signal 6 ; (gdb) bt #0 0x00007f484e2c6771 in pthread_kill () from /lib64/libpthread.so.0 #1 0x00000000012bc5f8 in my_write_core (sig=6) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/mysys/stacktrace.c:247 #2 0x0000000000b3254e in handle_fatal_signal (sig=6) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/signal_handler.cc:220 #3 <signal handler called> #4 0x00007f484cecc5c9 in raise () from /lib64/libc.so.6 #5 0x00007f484cecdcd8 in abort () from /lib64/libc.so.6 #6 0x00007f484cec5536 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f484cec55e2 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000000fb63e0 in JOIN::replace_index_subquery (this=0x7f47d4027af0) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_optimizer.cc:858 #9 0x0000000000fb500a in JOIN::optimize (this=0x7f47d4027af0) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_optimizer.cc:514 #10 0x000000000101787c in st_select_lex::optimize (this=0x7f47d4006758, thd=0x7f47d4000c00) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_select.cc:995 #11 0x00000000010710dc in st_select_lex_unit::optimize (this=0x7f47d4006a20, thd=0x7f47d4000c00) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_union.cc:658 #12 0x00000000010178d8 in st_select_lex::optimize (this=0x7f47d4005540, thd=0x7f47d4000c00) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_select.cc:1001 #13 0x0000000001015fc5 in handle_query (thd=0x7f47d4000c00, lex=0x7f47d4002e18, result=0x7f47d40072d0, added_options=0, removed_options=0) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_select.cc:160 #14 0x0000000000fdf467 in execute_sqlcom_select (thd=0x7f47d4000c00, all_tables=0x7f47d4026068) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_parse.cc:4944 #15 0x0000000000fd814e in mysql_execute_command (thd=0x7f47d4000c00) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_parse.cc:2447 #16 0x0000000000fe03eb in mysql_parse (thd=0x7f47d4000c00, parser_state=0x7f4838db0e50) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_parse.cc:5356 #17 0x0000000000fd517b in dispatch_command (command=COM_QUERY, thd=0x7f47d4000c00, packet=0x7f47d4009b91 "SELECT a IN(SELECT a FROM t1)FROM t1", packet_length=36) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_parse.cc:1203 #18 0x0000000000fd3eca in do_command (thd=0x7f47d4000c00) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/sql_parse.cc:789 #19 0x00000000010df974 in handle_connection (arg=0x3c34d50) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/sql/conn_handler/connection_handler_per_thread.cc:298 #20 0x0000000001348de3 in pfs_spawn_thread (arg=0x3caaf60) at /export/home/pb2/build/sb_0-14236670-1422462446.39/mysqlcom-pro-5.7.6-m16/storage/perfschema/pfs.cc:2137 #21 0x00007f484e2c1df3 in start_thread () from /lib64/libpthread.so.0 #22 0x00007f484cf8d47d in clone () from /lib64/libc.so.6
[4 Feb 2015 15:55]
Tor Didriksen
Posted by developer: Duplicate of internal bug Bug#20261601 ASSERTION FAILED: !FIRST_QEP_TAB->TABLE()->NO_KEYREAD Added testcase from this bug as well.
[4 Feb 2015 19:32]
Roel Van de Paar
Thanks Tor
[23 Feb 2015 15:50]
Paul DuBois
Noted in 5.7.6 changelog. For some full-text queries, incomplete optimizer cleanup regarding index use could affect subsequent queries against the same table.