Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.2(EOL), 11.4, 11.6(EOL), 11.7
Description
CREATE TABLE t1 (a INT,b INT DEFAULT (NOT a)) ENGINE=ARIA; |
CREATE TEMPORARY TABLE t1 ENGINE=ARIA AS SELECT * FROM t1; |
ALTER TABLE t1 TRANSACTIONAL=1; |
INSERT INTO t1 VALUES (0,DEFAULT); |
The crash also occurs with InnoDB storage engine
Leads to:
CS 10.5.27 d64034770ef4e15c7f3599a57a2b060a042b10b6 (Debug) |
mariadbd: /test/10.5_dbg/sql/field.cc:4426: virtual longlong Field_long::val_int(): Assertion `marked_for_read()' failed.
|
CS 10.5.27 d64034770ef4e15c7f3599a57a2b060a042b10b6 (Debug) |
Core was generated by `/test/MD291024-mariadb-10.5.27-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 0x150ae53c1700 (LWP 2207786))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000150b08ae5859 in __GI_abort () at abort.c:79
|
#2 0x0000150b08ae5729 in __assert_fail_base (fmt=0x150b08c7b588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5573f1e0b138 "marked_for_read()", file=0x5573f1e0afb3 "/test/10.5_dbg/sql/field.cc", line=4426, function=<optimized out>) at assert.c:92
|
#3 0x0000150b08af6fd6 in __GI___assert_fail (assertion=assertion@entry=0x5573f1e0b138 "marked_for_read()", file=file@entry=0x5573f1e0afb3 "/test/10.5_dbg/sql/field.cc", line=line@entry=4426, function=function@entry=0x5573f1e0c4e8 "virtual longlong Field_long::val_int()") at assert.c:101
|
#4 0x00005573f11f2ad2 in Field_long::val_int (this=0x150aac06e220) at /test/10.5_dbg/sql/field.cc:4426
|
#5 0x00005573f1240983 in Item_field::val_int (this=0x150aac06cea0) at /test/10.5_dbg/sql/item.cc:3367
|
#6 0x00005573f1270c9f in Arg_comparator::compare_int_signed (this=0x150aac06d0b0) at /test/10.5_dbg/sql/item_cmpfunc.cc:946
|
#7 0x00005573f127363d in Arg_comparator::compare (this=0x150aac06d0b0) at /test/10.5_dbg/sql/item_cmpfunc.h:117
|
#8 Item_func_eq::val_int (this=0x150aac06cfe0) at /test/10.5_dbg/sql/item_cmpfunc.cc:1812
|
#9 0x00005573f1257803 in Item::save_int_in_field (this=0x150aac06cfe0, field=0x150aac06e2f8, no_conversions=<optimized out>) at /test/10.5_dbg/sql/item.cc:6927
|
#10 0x00005573f113b024 in Type_handler_int_result::Item_save_in_field (this=<optimized out>, item=<optimized out>, field=<optimized out>, no_conversions=<optimized out>) at /test/10.5_dbg/sql/sql_type.cc:4368
|
#11 0x00005573f123db3b in Item::save_in_field (this=0x150aac06cfe0, field=0x150aac06e2f8, no_conversions=<optimized out>) at /test/10.5_dbg/sql/item.cc:6937
|
#12 0x00005573f11eb8af in Field::set_default (this=0x150aac06e2f8) at /test/10.5_dbg/sql/field.cc:2597
|
#13 0x00005573f120ea01 in Field::save_in_field_default_value (this=0x150aac06e2f8, view_error_processing=view_error_processing@entry=false) at /test/10.5_dbg/sql/field.cc:11369
|
#14 0x00005573f11b284f in Item_default_specification::save_in_field (this=<optimized out>, field_arg=<optimized out>) at /test/10.5_dbg/sql/item.h:6810
|
#15 0x00005573f0edbd5a in fill_record (thd=thd@entry=0x150aac000d48, table=table@entry=0x150aac06eca8, ptr=0x150aac06e208, ptr@entry=0x150aac06e1f8, values=@0x150aac013a80: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150aac013b38, last = 0x150aac013bd0, elements = 2}, <No data fields>}, ignore_errors=ignore_errors@entry=false, use_value=use_value@entry=false, check_for_computability=false) at /test/10.5_dbg/sql/sql_base.cc:8911
|
#16 0x00005573f0edbe07 in fill_record_n_invoke_before_triggers (thd=thd@entry=0x150aac000d48, table=table@entry=0x150aac06eca8, ptr=0x150aac06e1f8, values=@0x150aac013a80: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150aac013b38, last = 0x150aac013bd0, elements = 2}, <No data fields>}, ignore_errors=ignore_errors@entry=false, event=event@entry=TRG_EVENT_INSERT) at /test/10.5_dbg/sql/sql_base.cc:8966
|
#17 0x00005573f0f19e66 in mysql_insert (thd=thd@entry=0x150aac000d48, table_list=<optimized out>, fields=@0x150aac005e48: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5573f25c8540 <end_of_list>, last = 0x150aac005e48, elements = 0}, <No data fields>}, values_list=@0x150aac005e90: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x150aac013bf8, last = 0x150aac013bf8, elements = 1}, <No data fields>}, update_fields=@0x150aac005e78: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5573f25c8540 <end_of_list>, last = 0x150aac005e78, elements = 0}, <No data fields>}, update_values=@0x150aac005e60: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x5573f25c8540 <end_of_list>, last = 0x150aac005e60, elements = 0}, <No data fields>}, duplic=DUP_ERROR, ignore=false, result=0x0) at /test/10.5_dbg/sql/sql_insert.cc:1080
|
#18 0x00005573f0f5d65e in mysql_execute_command (thd=thd@entry=0x150aac000d48) at /test/10.5_dbg/sql/sql_parse.cc:4650
|
#19 0x00005573f0f47682 in mysql_parse (thd=thd@entry=0x150aac000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x150ae53c02c0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:8237
|
#20 0x00005573f0f56bf9 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x150aac000d48, packet=packet@entry=0x150aac00aa19 "INSERT INTO t1 VALUES (0,DEFAULT)", packet_length=packet_length@entry=33, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_class.h:1334
|
#21 0x00005573f0f59948 in do_command (thd=thd@entry=0x150aac000d48) at /test/10.5_dbg/sql/sql_parse.cc:1375
|
#22 0x00005573f10a7640 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5573f3ec93f8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1407
|
#23 0x00005573f10a7cb1 in handle_one_connection (arg=arg@entry=0x5573f3ec93f8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#24 0x00005573f15297b5 in pfs_spawn_thread (arg=0x5573f3d746e8) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#25 0x0000150b08ff6609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x0000150b08be2133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.27 (dbg), 10.6.20 (dbg), 10.11.10 (dbg), 11.2.6 (dbg), 11.4.4 (dbg), 11.6.2 (dbg), 11.7.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.5.27 (opt), 10.6.20 (opt), 10.11.10 (opt), 11.2.6 (opt), 11.4.4 (opt), 11.6.2 (opt), 11.7.0 (opt)