Details
-
Bug
-
Status: Stalled (View Workflow)
-
Critical
-
Resolution: Unresolved
-
10.6
-
None
Description
The assertion is similar to MDEV-35135 with slightly different stack, this issue occurs when using a non-MyISAM table.
--source include/have_innodb.inc
|
|
CREATE TABLE t (a INT) ENGINE=INNODB; |
SELECT SUM(a), ROWNUM() AS r FROM t HAVING r=1; |
|
# Cleanup
|
DROP TABLE t; |
Leads to:
CS 10.6.20 066f920484bb186774d65e243ca2763a4293d866 (Debug) |
mariadbd: /test/10.6_dbg/sql/item_cmpfunc.h:247: virtual longlong Item_bool_func::val_int(): Assertion `!is_cond()' failed.
|
CS 10.6.20 066f920484bb186774d65e243ca2763a4293d866 (Debug) |
Core was generated by `/test/MD291024-mariadb-10.6.20-linux-x86_64-dbg/bin/mariadbd --no-defaults --ma'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x14a28c0ae700 (LWP 3308164))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x000014a28c79b859 in __GI_abort () at abort.c:79
|
#2 0x000014a28c79b729 in __assert_fail_base (fmt=0x14a28c931588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5574f7509077 "!is_cond()", file=0x5574f752f740 "/test/10.6_dbg/sql/item_cmpfunc.h", line=247, function=<optimized out>) at assert.c:92
|
#3 0x000014a28c7acfd6 in __GI___assert_fail (assertion=assertion@entry=0x5574f7509077 "!is_cond()", file=file@entry=0x5574f752f740 "/test/10.6_dbg/sql/item_cmpfunc.h", line=line@entry=247, function=function@entry=0x5574f7534568 "virtual longlong Item_bool_func::val_int()") at assert.c:101
|
#4 0x00005574f68ba7f5 in Item_bool_func::val_int (this=0x14a24c014648) at /test/10.6_dbg/sql/item.h:1100
|
#5 0x00005574f6ba9813 in Item_int_func::val_str (this=0x14a24c014648, str=0x14a24c0176e8) at /test/10.6_dbg/sql/item_func.cc:773
|
#6 0x00005574f6b34ccc in Item_copy_string::copy (this=0x14a24c0176c0) at /test/10.6_dbg/sql/item.cc:5272
|
#7 0x00005574f689c226 in copy_fields (param=param@entry=0x14a24c015428) at /test/10.6_dbg/sql/sql_select.cc:27501
|
#8 0x00005574f68a48e9 in JOIN::clear (this=this@entry=0x14a24c015200, cleared_tables=cleared_tables@entry=0x14a28c0ac328) at /test/10.6_dbg/sql/sql_select.cc:28560
|
#9 0x00005574f68a4b8b in end_send_group (join=0x14a24c015200, join_tab=<optimized out>, end_of_records=<optimized out>) at /test/10.6_dbg/sql/sql_select.cc:23820
|
#10 0x00005574f6885554 in sub_select (join=0x14a24c015200, join_tab=0x14a24c016740, end_of_records=<optimized out>) at /test/10.6_dbg/sql/sql_select.cc:22323
|
#11 0x00005574f68b9581 in do_select (procedure=<optimized out>, join=0x14a24c015200) at /test/10.6_dbg/sql/sql_select.cc:21908
|
#12 JOIN::exec_inner (this=this@entry=0x14a24c015200) at /test/10.6_dbg/sql/sql_select.cc:4936
|
#13 0x00005574f68b9a6a in JOIN::exec (this=this@entry=0x14a24c015200) at /test/10.6_dbg/sql/sql_select.cc:4714
|
#14 0x00005574f68b79f1 in mysql_select (thd=thd@entry=0x14a24c000d48, tables=0x14a24c013da8, fields=@0x14a24c013710: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x14a24c013c50, last = 0x14a24c013d50, elements = 2}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x14a24c014648, proc_param=0x0, select_options=2147748608, result=0x14a24c0151d8, unit=0x14a24c005138, select_lex=0x14a24c013450) at /test/10.6_dbg/sql/sql_select.cc:5193
|
#15 0x00005574f68b81f2 in handle_select (thd=thd@entry=0x14a24c000d48, lex=lex@entry=0x14a24c005070, result=result@entry=0x14a24c0151d8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.6_dbg/sql/sql_select.cc:573
|
#16 0x00005574f68306c7 in execute_sqlcom_select (thd=thd@entry=0x14a24c000d48, all_tables=0x14a24c013da8) at /test/10.6_dbg/sql/sql_parse.cc:6408
|
#17 0x00005574f683d342 in mysql_execute_command (thd=thd@entry=0x14a24c000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:4000
|
#18 0x00005574f6829911 in mysql_parse (thd=thd@entry=0x14a24c000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14a28c0ad300) at /test/10.6_dbg/sql/sql_parse.cc:8193
|
#19 0x00005574f6838536 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a24c000d48, packet=packet@entry=0x14a24c00afe9 "", packet_length=packet_length@entry=48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1419
|
#20 0x00005574f683aed2 in do_command (thd=0x14a24c000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1422
|
#21 0x00005574f69970c2 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5574f9773638, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1417
|
#22 0x00005574f699767f in handle_one_connection (arg=arg@entry=0x5574f9773638) at /test/10.6_dbg/sql/sql_connect.cc:1319
|
#23 0x00005574f6e19558 in pfs_spawn_thread (arg=0x5574f9761548) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#24 0x000014a28ccc7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#25 0x000014a28c898133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.6.20 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.27 (dbg), 10.5.27 (opt), 10.6.20 (opt), 10.11.10 (dbg), 10.11.10 (opt), 11.2.6 (dbg), 11.2.6 (opt), 11.4.4 (dbg), 11.4.4 (opt), 11.6.2 (dbg), 11.6.2 (opt), 11.7.0 (dbg), 11.7.0 (opt)
Attachments
Issue Links
- is caused by
-
MDEV-34123 CONCAT Function Returns Unexpected Empty Set in Query
- Closed
- relates to
-
MDEV-35135 Assertion `!is_cond()' failed in Item_bool_func::val_int / do_select
- Closed