Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.11, 11.2(EOL), 11.4, 11.6(EOL)
-
None
Description
CREATE TABLE t (a INT) WITH SYSTEM VERSIONING; |
CREATE VIEW v AS SELECT * FROM t; |
PREPARE stmt FROM "UPDATE v SET a = 'foo'"; |
EXECUTE stmt; |
EXECUTE stmt; |
|
# Cleanup
|
DEALLOCATE PREPARE stmt; |
DROP VIEW v; |
DROP TABLE t; |
10.5 b138f428ea2d3496a3a5a2212c424f8218547ef1 |
mariadbd: /data/bld/10.5-asan/mysys/my_alloc.c:212: alloc_root: Assertion `(mem_root->flags & 4) == 0' failed.
|
241012 21:54:42 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007f5ba6c53e32 in __GI___assert_fail (assertion=0x558bd5363dc0 "(mem_root->flags & 4) == 0", file=0x558bd5363ac0 "/data/bld/10.5-asan/mysys/my_alloc.c", line=212, function=0x558bd53640e0 <__PRETTY_FUNCTION__.0> "alloc_root") at ./assert/assert.c:101
|
#10 0x0000558bd3f940c9 in alloc_root (mem_root=0x61900009af18, length=288) at /data/bld/10.5-asan/mysys/my_alloc.c:212
|
#11 0x0000558bd1e89a8b in Item::operator new (size=288, mem_root=0x61900009af18) at /data/bld/10.5-asan/sql/item.h:749
|
#12 0x0000558bd207fce5 in and_items (thd=0x62b000069218, cond=0x62900023af40, item=0x62900023a780) at /data/bld/10.5-asan/sql/sql_select.h:2435
|
#13 0x0000558bd2078538 in mysql_derived_prepare (thd=0x62b000069218, lex=0x62b00009a248, derived=0x62b00009bf70) at /data/bld/10.5-asan/sql/sql_derived.cc:749
|
#14 0x0000558bd20752a3 in mysql_handle_single_derived (lex=0x62b00009a248, derived=0x62b00009bf70, phases=2) at /data/bld/10.5-asan/sql/sql_derived.cc:200
|
#15 0x0000558bd24ebf71 in TABLE_LIST::handle_derived (this=0x62b00009bf70, lex=0x62b00009a248, phases=2) at /data/bld/10.5-asan/sql/table.cc:9328
|
#16 0x0000558bd24719c2 in mysql_update (thd=0x62b000069218, table_list=0x62b00009bf70, fields=..., values=..., conds=0x62b000038348, order_num=0, order=0x0, limit=18446744073709551615, ignore=false, found_return=0x7f5b9d7c3220, updated_return=0x7f5b9d7c3240) at /data/bld/10.5-asan/sql/sql_update.cc:455
|
#17 0x0000558bd21616cd in mysql_execute_command (thd=0x62b000069218) at /data/bld/10.5-asan/sql/sql_parse.cc:4494
|
#18 0x0000558bd21d1518 in Prepared_statement::execute (this=0x61900009ab98, expanded_query=0x7f5b9d7c3d10, open_cursor=false) at /data/bld/10.5-asan/sql/sql_prepare.cc:5131
|
#19 0x0000558bd21cc65f in Prepared_statement::execute_loop (this=0x61900009ab98, expanded_query=0x7f5b9d7c3d10, open_cursor=false, packet=0x0, packet_end=0x0) at /data/bld/10.5-asan/sql/sql_prepare.cc:4553
|
#20 0x0000558bd21c6099 in mysql_sql_stmt_execute (thd=0x62b000069218) at /data/bld/10.5-asan/sql/sql_prepare.cc:3594
|
#21 0x0000558bd215e876 in mysql_execute_command (thd=0x62b000069218) at /data/bld/10.5-asan/sql/sql_parse.cc:4046
|
#22 0x0000558bd217b1fd in mysql_parse (thd=0x62b000069218, rawbuf=0x62b000038238 "EXECUTE stmt", length=12, parser_state=0x7f5b9d7c4c10, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:8236
|
#23 0x0000558bd21504e3 in dispatch_command (command=COM_QUERY, thd=0x62b000069218, packet=0x629000235219 "EXECUTE stmt", packet_length=12, is_com_multi=false, is_next_command=false) at /data/bld/10.5-asan/sql/sql_parse.cc:1892
|
#24 0x0000558bd214ce76 in do_command (thd=0x62b000069218) at /data/bld/10.5-asan/sql/sql_parse.cc:1376
|
#25 0x0000558bd25a6a88 in do_handle_one_connection (connect=0x608000002ab8, put_in_cache=true) at /data/bld/10.5-asan/sql/sql_connect.cc:1417
|
#26 0x0000558bd25a644b in handle_one_connection (arg=0x608000002a38) at /data/bld/10.5-asan/sql/sql_connect.cc:1319
|
#27 0x0000558bd32050f6 in pfs_spawn_thread (arg=0x615000005318) at /data/bld/10.5-asan/storage/perfschema/pfs.cc:2201
|
#28 0x00007f5ba6ca8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#29 0x00007f5ba6d2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|