[MDEV-19363]  Assertion `select_lex' failed in LEX::pop_select Created: 2019-04-30  Updated: 2019-05-02  Resolved: 2019-05-02

Status: Closed
Project: MariaDB Server
Component/s: Parser
Affects Version/s: 10.4
Fix Version/s: 10.4.5

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Igor Babaev
Resolution: Fixed Votes: 0
Labels: None


 Description   

CREATE TABLE t1 (pk int);
INSERT INTO t1 VALUES (1),(2),(3);
 
((SELECT *  FROM t1 ORDER BY pk) LIMIT 5) UNION (SELECT * FROM t1);

10.4 77109285f918a6b07

mysqld: /10.4/sql/sql_lex.h:3612: SELECT_LEX* LEX::pop_select(): Assertion `select_lex' failed.
190430 11:02:24 [ERROR] mysqld got signal 6 ;
 
linux/raise.c:54(__GI_raise)[0x7f962dee2428]
stdlib/abort.c:91(__GI_abort)[0x7f962dee402a]
assert/assert.c:92(__assert_fail_base)[0x7f962dedabd7]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7f962dedac82]
sql/sql_lex.h:3614(LEX::pop_select())[0x55704cf43870]
sql/sql_lex.cc:9300(LEX::parsed_body_unit_tail(st_select_lex_unit*, Lex_order_limit_lock*))[0x55704cf31efc]
sql/sql_yacc.yy:9309(MYSQLparse(THD*))[0x55704d5258ca]
sql/sql_parse.cc:10177(parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool))[0x55704cf98e3d]
sql/sql_parse.cc:8102(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55704cf8c436]
sql/sql_parse.cc:1830(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55704cf65550]
sql/sql_parse.cc:1361(do_command(THD*))[0x55704cf6248f]
sql/sql_connect.cc:1398(do_handle_one_connection(CONNECT*))[0x55704d2d6091]
sql/sql_connect.cc:1302(handle_one_connection)[0x55704d2d5a5b]
perfschema/pfs.cc:1864(pfs_spawn_thread)[0x55704e674f27]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f962ed236ba]
x86_64/clone.S:111(clone)[0x7f962dfb441d]



 Comments   
Comment by Igor Babaev [ 2019-05-02 ]

A fix for this bug was pushed into 10.4

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