[MDEV-15316] Assertion `(thd->lex)->var_list.is_empty()' failed in MYSQLparse Created: 2018-02-14  Updated: 2018-03-27  Resolved: 2018-03-27

Status: Closed
Project: MariaDB Server
Component/s: Parser, Server
Affects Version/s: 10.3
Fix Version/s: 10.3.6

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-15615 Unexpected syntax error instead of "U... Closed
relates to MDEV-15620 Crash when using "SET @@NEW.a=expr" i... Closed
Sprint: 10.3.6-1

 Description   

SET GLOBAL mc.key_cache_age_threshold = 100, mc.key_cache_block_size = 1024;

10.3 ba125eca551

mysqld: /data/src/10.3/sql/sql_yacc.yy:15921: int MYSQLparse(THD*): Assertion `(thd->lex)->var_list.is_empty()' failed.
180214 17:39:08 [ERROR] mysqld got signal 6 ;
 
#7  0x00007fa769f48ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00005602451abfc8 in MYSQLparse (thd=0x7fa754000b00) at /data/src/10.3/sql/sql_yacc.yy:15921
#9  0x0000560244f6a81d in parse_sql (thd=0x7fa754000b00, parser_state=0x7fa7641b75e0, creation_ctx=0x0, do_pfs_digest=true) at /data/src/10.3/sql/sql_parse.cc:10008
#10 0x0000560244f65ac5 in mysql_parse (thd=0x7fa754000b00, rawbuf=0x7fa754014db0 "SET GLOBAL mc.key_cache_age_threshold = 100, mc.key_cache_block_size = 1024", length=75, parser_state=0x7fa7641b75e0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7930
#11 0x0000560244f5349f in dispatch_command (command=COM_QUERY, thd=0x7fa754000b00, packet=0x7fa75400b171 "SET GLOBAL mc.key_cache_age_threshold = 100, mc.key_cache_block_size = 1024", packet_length=75, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1825
#12 0x0000560244f51ede in do_command (thd=0x7fa754000b00) at /data/src/10.3/sql/sql_parse.cc:1370
#13 0x00005602450b9e27 in do_handle_one_connection (connect=0x560247dfa540) at /data/src/10.3/sql/sql_connect.cc:1402
#14 0x00005602450b9bb4 in handle_one_connection (arg=0x560247dfa540) at /data/src/10.3/sql/sql_connect.cc:1308
#15 0x0000560245557aab in pfs_spawn_thread (arg=0x560247e5db90) at /data/src/10.3/storage/perfschema/pfs.cc:1862
#16 0x00007fa76bc1f494 in start_thread (arg=0x7fa7641b8700) at pthread_create.c:333
#17 0x00007fa76a00593f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Also reproducible on bb-10.2-ext.
Not reproducible on 10.2.


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