mariadb/mysql-test/suite
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
..
archive MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
binlog MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
binlog_encryption MDEV-31655: Parallel replication deadlock victim preference code errorneously removed 2023-08-15 16:35:30 +02:00
compat MDEV-27744 LPAD in vcol created in ORACLE mode makes table corrupted in non-ORACLE 2023-11-08 15:01:20 +04:00
csv
encryption MDEV-21664 Add opt files for have_innodb_Xk.inc 2023-09-11 09:09:02 +03:00
engines MDEV-30421 more tests cleaned up 2023-03-23 21:07:32 +03:00
federated MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
funcs_1 MDEV-32500 Information schema leaks table names and structure to unauthorized users 2023-10-23 17:40:03 +02:00
funcs_2 MDEV-30233 DROP DATABASE test fails: Directory not empty 2022-12-15 11:14:23 +02:00
galera galera: disabled tests cleanup 2023-10-31 13:34:17 +01:00
galera_3nodes galera: disabled tests cleanup 2023-10-31 13:34:17 +01:00
galera_3nodes_sr galera: disabled tests cleanup 2023-10-31 13:34:17 +01:00
galera_sr galera: disabled tests cleanup 2023-10-31 13:34:17 +01:00
gcol MDEV-13626 Merge InnoDB test cases from MySQL 5.7 2023-11-08 12:17:14 +02:00
handler MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
heap Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
innodb MDEV-26743 InnoDB: CHAR+nopad does not work well 2023-11-10 06:17:23 +04:00
innodb_fts MDEV-13626 Merge InnoDB test cases from MySQL 5.7 2023-11-08 12:17:14 +02:00
innodb_gis MDEV-13626 Merge InnoDB test cases from MySQL 5.7 2023-11-08 12:17:14 +02:00
innodb_zip MDEV-11816 fixup: Remove an orphan test file 2023-11-06 10:20:51 +02:00
jp MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
json
large_tests MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir 2021-12-15 16:28:01 +02:00
maria MDEV-30048 Prefix keys for CHAR work differently for MyISAM vs InnoDB 2023-10-24 03:35:48 +04:00
mariabackup Fix mariabackup InnoDB recovered binlog position on server upgrade 2023-11-03 09:13:51 +01:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs
parts MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
perfschema MDEV-21194: mariadb-install-db doesn't properly grant proxy privileges to all created user accounts 2023-09-19 08:07:07 +10:00
perfschema_stress
period reformat the test 2022-11-27 05:11:39 +10:00
plugins MDEV-27595 Backport SQL service, introduced by MDEV-19275. 2023-11-05 23:35:32 +04:00
roles MDEV-21194: mariadb-install-db doesn't properly grant proxy privileges to all created user accounts 2023-09-19 08:07:07 +10:00
rpl MDEV-32365: post-fixes to rpl_semi_sync_slave_reply_fail 2023-11-09 14:36:46 +02:00
sql_sequence MDEV-32541 Assertion `!(thd->server_status & (1U | 8192U))' failed in MDL_context::release_transactional_locks 2023-10-23 17:40:03 +02:00
storage_engine
stress MDEV-29710: Skip some more tests on Valgrind 2022-10-05 20:37:54 +03:00
sys_vars MDEV-29180: Description of log_warnings incorrectly mentions "general log" 2023-11-02 16:46:34 +01:00
unit Merge 10.2 into 10.3 2021-10-21 17:39:34 +03:00
vcol MDEV-29932 Invalid expr in cleanup_session_expr() upon INSERT DELAYED 2023-11-10 15:46:15 +03:00
versioning MDEV-32082 Server crash in find_field_in_table 2023-11-10 15:46:15 +03:00
wsrep 10.4-MDEV-31470 wsrep_sst_method variable validity checking 2023-10-24 05:14:32 +02:00