Core was generated by `/test/MD050621-mariadb-10.6.2-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
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 0x150d540a1700 (LWP 38388))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000150d56062859 in __GI_abort () at abort.c:79
|
#2 0x0000150d56062729 in __assert_fail_base (fmt=0x150d561f8588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556804265174 "marked_for_read()", file=0x556804264f5b "/test/10.6_dbg/sql/field.cc", line=7470, function=<optimized out>) at assert.c:92
|
#3 0x0000150d56073f36 in __GI___assert_fail (assertion=assertion@entry=0x556804265174 "marked_for_read()", file=file@entry=0x556804264f5b "/test/10.6_dbg/sql/field.cc", line=line@entry=7470, function=function@entry=0x556804266ec0 "virtual String* Field_string::val_str(String*, String*)") at assert.c:101
|
#4 0x00005568036e34bc in Field_string::val_str (this=0x150d1002b0b8, val_buffer=<optimized out>, val_ptr=0x150d1004f198) at /test/10.6_dbg/sql/field.cc:7470
|
#5 0x000055680372e9e2 in Item_field::val_str (this=0x150d1004f170, str=0x150d5409ed10) at /test/10.6_dbg/sql/item.cc:3277
|
#6 0x000055680373b025 in Item::print_value (this=0x150d1004f170, str=0x150d5409f370) at /test/10.6_dbg/sql/item.cc:526
|
#7 0x000055680373b3b1 in Item_field::print (this=<optimized out>, str=<optimized out>, query_type=<optimized out>) at /test/10.6_dbg/sql/item.cc:7713
|
#8 0x000055680373ade0 in Item::print_parenthesised (this=this@entry=0x150d1004f170, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033, parent_prec=CMP_PRECEDENCE) at /test/10.6_dbg/sql/item.cc:496
|
#9 0x00005568037ace14 in Item_func::print_op (this=0x150d100164e8, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_func.cc:630
|
#10 0x0000556803779ee5 in Item_bool_rowready_func2::print (this=<optimized out>, str=<optimized out>, query_type=<optimized out>) at /test/10.6_dbg/sql/item_cmpfunc.h:551
|
#11 0x00005568034aea7e in st_select_lex::print (this=0x150d10015730, thd=thd@entry=0x150d10000db8, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/sql_select.cc:28223
|
#12 0x00005568038102e8 in subselect_single_select_engine::print (this=0x150d10017098, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_subselect.cc:4606
|
#13 0x0000556803810857 in Item_subselect::print (this=0x150d10016f10, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_subselect.cc:1114
|
#14 0x00005568037ac96a in Item_func::print_args (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, from=from@entry=0, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/item_func.cc:621
|
#15 0x00005568037acb88 in Item_func::print (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/item_func.cc:610
|
#16 0x000055680376ae86 in Item_in_optimizer::print (this=0x150d1004fa18, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_cmpfunc.cc:1241
|
#17 0x000055680373ae14 in Item::print_parenthesised (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033, parent_prec=<optimized out>) at /test/10.6_dbg/sql/item.cc:496
|
#18 0x0000556803765533 in Item_func_not::print (this=0x150d10018780, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_cmpfunc.cc:210
|
#19 0x0000556803665829 in Json_writer::add_str (this=this@entry=0x150d10008160, item=item@entry=0x150d10018780) at /test/10.6_dbg/sql/opt_trace.cc:711
|
#20 0x0000556803470c67 in Json_value_helper::add_str (item=0x150d10018780, this=<synthetic pointer>) at /test/10.6_dbg/sql/my_json_writer.h:454
|
#21 Json_writer_object::add (value=0x150d10018780, name=0x5568040e6a8d "original_condition", this=<synthetic pointer>) at /test/10.6_dbg/sql/my_json_writer.h:454
|
#22 optimize_cond (join=join@entry=0x150d1004e3a0, conds=0x150d10018780, join_list=0x150d10014cb0, ignore_on_conds=ignore_on_conds@entry=false, cond_value=cond_value@entry=0x150d1004e6e8, cond_equal=cond_equal@entry=0x150d1004e810, flags=1) at /test/10.6_dbg/sql/sql_select.cc:17398
|
#23 0x00005568034ba639 in JOIN::optimize_inner (this=this@entry=0x150d1004e3a0) at /test/10.6_dbg/sql/sql_select.cc:2192
|
#24 0x00005568034bb3b2 in JOIN::optimize (this=this@entry=0x150d1004e3a0) at /test/10.6_dbg/sql/sql_select.cc:1807
|
#25 0x0000556803405496 in st_select_lex::optimize_unflattened_subqueries (this=0x150d100140f8, const_only=const_only@entry=false) at /test/10.6_dbg/sql/sql_lex.cc:4936
|
#26 0x00005568035fe95f in JOIN::optimize_unflattened_subqueries (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/opt_subselect.cc:5567
|
#27 0x00005568034b8851 in JOIN::optimize_stage2 (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:3059
|
#28 0x00005568034bb1a7 in JOIN::optimize_inner (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:2477
|
#29 0x00005568034bb3b2 in JOIN::optimize (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:1807
|
#30 0x00005568034bba2b in mysql_select (thd=thd@entry=0x150d10000db8, tables=0x150d1004c978, fields=@0x150d10014398: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150d100145f0, last = 0x150d100145f0, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x150d10019c00, unit=0x150d10005130, select_lex=0x150d100140f8) at /test/10.6_dbg/sql/sql_select.cc:4968
|
#31 0x00005568034bbd2f in handle_select (thd=thd@entry=0x150d10000db8, lex=lex@entry=0x150d10005068, result=result@entry=0x150d10019c00, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.6_dbg/sql/sql_select.cc:544
|
#32 0x000055680342f6ac in execute_sqlcom_select (thd=thd@entry=0x150d10000db8, all_tables=0x150d1004c978) at /test/10.6_dbg/sql/sql_parse.cc:6242
|
#33 0x000055680343c58c in mysql_execute_command (thd=thd@entry=0x150d10000db8) at /test/10.6_dbg/sql/sql_parse.cc:3937
|
#34 0x0000556803428adc in mysql_parse (thd=thd@entry=0x150d10000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150d540a0400) at /test/10.6_dbg/sql/sql_parse.cc:8016
|
#35 0x0000556803437646 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150d10000db8, packet=packet@entry=0x150d1000b769 "SELECT 1 FROM (SELECT 1 IN (SELECT 1 FROM t1 WHERE (SELECT 1 FROM t2 HAVING b) NOT IN (SELECT 1 FROM t2)) FROM t2) AS z", packet_length=packet_length@entry=119, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1340
|
#36 0x000055680343aa26 in do_command (thd=0x150d10000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1406
|
#37 0x000055680359eec2 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556806a48b98, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
|
#38 0x000055680359f4c7 in handle_one_connection (arg=arg@entry=0x556806a48b98) at /test/10.6_dbg/sql/sql_connect.cc:1312
|
#39 0x0000556803a4b03a in pfs_spawn_thread (arg=0x556806931128) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#40 0x0000150d56570609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#41 0x0000150d5615f293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Slightly different stack (Field_string::val_str instead of Field_long::val_str);
Leads to:
10.6.2 06dd151bb86ad5b87d4d46011f36da1289c01074 (Debug)
mysqld: /test/10.6_dbg/sql/field.cc:7470: virtual String* Field_string::val_str(String*, String*): Assertion `marked_for_read()' failed.
10.6.2 06dd151bb86ad5b87d4d46011f36da1289c01074 (Debug)
Core was generated by `/test/MD050621-mariadb-10.6.2-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
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 0x150d540a1700 (LWP 38388))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x0000150d56062859 in __GI_abort () at abort.c:79
#2 0x0000150d56062729 in __assert_fail_base (fmt=0x150d561f8588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x556804265174 "marked_for_read()", file=0x556804264f5b "/test/10.6_dbg/sql/field.cc", line=7470, function=<optimized out>) at assert.c:92
#3 0x0000150d56073f36 in __GI___assert_fail (assertion=assertion@entry=0x556804265174 "marked_for_read()", file=file@entry=0x556804264f5b "/test/10.6_dbg/sql/field.cc", line=line@entry=7470, function=function@entry=0x556804266ec0 "virtual String* Field_string::val_str(String*, String*)") at assert.c:101
#4 0x00005568036e34bc in Field_string::val_str (this=0x150d1002b0b8, val_buffer=<optimized out>, val_ptr=0x150d1004f198) at /test/10.6_dbg/sql/field.cc:7470
#5 0x000055680372e9e2 in Item_field::val_str (this=0x150d1004f170, str=0x150d5409ed10) at /test/10.6_dbg/sql/item.cc:3277
#6 0x000055680373b025 in Item::print_value (this=0x150d1004f170, str=0x150d5409f370) at /test/10.6_dbg/sql/item.cc:526
#7 0x000055680373b3b1 in Item_field::print (this=<optimized out>, str=<optimized out>, query_type=<optimized out>) at /test/10.6_dbg/sql/item.cc:7713
#8 0x000055680373ade0 in Item::print_parenthesised (this=this@entry=0x150d1004f170, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033, parent_prec=CMP_PRECEDENCE) at /test/10.6_dbg/sql/item.cc:496
#9 0x00005568037ace14 in Item_func::print_op (this=0x150d100164e8, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_func.cc:630
#10 0x0000556803779ee5 in Item_bool_rowready_func2::print (this=<optimized out>, str=<optimized out>, query_type=<optimized out>) at /test/10.6_dbg/sql/item_cmpfunc.h:551
#11 0x00005568034aea7e in st_select_lex::print (this=0x150d10015730, thd=thd@entry=0x150d10000db8, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/sql_select.cc:28223
#12 0x00005568038102e8 in subselect_single_select_engine::print (this=0x150d10017098, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_subselect.cc:4606
#13 0x0000556803810857 in Item_subselect::print (this=0x150d10016f10, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_subselect.cc:1114
#14 0x00005568037ac96a in Item_func::print_args (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, from=from@entry=0, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/item_func.cc:621
#15 0x00005568037acb88 in Item_func::print (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033) at /test/10.6_dbg/sql/item_func.cc:610
#16 0x000055680376ae86 in Item_in_optimizer::print (this=0x150d1004fa18, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_cmpfunc.cc:1241
#17 0x000055680373ae14 in Item::print_parenthesised (this=this@entry=0x150d1004fa18, str=str@entry=0x150d5409f370, query_type=query_type@entry=1033, parent_prec=<optimized out>) at /test/10.6_dbg/sql/item.cc:496
#18 0x0000556803765533 in Item_func_not::print (this=0x150d10018780, str=0x150d5409f370, query_type=1033) at /test/10.6_dbg/sql/item_cmpfunc.cc:210
#19 0x0000556803665829 in Json_writer::add_str (this=this@entry=0x150d10008160, item=item@entry=0x150d10018780) at /test/10.6_dbg/sql/opt_trace.cc:711
#20 0x0000556803470c67 in Json_value_helper::add_str (item=0x150d10018780, this=<synthetic pointer>) at /test/10.6_dbg/sql/my_json_writer.h:454
#21 Json_writer_object::add (value=0x150d10018780, name=0x5568040e6a8d "original_condition", this=<synthetic pointer>) at /test/10.6_dbg/sql/my_json_writer.h:454
#22 optimize_cond (join=join@entry=0x150d1004e3a0, conds=0x150d10018780, join_list=0x150d10014cb0, ignore_on_conds=ignore_on_conds@entry=false, cond_value=cond_value@entry=0x150d1004e6e8, cond_equal=cond_equal@entry=0x150d1004e810, flags=1) at /test/10.6_dbg/sql/sql_select.cc:17398
#23 0x00005568034ba639 in JOIN::optimize_inner (this=this@entry=0x150d1004e3a0) at /test/10.6_dbg/sql/sql_select.cc:2192
#24 0x00005568034bb3b2 in JOIN::optimize (this=this@entry=0x150d1004e3a0) at /test/10.6_dbg/sql/sql_select.cc:1807
#25 0x0000556803405496 in st_select_lex::optimize_unflattened_subqueries (this=0x150d100140f8, const_only=const_only@entry=false) at /test/10.6_dbg/sql/sql_lex.cc:4936
#26 0x00005568035fe95f in JOIN::optimize_unflattened_subqueries (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/opt_subselect.cc:5567
#27 0x00005568034b8851 in JOIN::optimize_stage2 (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:3059
#28 0x00005568034bb1a7 in JOIN::optimize_inner (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:2477
#29 0x00005568034bb3b2 in JOIN::optimize (this=this@entry=0x150d1004d850) at /test/10.6_dbg/sql/sql_select.cc:1807
#30 0x00005568034bba2b in mysql_select (thd=thd@entry=0x150d10000db8, tables=0x150d1004c978, fields=@0x150d10014398: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150d100145f0, last = 0x150d100145f0, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x150d10019c00, unit=0x150d10005130, select_lex=0x150d100140f8) at /test/10.6_dbg/sql/sql_select.cc:4968
#31 0x00005568034bbd2f in handle_select (thd=thd@entry=0x150d10000db8, lex=lex@entry=0x150d10005068, result=result@entry=0x150d10019c00, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.6_dbg/sql/sql_select.cc:544
#32 0x000055680342f6ac in execute_sqlcom_select (thd=thd@entry=0x150d10000db8, all_tables=0x150d1004c978) at /test/10.6_dbg/sql/sql_parse.cc:6242
#33 0x000055680343c58c in mysql_execute_command (thd=thd@entry=0x150d10000db8) at /test/10.6_dbg/sql/sql_parse.cc:3937
#34 0x0000556803428adc in mysql_parse (thd=thd@entry=0x150d10000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150d540a0400) at /test/10.6_dbg/sql/sql_parse.cc:8016
#35 0x0000556803437646 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150d10000db8, packet=packet@entry=0x150d1000b769 "SELECT 1 FROM (SELECT 1 IN (SELECT 1 FROM t1 WHERE (SELECT 1 FROM t2 HAVING b) NOT IN (SELECT 1 FROM t2)) FROM t2) AS z", packet_length=packet_length@entry=119, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1340
#36 0x000055680343aa26 in do_command (thd=0x150d10000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1406
#37 0x000055680359eec2 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x556806a48b98, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
#38 0x000055680359f4c7 in handle_one_connection (arg=arg@entry=0x556806a48b98) at /test/10.6_dbg/sql/sql_connect.cc:1312
#39 0x0000556803a4b03a in pfs_spawn_thread (arg=0x556806931128) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#40 0x0000150d56570609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#41 0x0000150d5615f293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.4.19 (dbg), 10.5.10 (dbg), 10.6.2 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (dbg), 10.2.38 (opt), 10.3.29 (dbg), 10.3.29 (opt), 10.4.19 (opt), 10.5.10 (opt), 10.6.2 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.34 (dbg), 5.7.34 (opt), 8.0.24 (dbg), 8.0.24 (opt)