mariadb/mysql-test/suite/vcol/t
Aleksey Midenkov f7552313d4 MDEV-29932 Invalid expr in cleanup_session_expr() upon INSERT DELAYED
There are two TABLE objects in each thread: first one is created in
delayed thread by Delayed_insert::open_and_lock_table(), second one is
created in connection thread by Delayed_insert::get_local_table(). It
is copied from the delayed thread table.

When the second table is copied copy-assignment operator copies
vcol_refix_list which is already filled with an item from delayed
thread. Then get_local_table() adds its own item. Thus both tables
contains the same list with two items which is wrong. Then connection
thread finishes and its item freed. Then delayed thread tries to
access it in vcol_cleanup_expr().

The fix just clears vcol_refix_list in the copied table.

Another problem is that copied table contains the same mem_root, any
allocations on it will be invalid if the original table is freed (and
that is indeterministic as it is done in another thread). Since copied
table is allocated in connection THD and lives not longer than
thd->mem_root we may assign its mem_root from thd->mem_root.

Third, it doesn't make sense to do open_and_lock_tables() on NULL
pointer.
2023-11-10 15:46:15 +03:00
..
alter_inplace-9045.test
binlog.test [1/2] MDEV-18166 ASSERT_COLUMN_MARKED_FOR_READ failed on tables with vcols 2021-07-12 22:00:39 +03:00
charsets.test
cross_db.test
delayed.test
index.test
innodb_autoinc_vcol.test
innodb_virtual_fk.test
load_data.test MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
mrr.test
myisam_repair_prefix_varchar.test
not_supported.test try harder to reject not strictly deterministic vcols in indexes/stored 2022-12-02 16:19:13 +01:00
partition.test MDEV-28127 EXCHANGE PARTITION with non-matching vcol expression segfault 2023-11-10 15:46:15 +03:00
races.test
range.test
rpl_vcol.test
update.test
update_binlog.test
upgrade.test
vcol_archive.test
vcol_blackhole.test
vcol_blocked_sql_funcs.test
vcol_blocked_sql_funcs_main.inc
vcol_column_def_options_innodb.test
vcol_column_def_options_myisam.test
vcol_csv.test
vcol_handler_aria.test
vcol_handler_innodb.test
vcol_handler_myisam.test
vcol_ins_upd_innodb.test
vcol_ins_upd_myisam.test
vcol_keys_aria.test
vcol_keys_innodb.opt MDEV-20799 DROP Virtual Column crashes MariaDB 2019-10-28 08:40:48 +01:00
vcol_keys_innodb.test MDEV-20799 DROP Virtual Column crashes MariaDB 2019-10-28 08:40:48 +01:00
vcol_keys_myisam.test MDEV-23294 Segfault or assertion upon MyISAM repair 2023-11-10 15:46:15 +03:00
vcol_memory.test
vcol_merge.test
vcol_misc.opt vcols: cannot use CONTEXT_ANALYSIS_ONLY_VCOL_EXPR on fix_fields 2022-04-19 17:10:05 +02:00
vcol_misc.test MDEV-31112 vcol circular references lead to stack overflow 2023-10-23 17:40:03 +02:00
vcol_non_stored_columns_innodb.test
vcol_non_stored_columns_myisam.test
vcol_partition_innodb.test
vcol_partition_myisam.test
vcol_select_innodb.test
vcol_select_myisam.test
vcol_sql_mode.test
vcol_sql_mode_datetime.test
vcol_sql_mode_time.test
vcol_sql_mode_timestamp.test
vcol_sql_mode_upgrade.test
vcol_supported_sql_funcs.test
vcol_supported_sql_funcs_main.inc
vcol_syntax.test MDEV-29932 Invalid expr in cleanup_session_expr() upon INSERT DELAYED 2023-11-10 15:46:15 +03:00
vcol_trigger_sp_innodb.test
vcol_trigger_sp_myisam.test
vcol_view_innodb.test
vcol_view_myisam.test
wrong_arena.test MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00