[MDEV-6393] ANALYZE SELECT crashes in Explain_query::print_explain with a non-existing column Created: 2014-06-26  Updated: 2014-06-26  Resolved: 2014-06-26

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: N/A
Fix Version/s: 10.1.0

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-406 ANALYZE $stmt Closed

 Description   

create table t1 (i int);
analyze select a from t1;

#2  0x000000000086052d in handle_fatal_signal (sig=11) at 10.1/sql/signal_handler.cc:262
#3  <signal handler called>
#4  0x00000000007c15f2 in Explain_query::print_explain (this=0x0, output=0x7f0661822f08, explain_flags=0 '\000', is_analyze=true) at 10.1/sql/sql_explain.cc:159
#5  0x00000000007c158e in Explain_query::send_explain (this=0x0, thd=0x7f06777f7070) at 10.1/sql/sql_explain.cc:143
#6  0x000000000067bfed in execute_sqlcom_select (thd=0x7f06777f7070, all_tables=0x7f0661822280) at 10.1/sql/sql_parse.cc:5285
#7  0x0000000000674244 in mysql_execute_command (thd=0x7f06777f7070) at 10.1/sql/sql_parse.cc:2554
#8  0x000000000067e775 in mysql_parse (thd=0x7f06777f7070, rawbuf=0x7f0661822088 "analyze select a from t1", length=24, parser_state=0x7f068d7b2660) at 10.1/sql/sql_parse.cc:6433
#9  0x00000000006714e5 in dispatch_command (command=COM_QUERY, thd=0x7f06777f7070, packet=0x7f067259a071 "", packet_length=24) at 10.1/sql/sql_parse.cc:1309
#10 0x000000000067088a in do_command (thd=0x7f06777f7070) at 10.1/sql/sql_parse.cc:1006
#11 0x000000000078d399 in do_handle_one_connection (thd_arg=0x7f06777f7070) at 10.1/sql/sql_connect.cc:1379
#12 0x000000000078d0ec in handle_one_connection (arg=0x7f06777f7070) at 10.1/sql/sql_connect.cc:1293
#13 0x00007f068d3e7b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#14 0x00007f068b6bfa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

Stack trace from

commit b95ec135533b13e921aa8de1b9c769d47b2efe60
Author: Alexey Botchkov <holyfoot@montyprogram.com>
Date:   Thu Jun 26 11:37:24 2014 +0500


Generated at Thu Feb 08 07:11:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.